X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fsyscalls.h;h=b9661bcf580a569cef0df0bdbc440ab3b9579a8e;hb=edbf6589036993a821a4d2f04af62af8f87a3289;hp=b75a93d9cbe406a3d125fd093f1ff360440a8833;hpb=717454930aa0e255517c68c837927deac49bd78e;p=tpg%2Facess2.git diff --git a/AcessNative/syscalls.h b/AcessNative/syscalls.h index b75a93d9..b9661bcf 100644 --- a/AcessNative/syscalls.h +++ b/AcessNative/syscalls.h @@ -14,74 +14,41 @@ * 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[]; } tRequestHeader; + enum eSyscalls { - 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, - - // IPC - SYS_SLEEP, - SYS_FORK, - + #define _(n) n + #include "syscalls_list.h" + #undef _ 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" + #define _(n) #n + #include "syscalls_list.h" + #undef _ + "-" }; #endif