From: John Hodge Date: Sun, 9 Mar 2014 07:31:48 +0000 (+0800) Subject: Usermode/ld-acess - C++ wrapping, fix return type of setuid X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=3fe0703942b3e7b562fb893d3a43c2b4370f6bbc;p=tpg%2Facess2.git Usermode/ld-acess - C++ wrapping, fix return type of setuid --- diff --git a/Usermode/Libraries/ld-acess.so_src/include_exp/acess/sys.h b/Usermode/Libraries/ld-acess.so_src/include_exp/acess/sys.h index ce9752c9..d32f8c33 100644 --- a/Usermode/Libraries/ld-acess.so_src/include_exp/acess/sys.h +++ b/Usermode/Libraries/ld-acess.so_src/include_exp/acess/sys.h @@ -8,6 +8,10 @@ #include // size_t #include "syscall_types.h" +#ifdef __cplusplus +extern "C" { +#endif + // === CONSTANTS === #ifndef NULL # define NULL ((void*)0) @@ -70,8 +74,8 @@ extern void _SysTimedSleep(int64_t Delay); // --- Permissions --- extern int _SysGetUID(void); extern int _SysGetGID(void); -extern void setuid(int id); -extern void setgid(int id); +extern int setuid(int id); +extern int setgid(int id); // --- VFS --- extern int _SysChdir(const char *dir); @@ -111,4 +115,8 @@ extern void *_SysLoadBin(const char *path, void **entry); extern int _SysUnloadBin(void *base); extern void SysSetFaultHandler(int (*Hanlder)(int)); +#ifdef __cplusplus +} +#endif + #endif