Merge branch 'master' of github.com:thepowersgang/acess2
[tpg/acess2.git] / AcessNative / syscalls.h
index 3c7bd85..21a9cb5 100644 (file)
  * 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[];
@@ -61,9 +67,11 @@ enum eSyscalls {
        // IPC
        SYS_SLEEP,
        SYS_AN_FORK,
+       SYS_AN_SPAWN,
        SYS_SENDMSG,
        SYS_GETMSG,
        SYS_SELECT,
+       SYS_WAITEVENT,
        
        N_SYSCALLS
 };
@@ -103,7 +111,8 @@ static const char * casSYSCALL_NAMES[] = {
        "SYS_AN_FORK",
        "SYS_SENDMSG",
        "SYS_GETMSG",
-       "SYS_SELECT"
+       "SYS_SELECT",
+       "SYS_WAITEVENT"
 };
 #endif
 

UCC git Repository :: git.ucc.asn.au