added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / compiler / include / aros / _timeval.h
blob5dc8c0e80fb75be3e2f07510d546e2478a2f8d0f
1 #ifndef _AROS_TIMEVAL_H_
2 #define _AROS_TIMEVAL_H_
4 #include <aros/cpu.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_ */