panic() cleanup.
[minix.git] / include / minix / callnr.h
blobb175f9adb0b05a3f96094dd2fcec24a49ed837fd
1 #define NCALLS 111 /* 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
60 /* Posix signal handling. */
61 #define SIGACTION 71
62 #define SIGSUSPEND 72
63 #define SIGPENDING 73
64 #define SIGPROCMASK 74
65 #define SIGRETURN 75
67 #define REBOOT 76
68 #define SVRCTL 77
69 #define SYSUNAME 78
70 #define GETSYSINFO 79 /* to PM or FS */
71 #define GETDENTS 80 /* to FS */
72 #define LLSEEK 81 /* to FS */
73 #define FSTATFS 82 /* to FS */
74 #define SELECT 85 /* to FS */
75 #define FCHDIR 86 /* to FS */
76 #define FSYNC 87 /* to FS */
77 #define GETPRIORITY 88 /* to PM */
78 #define SETPRIORITY 89 /* to PM */
79 #define GETTIMEOFDAY 90 /* to PM */
80 #define SETEUID 91 /* to PM */
81 #define SETEGID 92 /* to PM */
82 #define TRUNCATE 93 /* to FS */
83 #define FTRUNCATE 94 /* to FS */
84 #define FCHMOD 95 /* to FS */
85 #define FCHOWN 96 /* to FS */
86 #define GETSYSINFO_UP 97 /* to PM or FS */
87 #define SPROF 98 /* to PM */
88 #define CPROF 99 /* to PM */
90 /* Calls provided by PM and FS that are not part of the API */
91 #define EXEC_NEWMEM 100 /* from FS or RS to PM: new memory map for
92 * exec
94 #define FORK_NB 101 /* to PM: special fork call for RS */
95 #define EXEC_RESTART 102 /* to PM: final part of exec for RS */
96 #define PROCSTAT 103 /* to PM */
97 #define GETPROCNR 104 /* to PM */
99 #define GETEPINFO 107 /* to PM: get pid/uid/gid of an endpoint */
100 #define ADDDMA 108 /* to PM: inform PM about a region of memory
101 * that is used for bus-master DMA
103 #define DELDMA 109 /* to PM: inform PM that a region of memory
104 * that is no longer used for bus-master DMA
106 #define GETDMA 110 /* to PM: ask PM for a region of memory
107 * that should not be used for bus-master DMA
108 * any longer
111 #define TASK_REPLY 121 /* to FS: reply code from drivers, not
112 * really a standalone call.
114 #define MAPDRIVER 122 /* to FS, map a device */