X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fsyscalls.h;h=21a9cb53037c4f86e88da93a181a95e8947b04bc;hb=3ee2be420147b69f6d8bfca559f1edab1303455b;hp=078944d1c273f7373447a14b49bc8141f8f962c2;hpb=a6f11cb266052c58ae7e2d6d6e8abd34a9e93214;p=tpg%2Facess2.git diff --git a/AcessNative/syscalls.h b/AcessNative/syscalls.h index 078944d1..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[]; @@ -52,13 +58,20 @@ enum eSyscalls { 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 }; @@ -82,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