2 * Acess2 libnative (Kernel Simulation Library)
3 * - By John Hodge (thePowersGang)
12 tThread *Proc_GetCurThread(void)
17 void Threads_PostEvent(tThread *Thread, Uint32 Events)
22 Uint32 Threads_WaitEvents(Uint32 Events)
24 Log_KernelPanic("Threads", "Can't use _WaitEvents in DiskTool");
28 void Threads_ClearEvent(Uint32 Mask)
33 tUID Threads_GetUID(void) { return 0; }
34 tGID Threads_GetGID(void) { return 0; }
36 tTID Threads_GetTID(void) { return 0; }
38 int *Threads_GetMaxFD(void) { static int max_fd=32; return &max_fd; }
39 char **Threads_GetCWD(void) { static char *cwd; return &cwd; }
40 char **Threads_GetChroot(void) { static char *chroot; return &chroot; }
42 void Threads_Yield(void)
44 Log_Warning("Threads", "Threads_Yield DEFINITELY shouldn't be used");
47 void Threads_Sleep(void)
49 Log_Warning("Threads", "Threads_Sleep shouldn't be used");
52 int Threads_SetName(const char *Name)
54 Log_Notice("Threads", "TODO: Threads_SetName('%s')", Name);
58 int *Threads_GetErrno(void) __attribute__ ((weak));
60 int *Threads_GetErrno(void)// __attribute__ ((weak))