2011-04-12 01:51:31 +04:00
|
|
|
#include <syscall.h>
|
|
|
|
|
|
|
|
DEFN_SYSCALL1(exit, 0, int)
|
|
|
|
DEFN_SYSCALL1(print, 1, const char *)
|
2011-04-17 05:01:04 +04:00
|
|
|
DEFN_SYSCALL3(open, 2, const char *, int, int)
|
|
|
|
DEFN_SYSCALL3(read, 3, int, char *, int)
|
|
|
|
DEFN_SYSCALL3(write, 4, int, char *, int)
|
|
|
|
DEFN_SYSCALL1(close, 5, int)
|
2011-04-17 22:26:31 +04:00
|
|
|
DEFN_SYSCALL2(gettimeofday, 6, void *, void *)
|
|
|
|
DEFN_SYSCALL3(execve, 7, char *, char **, char **)
|
|
|
|
DEFN_SYSCALL0(fork, 8)
|
2011-04-18 02:44:29 +04:00
|
|
|
DEFN_SYSCALL0(getpid, 9)
|
2011-04-18 03:28:40 +04:00
|
|
|
DEFN_SYSCALL1(sbrk, 10, int)
|