diff options
Diffstat (limited to 'src/kernel/task/task.h')
-rw-r--r-- | src/kernel/task/task.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/kernel/task/task.h b/src/kernel/task/task.h index 99738b9..2ebb66e 100644 --- a/src/kernel/task/task.h +++ b/src/kernel/task/task.h @@ -34,8 +34,8 @@ class process { segment_map *dataseg; - process *next; //Forms a linked list thread *threads; + thread *threads_waiting; // threads waiting for this process to end earray<node> fd; // file descriptors @@ -77,9 +77,12 @@ uint32_t tasking_handleException(registers *regs); void thread_goInactive(); //Blocks the current thread. it is then waked up by another thread or a system event. int proc_priv(); //Returns current privilege level -void thread_exit(); //syscall -void process_exit(size_t retval); //syscall +// syscalls +void thread_exit(); +void process_exit(size_t retval); size_t process_sbrk(size_t size); void process_brk(size_t ptr); +int process_run(char* file, char** args); +int process_waitpid(int pid); #endif |