24 lines
869 B
C
24 lines
869 B
C
/*
|
|
* <sys/time.h> overlay for the MontaukOS git port.
|
|
*
|
|
* Adds the ITIMER_* selectors on top of the libc header. MontaukOS has no
|
|
* interval timers, so the port is built NO_SETITIMER=1 and NO_STRUCT_ITIMERVAL=1
|
|
* -- git supplies its own struct itimerval and a setitimer() that returns
|
|
* success without arming anything. The selectors still have to exist, because
|
|
* the call sites name them (builtin/log.c's early-output timer, progress.c).
|
|
*
|
|
* What that costs: `git log`'s half-second early-output nudge never fires, so
|
|
* the first commits appear when the traversal produces them rather than on a
|
|
* timer. Nothing depends on it for correctness.
|
|
*/
|
|
#ifndef _MONTAUK_GIT_SYS_TIME_H_
|
|
#define _MONTAUK_GIT_SYS_TIME_H_
|
|
|
|
#include_next <sys/time.h>
|
|
|
|
#define ITIMER_REAL 0
|
|
#define ITIMER_VIRTUAL 1
|
|
#define ITIMER_PROF 2
|
|
|
|
#endif /* _MONTAUK_GIT_SYS_TIME_H_ */
|