X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fapi%2Fsys_stat.c;h=632af80ec975a8283e025a38b745ec14f32cc5f6;hb=1a68cdaedf8e9d379dc742f8a9c6198c0cb99dc5;hp=b51b1e1f1c7f3e15d48749c644d4949d043d1997;hpb=0ef2646848cbc2e6c59f8757165b5790b0132281;p=libc-test diff --git a/src/api/sys_stat.c b/src/api/sys_stat.c index b51b1e1..632af80 100644 --- a/src/api/sys_stat.c +++ b/src/api/sys_stat.c @@ -1,4 +1,5 @@ #include +#include "options.h" #define T(t) (t*)0; #define F(t,n) {t *y = &x.n;} #define C(n) switch(n){case n:;} @@ -14,8 +15,11 @@ T(uid_t) T(gid_t) T(off_t) T(time_t) -T(struct timespec) - +{ +struct timespec x; +F(time_t,tv_sec) +F(long,tv_nsec) +} { struct stat x; F(dev_t, st_dev) @@ -73,7 +77,9 @@ struct stat x = {0}; {int i = S_TYPEISMQ(&x);} {int i = S_TYPEISSEM(&x);} {int i = S_TYPEISSHM(&x);} +#ifdef POSIX_TYPED_MEMORY_OBJECTS {int i = S_TYPEISTMO(&x);} +#endif } C(UTIME_NOW) C(UTIME_OMIT)