目前支持的系统调用:
系统调用号 | 系统调用原型 | 文档位置 |
---|---|---|
1 | void exit(int status); |
071 系统调用 exit |
2 | pid_t fork(); |
070 系统调用 fork |
4 | i32 write(fd_t fd, const void *buf, size_t len); |
064 printf |
7 | pid_t waitpid(pid_t pid, int *status); |
072 系统调用 waitpid |
13 | time_t time(); |
073 系统调用 time |
20 | pid_t getpid(); |
069 任务 ID |
45 | i32 brk(void *addr); |
068 系统调用 brk |
64 | pid_t getppid(); |
069 任务 ID |
158 | void yield(); |
048 系统调用 yield |
162 | void sleep(u32 ms); |
052 任务睡眠和唤醒 |