1 #ifndef _AROS_TIMEVAL_H_
2 #define _AROS_TIMEVAL_H_
6 /* The following structure is composed of two anonymous unions so that it
7 can be transparently used by both AROS-style programs and POSIX-style
8 ones. For binary compatibility reasons the fields in the unions MUST
9 have the same size, however they can have different signs (as it is
10 the case for microseconds). */
12 __extension__
struct timeval
14 union /* Seconds passed. */
16 unsigned AROS_32BIT_TYPE tv_secs
; /* AROS field */
17 unsigned AROS_32BIT_TYPE tv_sec
; /* POSIX field */
19 union /* Microseconds passed in the current second. */
21 unsigned AROS_32BIT_TYPE tv_micro
; /* AROS field */
22 signed AROS_32BIT_TYPE tv_usec
; /* POSIX field */
26 #endif /* ! _SYS__TIMEVAL_H_ */