add lab answers
This commit is contained in:
14
labcodes_answer/lab5_result/user/libs/syscall.h
Normal file
14
labcodes_answer/lab5_result/user/libs/syscall.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef __USER_LIBS_SYSCALL_H__
|
||||
#define __USER_LIBS_SYSCALL_H__
|
||||
|
||||
int sys_exit(int error_code);
|
||||
int sys_fork(void);
|
||||
int sys_wait(int pid, int *store);
|
||||
int sys_yield(void);
|
||||
int sys_kill(int pid);
|
||||
int sys_getpid(void);
|
||||
int sys_putc(int c);
|
||||
int sys_pgdir(void);
|
||||
|
||||
#endif /* !__USER_LIBS_SYSCALL_H__ */
|
||||
|
||||
Reference in New Issue
Block a user