feat: ports - git port

This commit is contained in:
2026-08-09 10:47:07 +02:00
parent cfb8d91442
commit 6f3cf99667
34 changed files with 2255 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
/*
* <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_ */