3 #define F(t,n) {t *y = &x.n;}
4 #define C(n) switch(n){case n:;}
29 F(struct timespec, st_atim)
30 F(struct timespec, st_mtim)
31 F(struct timespec, st_ctim)
32 F(blksize_t, st_blksize)
33 F(blkcnt_t, st_blocks)
73 {int i = S_TYPEISMQ(&x);}
74 {int i = S_TYPEISSEM(&x);}
75 {int i = S_TYPEISSHM(&x);}
76 {int i = S_TYPEISTMO(&x);}
80 int(*p_chmod)(const char*,mode_t) = chmod;
81 int(*p_fchmod)(int,mode_t) = fchmod;
82 int(*p_fchmodat)(int,const char*,mode_t,int) = fchmodat;
83 int(*p_fstat)(int,struct stat*) = fstat;
84 int(*p_fstatat)(int,const char*restrict,struct stat*restrict,int) = fstatat;
85 int(*p_futimens)(int,const struct timespec[]) = futimens;
86 int(*p_lstat)(const char*restrict,struct stat*restrict) = lstat;
87 int(*p_mkdir)(const char*,mode_t) = mkdir;
88 int(*p_mkdirat)(int,const char*,mode_t) = mkdirat;
89 int(*p_mkfifo)(const char*,mode_t) = mkfifo;
90 int(*p_mkfifoat)(int,const char*,mode_t) = mkfifoat;
92 int(*p_mknod)(const char*,mode_t,dev_t) = mknod;
93 int(*p_mknodat)(int,const char*,mode_t,dev_t) = mknodat;
95 int(*p_stat)(const char*restrict,struct stat*restrict) = stat;
96 mode_t(*p_umask)(mode_t) = umask;
97 int(*p_utimensat)(int,const char*,const struct timespec[],int) = utimensat;