repo.or.cz
/
neatlibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
regex: character classes
[neatlibc.git]
/
time.h
blob
0bb5cf5eb588d3c1afb1754403e73b3cff1579bd
1
#ifndef _TIME_H
2
#define _TIME_H
3
4
#include <sys/types.h>
5
6
struct
timespec
{
7
long
tv_sec
;
8
long
tv_nsec
;
9
};
10
11
int
nanosleep
(
struct
timespec
*
req
,
struct
timespec
*
rem
);
12
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
;
25
};
26
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
);
31
32
extern
long
timezone
;
33
void
tzset
(
void
);
34
35
#endif