URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [rtems/] [sys/] [time.h] - Rev 57
Go to most recent revision | Compare with Previous | Blame | View Log
/* * $Id: time.h,v 1.1.1.2 2000-08-30 19:04:16 joel Exp $ */ #include <sys/types.h> #ifndef __POSIX_SYS_TIME_h #define __POSIX_SYS_TIME_h #ifdef __cplusplus extern "C" { #endif /* * Get the CPU dependent types for clock_t and time_t * * NOTE: These must be visible by including <time.h>. */ /* Get _CLOCK_T_ and _TIME_T_. */ #include <machine/types.h> #ifndef __clock_t_defined typedef _CLOCK_T_ clock_t; #define __clock_t_defined #endif #ifndef __time_t_defined typedef _TIME_T_ time_t; #define __time_t_defined #endif /* * 14.1.1 Time Value Specification Structures, P1003.1b-1993, p. 261 */ struct timespec { time_t tv_sec; /* Seconds */ long tv_nsec; /* Nanoseconds */ }; struct itimerspec { struct timespec it_interval; /* Timer period */ struct timespec it_value; /* Timer expiration */ }; /* XXX should really be ifdef'ed */ /* * BSD based stuff */ struct timezone { int tz_minuteswest; int tz_dsttime; }; struct timeval { int tv_sec; int tv_usec; }; int gettimeofday( struct timeval *tp, struct timezone *tzp ); #ifdef __cplusplus } #endif #endif /* end of include */
Go to most recent revision | Compare with Previous | Blame | View Log