Add support for fflush and close syscalls

This commit is contained in:
2025-04-27 02:48:55 -04:00
parent f07d793e6c
commit adfdaa27f7
5 changed files with 84 additions and 0 deletions

2
sys.h
View File

@@ -32,6 +32,8 @@ intptr_t read(int32_t fd, const void* buf, intptr_t size);
int32_t openat(int32_t fd, const char* filename, uint32_t flags, uint32_t mode);
#define open(...) openat(AT_FDCWD, __VA_ARGS__, 0)
#define openc(...) openat(AT_FDCWD, __VA_ARGS__)
int close(unsigned int fd);
int fsync(unsigned int fd);
uint32_t fork();