skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

tryfutimens.c (336B)


      1 /* ISC license. */
      2 
      3 #undef _POSIX_C_SOURCE
      4 #undef _XOPEN_SOURCE
      5 #ifndef __EXTENSIONS__
      6 #define __EXTENSIONS__
      7 #endif
      8 #ifndef _GNU_SOURCE
      9 #define _GNU_SOURCE
     10 #endif
     11 
     12 #include <sys/stat.h>
     13 
     14 int main (void)
     15 {
     16   struct timespec foo[2] = { { .tv_sec = 0, .tv_nsec = 0 }, { .tv_sec = 0, .tv_nsec = 0 } } ;
     17   futimens(0, foo) ;
     18   return 0 ;
     19 }