File:  [Qemu by Fabrice Bellard] / qemu / tests / tcg / cris / check_time2.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 19:35:55 2018 UTC (8 years, 3 months ago) by root
Branches: qemu, MAIN
CVS tags: qemu1101, HEAD
qemu 1.1.1

/* CB_SYS_time doesn't implement the Linux time syscall; the return
   value isn't written to the argument.  */

#include <time.h>
#include <stdio.h>
#include <stdlib.h>

int
main (void)
{
  time_t x = (time_t) -1;
  time_t t = time (&x);

  if (t == (time_t) -1 || t != x)
    abort ();
  printf ("pass\n");
  exit (0);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.