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
+24
View File
@@ -0,0 +1,24 @@
/*
* <sys/ioctl.h> for the MontaukOS git port.
*
* git uses exactly one ioctl: TIOCGWINSZ, to find the terminal width for
* `git column`, the progress meter and `git help -a`. MontaukOS has no ioctl
* syscall, so the request fails and git falls back to its default 80 columns.
*
* Implementation in montauk-compat.c.
*/
#ifndef _MONTAUK_GIT_SYS_IOCTL_H_
#define _MONTAUK_GIT_SYS_IOCTL_H_
#define TIOCGWINSZ 0x5413
struct winsize {
unsigned short ws_row;
unsigned short ws_col;
unsigned short ws_xpixel;
unsigned short ws_ypixel;
};
int ioctl(int fd, unsigned long request, ...);
#endif /* _MONTAUK_GIT_SYS_IOCTL_H_ */