X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Fld-acess.so_src%2Finclude_exp%2Facess%2Fsys.h;h=d32f8c33b2e09d096be41cc7cc832e60a56cbc76;hb=7b64f5e7f00e445a5637e9e3289a1332a14d28e5;hp=bcd3d1fa50a503187efc7d2f860ce9e3402145ac;hpb=fe07801ccb8de442c9fc665cd1706faa0f12c166;p=tpg%2Facess2.git 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 bcd3d1fa..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) @@ -61,14 +65,17 @@ extern int _SysSetFaultHandler(int (*Handler)(int)); 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); @@ -93,6 +100,7 @@ extern int _SysGetACL(int fd, t_sysACL *dest); 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 --- @@ -107,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