compiled newlib, need to hook up the system calls

This commit is contained in:
2026-06-28 17:58:58 -05:00
parent 43bc0df81a
commit 97357f3170
337 changed files with 47955 additions and 114 deletions

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