2 * Acess2 System Interface Header
10 #define OPENFLAG_EXEC 0x01
11 #define OPENFLAG_READ 0x02
12 #define OPENFLAG_WRITE 0x04
13 #define OPENFLAG_NOLINK 0x40
18 #define FILEFLAG_DIRECTORY 0x10
30 typedef struct s_sysFInfo t_sysFInfo;
33 void _SysDebug(char *str, ...);
36 int clone(int flags, void *stack);
37 int execve(char *path, char **argv, char **envp);
39 int open(char *path, int flags);
40 int reopen(int fd, char *path, int flags);
42 uint64_t read(int fd, uint64_t length, void *buffer);
43 uint64_t write(int fd, uint64_t length, void *buffer);
44 int seek(int fd, uint64_t offset, int whence);
45 int ioctl(int fd, int id, void *data);
46 int finfo(int fd, t_sysFInfo *info);
49 uint64_t _SysGetPhys(uint vaddr);
50 uint64_t _SysAllocate(uint vaddr);