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(cons_putc) 14STUB(pipe) 15STUB(read) 16STUB(write) 17STUB(close) 18STUB(block) 19