feat(systime): gettimeofday/itimer/utimes

This commit is contained in:
2026-09-05 22:43:39 -04:00
parent d495d3eb89
commit c67e890b17
8 changed files with 780 additions and 1 deletions
+9 -1
View File
@@ -86,12 +86,20 @@ typedef struct
typedef unsigned long sigset_t;
#endif
/* Elapsed time in seconds and microseconds (see select()'s timeout). */
/*
* Elapsed time in seconds and microseconds (see select()'s timeout).
* Shared guard with <sys/time.h>, the canonical POSIX home of struct
* timeval: both headers define the same layout under
* VLIBC_TIMEVAL_DEFINED, so either may be included first at any level.
*/
#ifndef VLIBC_TIMEVAL_DEFINED
#define VLIBC_TIMEVAL_DEFINED
struct timeval
{
time_t tv_sec;
suseconds_t tv_usec;
};
#endif
/*
* Wait for readiness on the descriptors marked in readfds, writefds and