mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 21:41:43 +03:00
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.
This commit is contained in:
20
src/include/sys/time.h
Normal file
20
src/include/sys/time.h
Normal file
@@ -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 */
|
||||
Reference in New Issue
Block a user