source: rtems/testsuites/psxtests/psxhdrs/clock03.c @ 73c5da6a

4.104.114.84.95
Last change on this file since 73c5da6a was 73c5da6a, checked in by Joel Sherrill <joel.sherrill@…>, on 05/23/96 at 21:51:53

new files

  • Property mode set to 100644
File size: 769 bytes
Line 
1
2/*
3 *  This test file is used to verify that the header files associated with
4 *  the callout are correct.
5 *
6 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996.
7 *  On-Line Applications Research Corporation (OAR).
8 *  All rights assigned to U.S. Government, 1994.
9 *
10 *  This material may be reproduced by or for the U.S. Government pursuant
11 *  to the copyright license under the clause at DFARS 252.227-7013.  This
12 *  notice must appear in all copies of this file and its derivatives.
13 *
14 *  $Id$
15 */
16
17#include <time.h>
18 
19#ifndef _POSIX_TIMERS
20#error "rtems is supposed to have clock_getres"
21#endif
22
23void test( void )
24{
25  clockid_t        clock_id = 0;
26  struct timespec  res;
27  int              result;
28
29  result = clock_getres( clock_id, &res );
30}
Note: See TracBrowser for help on using the repository browser.