X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=AcessNative%2Fsyscalls.h;h=b4d211c7a052b98614efd09c54acd8f8cd76a55a;hb=9379e8c5dc5abe60157815b05db0aa0f2dbf78bb;hp=5081a53d2430551ea80cfd7075601ee50ea69ebf;hpb=02cbaac1233be9c5228973a787431fa5e0aa178e;p=tpg%2Facess2.git diff --git a/AcessNative/syscalls.h b/AcessNative/syscalls.h index 5081a53d..b4d211c7 100644 --- a/AcessNative/syscalls.h +++ b/AcessNative/syscalls.h @@ -3,6 +3,8 @@ #ifndef _NATIVE_SYSCALLS_H_ #define _NATIVE_SYSCALLS_H_ +#define SERVER_PORT 0xACE + /* * Request format * @@ -15,6 +17,7 @@ typedef struct sRequestValue { /// \see eArgumentTypes uint16_t Type; + uint8_t Flags; uint16_t Length; } tRequestValue; @@ -22,7 +25,6 @@ typedef struct sRequestHeader { uint16_t ClientID; uint16_t CallID; //!< \see eSyscalls uint16_t NParams; - uint16_t NReturn; tRequestValue Params[]; } tRequestHeader; @@ -41,6 +43,7 @@ enum eSyscalls { SYS_OPENCHILD, SYS_GETACL, SYS_MOUNT, + SYS_REOPEN, N_SYSCALLS }; @@ -51,5 +54,9 @@ enum eArgumentTypes { ARG_TYPE_STRING, ARG_TYPE_DATA }; +enum eArgumentFlags { + ARG_FLAG_RETURN = 0x40, // Pass back in the return message + ARG_FLAG_ZEROED = 0x80 // Not present in the message, just fill with zero +}; #endif