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;
35 int clone(int flags, void *stack);
36 int execve(char *path, char **argv, char **envp);
38 int open(char *path, int flags);
39 int reopen(int fd, char *path, int flags);
41 uint64_t read(int fd, uint64_t length, void *buffer);
42 uint64_t write(int fd, uint64_t length, void *buffer);
43 int seek(int fd, uint64_t offset, int whence);
44 int ioctl(int fd, int id, void *data);
45 int finfo(int fd, t_sysFInfo *info);
48 uint64_t _SysGetPhys(uint vaddr);
49 uint64_t _SysAllocate(uint vaddr);