Break ioctl() up into smaller syscalls

This commit is contained in:
2025-10-14 20:05:41 +02:00
parent c34a253d11
commit 406434fed0
21 changed files with 375 additions and 320 deletions

24
share/sysdefs/fs.h Normal file
View File

@ -0,0 +1,24 @@
#ifndef SHARE_SYSDEFS_FS_H_
#define SHARE_SYSDEFS_FS_H_
#define FS_OF_READ (1<<0)
#define FS_OF_WRITE (1<<1)
#define FS_OF_MAKE (1<<2)
#define FSSTAT_DIR 0
#define FSSTAT_FILE 1
#include <stdint.h>
#include <stddef.h>
typedef struct {
size_t size;
int32_t type;
} FsStat;
typedef struct {
FsStat stat;
char name[0x100];
} FsDirent;
#endif // SHARE_SYSDEFS_FS_H_