feat: expand user mode, add DOOM game, add manpages

This commit is contained in:
2026-02-18 15:13:53 +01:00
parent 605fbcbe42
commit 24af60d669
51 changed files with 4484 additions and 43 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef _LIBC_SYS_STAT_H
#define _LIBC_SYS_STAT_H
#pragma once
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
struct stat {
unsigned long st_size;
};
int mkdir(const char *path, unsigned int mode);
int stat(const char *path, struct stat *buf);
int fstat(int fd, struct stat *buf);
#ifdef __cplusplus
}
#endif
#endif /* _LIBC_SYS_STAT_H */
+24
View File
@@ -0,0 +1,24 @@
#ifndef _LIBC_SYS_TIME_H
#define _LIBC_SYS_TIME_H
/* Stub header for ZenithOS */
#ifdef __cplusplus
extern "C" {
#endif
struct timeval {
long tv_sec;
long tv_usec;
};
struct timezone {
int tz_minuteswest;
int tz_dsttime;
};
#ifdef __cplusplus
}
#endif
#endif /* _LIBC_SYS_TIME_H */
+23
View File
@@ -0,0 +1,23 @@
#ifndef _LIBC_SYS_TYPES_H
#define _LIBC_SYS_TYPES_H
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
typedef unsigned long size_t;
typedef long ssize_t;
typedef long off_t;
typedef int pid_t;
typedef unsigned int mode_t;
typedef unsigned int uid_t;
typedef unsigned int gid_t;
typedef long time_t;
#ifdef __cplusplus
}
#endif
#endif /* _LIBC_SYS_TYPES_H */