#include <stddef.h> // size_t
#include "syscall_types.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
// === CONSTANTS ===
#ifndef NULL
# define NULL ((void*)0)
extern void _SysSetName(const char *Name);
extern int _SysGetName(char *NameDest);
extern int _SysSetPri(int Priority);
+// --- System ---
+extern int _SysLoadModule(const char *Module);
// --- Timekeeping ---
extern int64_t _SysTimestamp(void);
+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);
extern int _SysMount(const char *Device, const char *Directory, const char *Type, const char *Options);
extern int _SysSelect(int nfds, fd_set *read, fd_set *write, fd_set *err, int64_t *timeout, unsigned int extraevents);
//#define select(nfs, rdfds, wrfds, erfds, timeout) _SysSelect(nfs, rdfds, wrfds, erfds, timeout, 0)
+extern int _SysMkDir(const char *dirname);
extern int _SysUnlink(const char *pathname);
// --- IPC ---
extern int _SysUnloadBin(void *base);
extern void SysSetFaultHandler(int (*Hanlder)(int));
+#ifdef __cplusplus
+}
+#endif
+
#endif