make includes fix from trunk
[minix.git] / include / minix / callnr.h
blob3dcd8311f7ebf322e763f97eba636b6979064650
1 #define NCALLS 112 /* number of system calls allowed */
3 #define EXIT 1
4 #define FORK 2
5 #define READ 3
6 #define WRITE 4
7 #define OPEN 5
8 #define CLOSE 6
9 #define WAIT 7
10 #define CREAT 8
11 #define LINK 9
12 #define UNLINK 10
13 #define WAITPID 11
14 #define CHDIR 12
15 #define TIME 13
16 #define MKNOD 14
17 #define CHMOD 15
18 #define CHOWN 16
19 #define BRK 17
20 #define STAT 18
21 #define LSEEK 19
22 #define MINIX_GETPID 20
23 #define MOUNT 21
24 #define UMOUNT 22
25 #define SETUID 23
26 #define GETUID 24
27 #define STIME 25
28 #define PTRACE 26
29 #define ALARM 27
30 #define FSTAT 28
31 #define PAUSE 29
32 #define UTIME 30
33 #define ACCESS 33
34 #define SYNC 36
35 #define KILL 37
36 #define RENAME 38
37 #define MKDIR 39
38 #define RMDIR 40
39 #define DUP 41
40 #define PIPE 42
41 #define TIMES 43
42 #define SYMLINK 45
43 #define SETGID 46
44 #define GETGID 47
45 #define SIGNAL 48
46 #define RDLNK 49
47 #define LSTAT 50
48 #define IOCTL 54
49 #define FCNTL 55
50 #define FS_READY 57
51 #define EXEC 59
52 #define UMASK 60
53 #define CHROOT 61
54 #define SETSID 62
55 #define GETPGRP 63
56 #define ITIMER 64
57 #define GETGROUPS 65
58 #define SETGROUPS 66
59 #define GETMCONTEXT 67
60 #define SETMCONTEXT 68
62 /* Posix signal handling. */
63 #define SIGACTION 71
64 #define SIGSUSPEND 72
65 #define SIGPENDING 73
66 #define SIGPROCMASK 74
67 #define SIGRETURN 75
69 #define REBOOT 76
70 #define SVRCTL 77
71 #define SYSUNAME 78
72 #define GETSYSINFO 79 /* to PM or FS */
73 #define GETDENTS 80 /* to FS */
74 #define LLSEEK 81 /* to FS */
75 #define FSTATFS 82 /* to FS */
76 #define SELECT 85 /* to FS */
77 #define FCHDIR 86 /* to FS */
78 #define FSYNC 87 /* to FS */
79 #define GETPRIORITY 88 /* to PM */
80 #define SETPRIORITY 89 /* to PM */
81 #define GETTIMEOFDAY 90 /* to PM */
82 #define SETEUID 91 /* to PM */
83 #define SETEGID 92 /* to PM */
84 #define TRUNCATE 93 /* to FS */
85 #define FTRUNCATE 94 /* to FS */
86 #define FCHMOD 95 /* to FS */
87 #define FCHOWN 96 /* to FS */
88 #define GETSYSINFO_UP 97 /* to PM or FS */
89 #define SPROF 98 /* to PM */
90 #define CPROF 99 /* to PM */
92 /* Calls provided by PM and FS that are not part of the API */
93 #define EXEC_NEWMEM 100 /* from FS or RS to PM: new memory map for
94 * exec
96 #define SRV_FORK 101 /* to PM: special fork call for RS */
97 #define EXEC_RESTART 102 /* to PM: final part of exec for RS */
98 #define PROCSTAT 103 /* to PM */
99 #define GETPROCNR 104 /* to PM */
101 #define GETEPINFO 107 /* to PM: get pid/uid/gid of an endpoint */
102 #define ADDDMA 108 /* to PM: inform PM about a region of memory
103 * that is used for bus-master DMA
105 #define DELDMA 109 /* to PM: inform PM that a region of memory
106 * that is no longer used for bus-master DMA
108 #define GETDMA 110 /* to PM: ask PM for a region of memory
109 * that should not be used for bus-master DMA
110 * any longer
112 #define SRV_KILL 111 /* to PM: special kill call for RS */
114 #define TASK_REPLY 121 /* to FS: reply code from drivers, not
115 * really a standalone call.
117 #define MAPDRIVER 122 /* to FS, map a device */