source: rtems/testsuites/libtests/POSIX/gettimeofday.c @ 268531a7

4.115
Last change on this file since 268531a7 was 268531a7, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/31/11 at 15:59:19

2011-01-31 Ralf Corsépius <ralf.corsepius@…>

  • POSIX/clock_gettime.c, POSIX/gettimeofday.c: New.
  • Makefile.am: Add clock_gettime, gettimeofday.c.
  • Property mode set to 100644
File size: 338 bytes
Line 
1/*
2 * Copyright (c) 2011 by
3 * Ralf Corsépius, Ulm, Germany. All rights reserved.
4 *
5 * Permission to use, copy, modify, and distribute this software
6 * is freely granted, provided that this notice is preserved.
7 */
8
9#include <sys/time.h>
10
11int
12main (void)
13{
14  struct timeval tv;
15  struct timezone tz;
16
17  return gettimeofday(&tv, &tz);
18}
Note: See TracBrowser for help on using the repository browser.