toaruos/loader/syscall.c

20 lines
567 B
C
Raw Normal View History

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)
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)
2011-12-07 06:13:20 +04:00
2011-12-16 01:31:18 +04:00
DEFN_SYSCALL1(wait, 17, int)
DEFN_SYSCALL0(getgraphicswidth, 18)
DEFN_SYSCALL0(getgraphicsheight, 19)
DEFN_SYSCALL0(getgraphicsdepth, 20)