4 #define F(t,n) {t *y = &x.n;}
5 #define C(n) switch(n){case n:;}
33 F(struct timespec, st_atim)
34 F(struct timespec, st_mtim)
35 F(struct timespec, st_ctim)
36 F(blksize_t, st_blksize)
37 F(blkcnt_t, st_blocks)
77 {int i = S_TYPEISMQ(&x);}
78 {int i = S_TYPEISSEM(&x);}
79 {int i = S_TYPEISSHM(&x);}
80 #ifdef POSIX_TYPED_MEMORY_OBJECTS
81 {int i = S_TYPEISTMO(&x);}
86 {int(*p)(const char*,mode_t) = chmod;}
87 {int(*p)(int,mode_t) = fchmod;}
88 {int(*p)(int,const char*,mode_t,int) = fchmodat;}
89 {int(*p)(int,struct stat*) = fstat;}
90 {int(*p)(int,const char*restrict,struct stat*restrict,int) = fstatat;}
91 {int(*p)(int,const struct timespec[]) = futimens;}
92 {int(*p)(const char*restrict,struct stat*restrict) = lstat;}
93 {int(*p)(const char*,mode_t) = mkdir;}
94 {int(*p)(int,const char*,mode_t) = mkdirat;}
95 {int(*p)(const char*,mode_t) = mkfifo;}
96 {int(*p)(int,const char*,mode_t) = mkfifoat;}
98 {int(*p)(const char*,mode_t,dev_t) = mknod;}
99 {int(*p)(int,const char*,mode_t,dev_t) = mknodat;}
101 {int(*p)(const char*restrict,struct stat*restrict) = stat;}
102 {mode_t(*p)(mode_t) = umask;}
103 {int(*p)(int,const char*,const struct timespec[],int) = utimensat;}