1*4b169a6bSchristos /* CB_SYS_time doesn't implement the Linux time syscall; the return 2*4b169a6bSchristos value isn't written to the argument. */ 3*4b169a6bSchristos 4*4b169a6bSchristos #include <time.h> 5*4b169a6bSchristos #include <stdio.h> 6*4b169a6bSchristos #include <stdlib.h> 7*4b169a6bSchristos 8*4b169a6bSchristos int main(void)9*4b169a6bSchristosmain (void) 10*4b169a6bSchristos { 11*4b169a6bSchristos time_t x = (time_t) -1; 12*4b169a6bSchristos time_t t = time (&x); 13*4b169a6bSchristos 14*4b169a6bSchristos if (t == (time_t) -1 || t != x) 15*4b169a6bSchristos abort (); 16*4b169a6bSchristos printf ("pass\n"); 17*4b169a6bSchristos exit (0); 18*4b169a6bSchristos } 19