X-Git-Url: https://pd.if.org/git/?p=zos;a=blobdiff_plain;f=include%2Ftime.h;fp=include%2Ftime.h;h=672e2a30401bbb4965e639762096a6b11d9792c3;hp=0000000000000000000000000000000000000000;hb=ede887c1b1d1700bc36da685788d96a19a5d2065;hpb=dcf9cc4b2cb9bf31f0fd80e4fd2461035c3d3e9c diff --git a/include/time.h b/include/time.h new file mode 100644 index 0000000..672e2a3 --- /dev/null +++ b/include/time.h @@ -0,0 +1,30 @@ +#ifndef _SYS_TIME_H_ +#define _SYS_TIME_H_ 1 + +/* we get to use the _ because we *are* the system header */ + +#include + +struct tm { + int tm_sec; /* seconds (0-60) */ + int tm_min; /* minutes (0-59) */ + int tm_hour; /* hours (0-23) */ + int tm_mday; /* day of the month (1-31) */ + int tm_mon; /* month (0-11) */ + int tm_year; /* year - 1900 */ + int tm_wday; /* day of the week (0-6, Sunday = 0) */ + int tm_yday; /* day in the year (0-365, 1 Jan = 0) */ + int tm_isdst; /* daylight saving time */ +}; + +struct timespec { + time_t tv_sec; + long tv_nsec; +}; + +struct itimerspec { + struct timespec it_interval; + struct timespec it_value; +}; + +#endif