stdio: fread() and fwrite
[neatlibc.git] / time.h
blob0bb5cf5eb588d3c1afb1754403e73b3cff1579bd
1 #ifndef _TIME_H
2 #define _TIME_H
4 #include <sys/types.h>
6 struct timespec {
7 long tv_sec;
8 long tv_nsec;
9 };
11 int nanosleep(struct timespec *req, struct timespec *rem);
13 struct tm {
14 int tm_sec;
15 int tm_min;
16 int tm_hour;
17 int tm_mday;
18 int tm_mon;
19 int tm_year;
20 int tm_wday;
21 int tm_yday;
22 int tm_isdst;
23 long tm_gmtoff;
24 char *tm_zone;
27 time_t time(time_t *timep);
28 long strftime(char *s, long len, char *fmt, struct tm *tm);
29 struct tm *localtime(time_t *timep);
30 struct tm *gmtime(time_t *timep);
32 extern long timezone;
33 void tzset(void);
35 #endif