compiled newlib, need to hook up the system calls
This commit is contained in:
21
sysroot/usr/include/sys/time.h
Normal file
21
sysroot/usr/include/sys/time.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef _SYS_TIME_H
|
||||
#define _SYS_TIME_H
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
// Represents an exact elapsed time signature
|
||||
struct timeval {
|
||||
time_t tv_sec; /* Seconds since Unix Epoch */
|
||||
int32_t tv_usec; /* Microseconds component */
|
||||
};
|
||||
|
||||
// Represents traditional timezone offsets (largely obsolete but required)
|
||||
struct timezone {
|
||||
int tz_minuteswest; /* Minutes west of Greenwich */
|
||||
int tz_dsttime; /* Type of DST correction */
|
||||
};
|
||||
|
||||
/* Prototype for time fetching system operation */
|
||||
int gettimeofday(struct timeval *restrict tv, void *restrict tz);
|
||||
|
||||
#endif /* _SYS_TIME_H */
|
||||
Reference in New Issue
Block a user