X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fsyscalls.h;h=21a9cb53037c4f86e88da93a181a95e8947b04bc;hb=aab5ccdbe1608036091e2fb646d3e851ef6ad44d;hp=158a6ccb7044d9a9c28bdc2419b9241b33d78921;hpb=7f80ab30017689efe0aaaab18abc7ceda689d859;p=tpg%2Facess2.git diff --git a/AcessNative/syscalls.h b/AcessNative/syscalls.h index 158a6ccb..21a9cb53 100644 --- a/AcessNative/syscalls.h +++ b/AcessNative/syscalls.h @@ -14,16 +14,22 @@ * uint8_t paramData[SUM(params[].Lengh)]; */ +typedef struct { + uint32_t pid; + uint32_t key; +} tRequestAuthHdr; + typedef struct sRequestValue { /// \see eArgumentTypes uint16_t Type; uint16_t Flags; - uint16_t Length; + uint32_t Length; } tRequestValue; typedef struct sRequestHeader { uint16_t ClientID; uint16_t CallID; //!< \see eSyscalls + uint32_t MessageLength; uint16_t NParams; tRequestValue Params[]; @@ -47,14 +53,25 @@ enum eSyscalls { 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_FORK, + SYS_AN_FORK, + SYS_AN_SPAWN, + SYS_SENDMSG, + SYS_GETMSG, + SYS_SELECT, + SYS_WAITEVENT, N_SYSCALLS }; @@ -78,9 +95,24 @@ static const char * casSYSCALL_NAMES[] = { "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_SLEEP", + "SYS_AN_FORK", + "SYS_SENDMSG", + "SYS_GETMSG", + "SYS_SELECT", + "SYS_WAITEVENT" }; #endif