#include <stddef.h> // size_t
#include "syscall_types.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
// === CONSTANTS ===
#ifndef NULL
# define NULL ((void*)0)
// --- 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);
extern int _SysUnloadBin(void *base);
extern void SysSetFaultHandler(int (*Hanlder)(int));
+#ifdef __cplusplus
+}
+#endif
+
#endif