Skip to content
Snippets Groups Projects
usys.S 363 B
Newer Older
#include "syscall.h"
#include "traps.h"

#define STUB(name) \
	.globl name; \
	name: \
		movl $SYS_ ## name, %eax; \
		int $T_SYSCALL; \
		ret 

STUB(fork)
STUB(exit)
STUB(pipe)
STUB(read)
STUB(write)
STUB(close)
rtm's avatar
rtm committed
STUB(exec)
rtm's avatar
rtm committed
STUB(open)
kaashoek's avatar
kaashoek committed
STUB(mknod)
kaashoek's avatar
kaashoek committed
STUB(unlink)
STUB(fstat)
rtm's avatar
rtm committed
STUB(link)
kaashoek's avatar
kaashoek committed
STUB(mkdir)
kaashoek's avatar
kaashoek committed
STUB(chdir)
kaashoek's avatar
kaashoek committed
STUB(dup)
kaashoek's avatar
kaashoek committed
STUB(getpid)
STUB(sbrk)