X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fapi%2Fsys_stat.c;h=b51b1e1f1c7f3e15d48749c644d4949d043d1997;hb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;hp=bebf08e36d62ea010898c9d6790c9b72cce1ce28;hpb=f81126942f3b97eec5bdf2fb57a45579946be59d;p=libc-test diff --git a/src/api/sys_stat.c b/src/api/sys_stat.c index bebf08e..b51b1e1 100644 --- a/src/api/sys_stat.c +++ b/src/api/sys_stat.c @@ -33,8 +33,8 @@ F(blksize_t, st_blksize) F(blkcnt_t, st_blocks) F(time_t, st_atime) -T(time_t, st_mtime) -T(time_t, st_ctime) +F(time_t, st_mtime) +F(time_t, st_ctime) } C(S_IRWXU) C(S_IRUSR) @@ -77,22 +77,22 @@ struct stat x = {0}; } C(UTIME_NOW) C(UTIME_OMIT) -int(*p_chmod)(const char*,mode_t) = chmod; -int(*p_fchmod)(int,mode_t) = fchmod; -int(*p_fchmodat)(int,const char*,mode_t,int) = fchmodat; -int(*p_fstat)(int,struct stat*) = fstat; -int(*p_fstatat)(int,const char*restrict,struct stat*restrict,int) = fstatat; -int(*p_futimens)(int,const struct timespec[]) = futimens; -int(*p_lstat)(const char*restrict,struct stat*restrict) = lstat; -int(*p_mkdir)(const char*,mode_t) = mkdir; -int(*p_mkdirat)(int,const char*,mode_t) = mkdirat; -int(*p_mkfifo)(const char*,mode_t) = mkfifo; -int(*p_mkfifoat)(int,const char*,mode_t) = mkfifoat; +{int(*p)(const char*,mode_t) = chmod;} +{int(*p)(int,mode_t) = fchmod;} +{int(*p)(int,const char*,mode_t,int) = fchmodat;} +{int(*p)(int,struct stat*) = fstat;} +{int(*p)(int,const char*restrict,struct stat*restrict,int) = fstatat;} +{int(*p)(int,const struct timespec[]) = futimens;} +{int(*p)(const char*restrict,struct stat*restrict) = lstat;} +{int(*p)(const char*,mode_t) = mkdir;} +{int(*p)(int,const char*,mode_t) = mkdirat;} +{int(*p)(const char*,mode_t) = mkfifo;} +{int(*p)(int,const char*,mode_t) = mkfifoat;} #ifdef _XOPEN_SOURCE -int(*p_mknod)(const char*,mode_t,dev_t) = mknod; -int(*p_mknodat)(int,const char*,mode_t,dev_t) = mknodat; +{int(*p)(const char*,mode_t,dev_t) = mknod;} +{int(*p)(int,const char*,mode_t,dev_t) = mknodat;} #endif -int(*p_stat)(const char*restrict,struct stat*restrict) = stat; -mode_t(*p_umask)(mode_t) = umask; -int(*p_utimensat)(int,const char*,const struct timespec[],int) = utimensat; +{int(*p)(const char*restrict,struct stat*restrict) = stat;} +{mode_t(*p)(mode_t) = umask;} +{int(*p)(int,const char*,const struct timespec[],int) = utimensat;} }