1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#include "process.h" struct process proc_table[255]; pid_t newpid(void) { static pid_t last_pid = 0; return ++last_pid; } int fork(void) { } int exec(char *path, char *args) { } int spawn(char *path, char *args) { }