toaruos/loader/syscall.c

25 lines
680 B
C
Raw Normal View History

2011-04-11 16:51:31 -05:00
#include <syscall.h>
DEFN_SYSCALL1(exit, 0, int)
DEFN_SYSCALL1(print, 1, const char *)
2011-04-16 20:01:04 -05: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)
DEFN_SYSCALL2(gettimeofday, 6, void *, void *)
DEFN_SYSCALL3(execve, 7, char *, char **, char **)
DEFN_SYSCALL0(fork, 8)
2011-04-17 17:44:29 -05:00
DEFN_SYSCALL0(getpid, 9)
2011-04-17 18:28:40 -05:00
DEFN_SYSCALL1(sbrk, 10, int)
2011-12-06 20:13:20 -06:00
2011-12-15 15:31:18 -06:00
DEFN_SYSCALL1(wait, 17, int)
DEFN_SYSCALL0(getgraphicswidth, 18)
DEFN_SYSCALL0(getgraphicsheight, 19)
DEFN_SYSCALL0(getgraphicsdepth, 20)
DEFN_SYSCALL0(getuid, 23)
DEFN_SYSCALL1(setuid, 24, unsigned int)
2012-01-26 19:12:10 -06:00
DEFN_SYSCALL3(readdir, 27, int, int, void *)