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
46 struct s_sysACL acls[];
48 typedef struct s_sysFInfo t_sysFInfo;
49 typedef struct s_sysACL t_sysACL;
52 void _SysDebug(char *str, ...);
55 void wait(int miliseconds);
56 int waittid(int id, int *status);
57 int clone(int flags, void *stack);
58 int execve(char *path, char **argv, char **envp);
61 int open(char *path, int flags);
62 int reopen(int fd, char *path, int flags);
64 uint64_t read(int fd, uint64_t length, void *buffer);
65 uint64_t write(int fd, uint64_t length, void *buffer);
66 int seek(int fd, uint64_t offset, int whence);
67 int ioctl(int fd, int id, void *data);
68 int finfo(int fd, t_sysFInfo *info, int maxacls);
69 int readdir(int fd, char *dest);
70 int _SysGetACL(int fd, t_sysACL *dest);
73 uint64_t _SysGetPhys(uint vaddr);
74 uint64_t _SysAllocate(uint vaddr);