aboutsummaryrefslogtreecommitdiff
path: root/src/include/time.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2007-01-19 03:09:22 +0000
committerMichael Brown <mcb30@etherboot.org>2007-01-19 03:09:22 +0000
commitc2352dc8de6fa47dfbe24f76f05404fc8429027b (patch)
treef6a163cae2cbb652d73350f901d01bdcd35294b6 /src/include/time.h
parent4256b3338a414d7f2e63b0be403d362a0782a707 (diff)
downloadipxe-c2352dc8de6fa47dfbe24f76f05404fc8429027b.zip
ipxe-c2352dc8de6fa47dfbe24f76f05404fc8429027b.tar.gz
ipxe-c2352dc8de6fa47dfbe24f76f05404fc8429027b.tar.bz2
Add POSIX prototypes for time functions, to allow external code to build
more easily within gPXE. Note that we don't have function bodies for these functions yet.
Diffstat (limited to 'src/include/time.h')
-rw-r--r--src/include/time.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/time.h b/src/include/time.h
new file mode 100644
index 0000000..6ea927c
--- /dev/null
+++ b/src/include/time.h
@@ -0,0 +1,22 @@
+#ifndef _TIME_H
+#define _TIME_H
+
+typedef unsigned long time_t;
+
+struct tm {
+ int tm_sec; /* seconds */
+ int tm_min; /* minutes */
+ int tm_hour; /* hours */
+ int tm_mday; /* day of the month */
+ int tm_mon; /* month */
+ int tm_year; /* year */
+ int tm_wday; /* day of the week */
+ int tm_yday; /* day in the year */
+ int tm_isdst; /* daylight saving time */
+};
+
+extern time_t time ( time_t *t );
+
+extern time_t mktime ( struct tm *tm );
+
+#endif /* _TIME_H */