Usermode - POSIX and C conformance changes
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / include_exp / sys / time.h
1 /*
2  * Acess2 POSIX Emulation
3  * - By John Hodge (thePowersGang)
4  *
5  * sys/time.h
6  * - Timing calls
7  */
8 #ifndef _LIBPOSIX__SYS__TIME_H_
9 #define _LIBPOSIX__SYS__TIME_H_
10
11 #include <time.h>
12
13 typedef unsigned long   suseconds_t;
14
15 struct timeval
16 {
17         time_t  tv_sec;
18         suseconds_t     tv_usec;
19 };
20
21 struct itimerval
22 {
23         struct timeval  it_interval;
24         struct timeval  it_value;
25 };
26
27 // TODO: This should also define fd_set and select()
28
29 extern int      getitimer(int, struct itimerval *);
30 extern int      setitimer(int, const struct itimerval *, struct itimerval *);
31 extern int      gettimeofday(struct timeval *, void *);
32 // select
33 extern int      utimes(const char *, const struct timeval [2]);
34
35 #endif
36

UCC git Repository :: git.ucc.asn.au