X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fsyscalls.h;h=3c7bd85d9b5e2457900b203a3ed6fe7e924fe2bd;hb=cfe6a9f2a126cc26ac74d5454e8378bd1193fcf8;hp=4a64474b42cea9f9961db9fe2d4140a37f321488;hpb=d599a063b3b453b705925c58180c93e1f9cb3d79;p=tpg%2Facess2.git diff --git a/AcessNative/syscalls.h b/AcessNative/syscalls.h index 4a64474b..3c7bd85d 100644 --- a/AcessNative/syscalls.h +++ b/AcessNative/syscalls.h @@ -17,7 +17,7 @@ typedef struct sRequestValue { /// \see eArgumentTypes uint16_t Type; - uint8_t Flags; + uint16_t Flags; uint16_t Length; } tRequestValue; @@ -31,6 +31,9 @@ typedef struct sRequestHeader { enum eSyscalls { SYS_NULL, + + SYS_EXIT, + SYS_OPEN, SYS_CLOSE, SYS_READ, @@ -43,9 +46,67 @@ enum eSyscalls { SYS_OPENCHILD, SYS_GETACL, SYS_MOUNT, + SYS_REOPEN, + SYS_CHDIR, + + SYS_WAITTID, + SYS_SETUID, + SYS_SETGID, + + SYS_GETTID, + SYS_GETPID, + SYS_GETUID, + SYS_GETGID, + + // IPC + SYS_SLEEP, + SYS_AN_FORK, + SYS_SENDMSG, + SYS_GETMSG, + SYS_SELECT, + N_SYSCALLS }; +#ifndef DONT_INCLUDE_SYSCALL_NAMES +static const char * casSYSCALL_NAMES[] = { + "SYS_NULL", + + "SYS_EXIT", + + "SYS_OPEN", + "SYS_CLOSE", + "SYS_READ", + "SYS_WRITE", + "SYS_SEEK", + "SYS_TELL", + "SYS_IOCTL", + "SYS_FINFO", + "SYS_READDIR", + "SYS_OPENCHILD", + "SYS_GETACL", + "SYS_MOUNT", + "SYS_REOPEN", + "SYS_CHDIR", + + "SYS_WAITTID", + "SYS_SETUID", + "SYS_SETGID", + + "SYS_GETTID", + "SYS_GETPID", + "SYS_GETUID", + "SYS_GETGID", + + // IPC + "SYS_SLEEP", + "SYS_AN_FORK", + "SYS_SENDMSG", + "SYS_GETMSG", + "SYS_SELECT" +}; +#endif + enum eArgumentTypes { ARG_TYPE_VOID, ARG_TYPE_INT32,