X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Finclude%2Fthreads.h;h=02039329f828ab76e5311b66670b5bf77f3cc21a;hb=13078002b01ee4f63eb2001d2ef479a2a006ea32;hp=6382cf00cd2b9674c0d82454785f8df3beab0645;hpb=04a050f42807686dc119838c82372409246d55bb;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/include/threads.h b/KernelLand/Kernel/include/threads.h index 6382cf00..02039329 100644 --- a/KernelLand/Kernel/include/threads.h +++ b/KernelLand/Kernel/include/threads.h @@ -5,7 +5,7 @@ #define _THREADS_H_ #include -#include +#include //#include enum eFaultNumbers @@ -21,6 +21,7 @@ enum eFaultNumbers #define GETMSG_IGNORE ((void*)-1) typedef struct sThread tThread; +typedef struct sProcess tProcess; // === FUNCTIONS === extern tThread *Proc_GetCurThread(void); @@ -32,9 +33,9 @@ extern int Threads_SetGID(tUID ID); extern tTID Threads_WaitTID(int TID, int *Status); -extern int *Threads_GetMaxFD(void); -extern char **Threads_GetCWD(void); -extern char **Threads_GetChroot(void); +extern int *Threads_GetMaxFD(tProcess *Process); +extern char **Threads_GetCWD(tProcess *Process); +extern char **Threads_GetChroot(tProcess *Process); extern int Proc_SendMessage(Uint Dest, int Length, void *Data); extern int Proc_GetMessage(Uint *Source, Uint BufSize, void *Buffer);