3 |
- |
1 |
|
|
|
2 |
/* /usr/include/time.h */
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
typedef u_int time_t;
|
|
|
6 |
typedef u_int clockid_t;
|
|
|
7 |
typedef void tm;
|
|
|
8 |
typedef void timespec;
|
|
|
9 |
typedef void timer_t;
|
|
|
10 |
typedef void itimerspec;
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
time_t time(time_t *timer);
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
double difftime(time_t time1, time_t time0);
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
time_t mktime(tm *tp);
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
size_t strftime(char *s, size_t maxsize, char *format, tm *tp);
|
|
|
23 |
char* strptime(char *s, char *fmt, tm *tp);
|
|
|
24 |
size_t strftime_l(char *s, size_t maxsize, char *format, tm *tp, __locale_t __loc);
|
|
|
25 |
char* strptime_l(char *s, char *fmt, tm *tp, __locale_t __loc);
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
tm* gmtime(time_t *timer);
|
|
|
29 |
tm* localtime(time_t *timer);
|
|
|
30 |
tm* gmtime_r(time_t *timer, tm *tp);
|
|
|
31 |
tm* localtime_r(time_t *timer, tm *tp);
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
char* asctime(tm *tp);
|
|
|
35 |
char* ctime(time_t *timer);
|
|
|
36 |
char* asctime_r(tm *tp, char *buf);
|
|
|
37 |
char* ctime_r(time_t *timer, char *buf);
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
void tzset();
|
|
|
41 |
int dysize(int year);
|
|
|
42 |
int nanosleep(timespec *requested_time, timespec *remaining);
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
int stime(time_t *when);
|
|
|
46 |
time_t timegm(tm *tp);
|
|
|
47 |
time_t timelocal(tm *tp);
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
int clock_getres(clockid_t clock_id, timespec *res);
|
|
|
51 |
int clock_gettime(clockid_t clock_id, timespec *tp);
|
|
|
52 |
int clock_settime(clockid_t clock_id, timespec *tp);
|
|
|
53 |
int clock_nanosleep(clockid_t clock_id, int flags, timespec *req, timespec *rem);
|
|
|
54 |
int clock_getcpuclockid(pid_t pid, clockid_t *clock_id);
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
int timer_create(clockid_t clock_id, void *evp, timer_t *timerid);
|
|
|
58 |
int timer_delete(timer_t *timerid);
|
|
|
59 |
int timer_settime(timer_t timerid, int flags, itimerspec *value, itimerspec *ovalue);
|
|
|
60 |
int timer_gettime(timer_t timerid, itimerspec *value);
|
|
|
61 |
int timer_getoverrun(timer_t timerid);
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
tm* getdate(char *string);
|
|
|
65 |
int getdate_r(char *string, tm *resbufp);
|