Usermode/libc - Fixed buggy strtoi code
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / include_exp / libposix_time.h
1 /*
2  * Acess2 POSIX Emulation
3  * - By John Hodge (thePowersGang)
4  *
5  * time.h (libposix version)
6  * - Time and Clock definitions
7  *
8  * NOTE: Included by libc's time.h
9  */
10 #ifndef _LIBPOSIX__TIME_H_
11 #define _LIBPOSIX__TIME_H_
12
13 struct timespec
14 {
15         time_t  tv_sec;
16         long    tv_nsec;
17 };
18
19 enum clockid_e
20 {
21         CLOCK_REALTIME,
22         CLOCK_MONOTONIC
23 };
24
25 typedef enum clockid_e  clockid_t;
26
27 extern int clock_getres(clockid_t clk_id, struct timespec *res);
28 extern int clock_gettime(clockid_t clk_id, struct timespec *tp);
29 extern int clock_settime(clockid_t clk_id, const struct timespec *tp);
30
31 #endif
32

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