diff options
author | Michael Brown | 2007-01-19 04:09:22 +0100 |
---|---|---|
committer | Michael Brown | 2007-01-19 04:09:22 +0100 |
commit | c2352dc8de6fa47dfbe24f76f05404fc8429027b (patch) | |
tree | f6a163cae2cbb652d73350f901d01bdcd35294b6 /src/include/sys | |
parent | Split random number generation out into core/random.c, and create the (diff) | |
download | ipxe-c2352dc8de6fa47dfbe24f76f05404fc8429027b.tar.gz ipxe-c2352dc8de6fa47dfbe24f76f05404fc8429027b.tar.xz ipxe-c2352dc8de6fa47dfbe24f76f05404fc8429027b.zip |
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/sys')
-rw-r--r-- | src/include/sys/time.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/sys/time.h b/src/include/sys/time.h new file mode 100644 index 00000000..21fb7e99 --- /dev/null +++ b/src/include/sys/time.h @@ -0,0 +1,20 @@ +#ifndef _SYS_TIME_H +#define _SYS_TIME_H + +#include <time.h> + +typedef unsigned long suseconds_t; + +struct timeval { + time_t tv_sec; /* seconds */ + suseconds_t tv_usec; /* microseconds */ +}; + +struct timezone { + int tz_minuteswest; /* minutes W of Greenwich */ + int tz_dsttime; /* type of dst correction */ +}; + +extern int gettimeofday ( struct timeval *tv, struct timezone *tz ); + +#endif /* _SYS_TIME_H */ |