david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/include/sys/time.h
Michael Brown c2352dc8de 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.
2007-01-19 03:09:22 +00:00

21 lines
403 B
C

#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 */