X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fsyscalls.h;h=21a9cb53037c4f86e88da93a181a95e8947b04bc;hb=507f19941f45bca7c1de783a394f56b15f10be4d;hp=0adb51f070f6962c1dede7b4570ebe3b1437accc;hpb=6d32a3c22e659994d7ae6164ba3722ab12d11421;p=tpg%2Facess2.git diff --git a/AcessNative/syscalls.h b/AcessNative/syscalls.h index 0adb51f0..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_AN_FORK, + SYS_AN_SPAWN, SYS_SENDMSG, SYS_GETMSG, SYS_SELECT, + SYS_WAITEVENT, N_SYSCALLS }; @@ -88,12 +101,18 @@ static const char * casSYSCALL_NAMES[] = { "SYS_SETUID", "SYS_SETGID", + "SYS_GETTID", + "SYS_GETPID", + "SYS_GETUID", + "SYS_GETGID", + // IPC "SYS_SLEEP", "SYS_AN_FORK", "SYS_SENDMSG", "SYS_GETMSG", - "SYS_SELECT" + "SYS_SELECT", + "SYS_WAITEVENT" }; #endif