X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fsyscalls.h;h=158a6ccb7044d9a9c28bdc2419b9241b33d78921;hb=9478f322c2b506fe9b3afc2e70ad67fefc8ee698;hp=b4d211c7a052b98614efd09c54acd8f8cd76a55a;hpb=9143c184873d0b55444dc1c1084f3e9f3f2614bf;p=tpg%2Facess2.git diff --git a/AcessNative/syscalls.h b/AcessNative/syscalls.h index b4d211c7..158a6ccb 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, @@ -44,9 +47,43 @@ enum eSyscalls { SYS_GETACL, SYS_MOUNT, SYS_REOPEN, + + SYS_WAITTID, + SYS_SETUID, + SYS_SETGID, + + // IPC + SYS_SLEEP, + SYS_FORK, + 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", + + // IPC + "SYS_SLEEP" +}; +#endif + enum eArgumentTypes { ARG_TYPE_VOID, ARG_TYPE_INT32,