]> pd.if.org Git - zos/blobdiff - include/time.h
system include headers
[zos] / include / time.h
diff --git a/include/time.h b/include/time.h
new file mode 100644 (file)
index 0000000..672e2a3
--- /dev/null
@@ -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 <sys/types.h>
+
+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