add ere backref regression test
[libc-test] / src / api / sys_stat.c
index b51b1e1..632af80 100644 (file)
@@ -1,4 +1,5 @@
 #include <sys/stat.h>
+#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)