summaryrefslogtreecommitdiff
path: root/interface/syscalls.h
blob: 668a3d2e723a19ea3680ad418796c32ef30b5342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
 * @file
 *
 * Fool OS System Calls
 * ====================
 *
 * This is THE way for user programms to communicate with the kernel.
 *
 * The kernel exhibits a set of a few posix-style calls and some other
 * non-standard foolish calls invented by myself. 
 *
 * TODO: DOCUMENT each call! 
 *       reentrant? limitations? posix compilance? implemented fully?
 */


#define SYSCALL_EXIT         60
#define SYSCALL_CLOSE        66
#define SYSCALL_EXECVE       64
#define SYSCALL_FORK         72
#define SYSCALL_GETPID       78
#define SYSCALL_ISATTY       68
#define SYSCALL_LINK         82
#define SYSCALL_LSEEK        69
#define SYSCALL_OPEN         65
#define SYSCALL_READ         62
#define SYSCALL_SBRK         70
#define SYSCALL_STAT         74
#define SYSCALL_FSTAT        67
#define SYSCALL_LSTAT        79
#define SYSCALL_TIMES        75
#define SYSCALL_UNLINK       76
#define SYSCALL_WAIT         77
#define SYSCALL_WRITE        61
#define SYSCALL_GETTIMEOFDAY 71
#define SYSCALL_READDIR      63
#define SYSCALL_KILL         73
#define SYSCALL_POLL         80
#define SYSCALL_CLONE        83
#define SYSCALL_PIPE         84
#define SYSCALL_DUP2         86
#define SYSCALL_GUI_RECT     87
#define SYSCALL_GUI_WIN      88
#define SYSCALL_SELECT       89
#define SYSCALL_TCGETATTR    90
#define SYSCALL_TCSETATTR    91
#define SYSCALL_OPENDIR      92

#define SYSCALL_UNIMPLEMENTED 200