Files
rtems/testsuites/psxtests/psxhdrs/clock03.c
Ralf Corsepius 003999c44d 2011-10-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxhdrs/clock01.c, psxhdrs/clock02.c, psxhdrs/clock03.c,
	psxhdrs/clock04.c, psxhdrs/clock05.c, psxhdrs/clock06.c:
	Let test() return values (avoid warnings).
2011-10-15 05:31:26 +00:00

37 lines
716 B
C

/*
* This test file is used to verify that the header files associated with
* invoking this function are correct.
*
* COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <time.h>
#ifndef _POSIX_TIMERS
#error "rtems is supposed to have clock_getres"
#endif
int test( void );
int test( void )
{
clockid_t clock_id = 0;
struct timespec res;
int result;
result = clock_getres( clock_id, &res );
return result;
}