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
19 #define FILEFLAG_SYMLINK 0x20
34 struct s_sysACL acls[];
36 typedef struct s_sysFInfo t_sysFInfo;
39 void _SysDebug(char *str, ...);
42 int clone(int flags, void *stack);
43 int execve(char *path, char **argv, char **envp);
45 int open(char *path, int flags);
46 int reopen(int fd, char *path, int flags);
48 uint64_t read(int fd, uint64_t length, void *buffer);
49 uint64_t write(int fd, uint64_t length, void *buffer);
50 int seek(int fd, uint64_t offset, int whence);
51 int ioctl(int fd, int id, void *data);
52 int finfo(int fd, t_sysFInfo *info, int maxacls);
55 uint64_t _SysGetPhys(uint vaddr);
56 uint64_t _SysAllocate(uint vaddr);