From c2352dc8de6fa47dfbe24f76f05404fc8429027b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 19 Jan 2007 03:09:22 +0000 Subject: 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. --- src/include/sys/time.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/include/sys/time.h (limited to 'src/include/sys') diff --git a/src/include/sys/time.h b/src/include/sys/time.h new file mode 100644 index 000000000..21fb7e99d --- /dev/null +++ b/src/include/sys/time.h @@ -0,0 +1,20 @@ +#ifndef _SYS_TIME_H +#define _SYS_TIME_H + +#include + +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 */ -- cgit v1.2.3-55-g7522