Files
rtems/testsuites/libtests/POSIX/gettimeofday.c
Ralf Corsepius 268531a72e 2011-01-31 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/clock_gettime.c, POSIX/gettimeofday.c: New.
	* Makefile.am: Add clock_gettime, gettimeofday.c.
2011-01-31 15:59:19 +00:00

19 lines
338 B
C

/*
* Copyright (c) 2011 by
* Ralf Corsépius, Ulm, Germany. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
#include <sys/time.h>
int
main (void)
{
struct timeval tv;
struct timezone tz;
return gettimeofday(&tv, &tz);
}