dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / lib / libast / common / features / time
blob6c15113fb8abca76c18418ce67375b9f864589d0
1 set     prototyped
2 lib     nanosleep,usleep,_strftime
3 typ     clock_t = uint32_t
4 typ     time_t = uint32_t
6 if sys time {
7         #include <sys/time.h>
9 endif
11 if ! mem tm.tm_sec sys/time.h
12     if hdr time {
13         #include <time.h>
14     }
15     endif
16 endif
18 if sys times {
19         #include <sys/times.h>
21 else {
22         struct tms
23         {
24                 clock_t tms_utime;
25                 clock_t tms_stime;
26                 clock_t tms_cutime;
27                 clock_t tms_cstime;
28         };
29         extern clock_t          times(struct tms*);
31 endif
33 if ! mem timeval.tv_sec sys/time.h {
34         struct timeval
35         {
36                 time_t  tv_sec;
37                 time_t  tv_usec;
38         };
40 endif
42 cat{
43 #if !defined(CLOCKS_PER_SEC) && defined(CLK_TCK)
44 #define CLOCKS_PER_SEC  CLK_TCK
45 #endif
46 }end