X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fapi%2Fsys_stat.c;h=b51b1e1f1c7f3e15d48749c644d4949d043d1997;hb=0ef2646848cbc2e6c59f8757165b5790b0132281;hp=2e6b6fa73ae67c54ee5ff9bee85d3b44fd02c0f7;hpb=6a2161f389e6115bb3b948d71c56c8c882eaeda6;p=libc-test diff --git a/src/api/sys_stat.c b/src/api/sys_stat.c index 2e6b6fa..b51b1e1 100644 --- a/src/api/sys_stat.c +++ b/src/api/sys_stat.c @@ -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;} }