5cd28762c22fbe2b51fbb100cfac1ff91d9d34ec
[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 typedef unsigned long   suseconds_t;
12
13 struct timeval
14 {
15         time_t  tv_sec;
16         suseconds_t     tv_usec;
17 };
18
19 struct itimerval
20 {
21         struct timeval  it_interval;
22         struct timeval  it_value;
23 };
24
25 // TODO: This should also define fd_set and select()
26
27 extern int      getitimer(int, struct itimerval *);
28 extern int      setitimer(int, const struct itimerval *, struct itimerval *);
29 extern int      gettimeofday(struct timeval *, void *);
30 // select
31 extern int      utimes(const char *, const struct timeval [2]);
32
33 #endif
34

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