1#include "syscall.h" 2#include "traps.h" 3 4#define STUB(name) \ 5 .globl name; \ 6 name: \ 7 movl $SYS_ ## name, %eax; \ 8 int $T_SYSCALL; \ 9 ret 10 11STUB(fork) 12STUB(exit) 13STUB(wait) 14STUB(pipe) 15STUB(read) 16STUB(write) 17STUB(close) 18STUB(block) 19STUB(kill) 20STUB(exec) 21STUB(open) 22STUB(mknod) 23STUB(unlink) 24STUB(fstat) 25STUB(link) 26STUB(mkdir) 27