vm: fix sanity checks on arm
[minix.git] / include / minix / callnr.h
blob6f145cf886113ff39479d530433ed1ddacdeee0d
1 #define NCALLS 114 /* number of system calls allowed */
3 /* In case it isn't obvious enough: this list is sorted numerically. */
4 #define EXIT 1
5 #define FORK 2
6 #define READ 3
7 #define WRITE 4
8 #define OPEN 5
9 #define CLOSE 6
10 #define WAIT 7
11 #define CREAT 8
12 #define LINK 9
13 #define UNLINK 10
14 #define WAITPID 11
15 #define CHDIR 12
16 #define TIME 13
17 #define MKNOD 14
18 #define CHMOD 15
19 #define CHOWN 16
20 #define BRK 17
21 #define PREV_STAT 18
22 #define LSEEK 19
23 #define MINIX_GETPID 20
24 #define MOUNT 21
25 #define UMOUNT 22
26 #define SETUID 23
27 #define GETUID 24
28 #define STIME 25
29 #define PTRACE 26
30 #define ALARM 27
31 #define PREV_FSTAT 28
32 #define PAUSE 29
33 #define UTIME 30
34 #define GETEPINFO 31
35 #define SETGROUPS 32
36 #define ACCESS 33
37 #define GETGROUPS 34
38 #define SYNC 36
39 #define KILL 37
40 #define RENAME 38
41 #define MKDIR 39
42 #define RMDIR 40
43 #define DUP 41
44 #define PIPE 42
45 #define TIMES 43
46 #define SYMLINK 45
47 #define SETGID 46
48 #define GETGID 47
49 #define SIGNAL 48
50 #define RDLNK 49
51 #define PREV_LSTAT 50
52 #define STAT 51
53 #define FSTAT 52
54 #define LSTAT 53
55 #define IOCTL 54
56 #define FCNTL 55
57 #define FS_READY 57
58 #define EXEC 59
59 #define UMASK 60
60 #define CHROOT 61
61 #define SETSID 62
62 #define GETPGRP 63
63 #define ITIMER 64
64 #define GETGROUPS_O 65
65 #define SETGROUPS_O 66
66 #define GETMCONTEXT 67
67 #define SETMCONTEXT 68
69 /* Posix signal handling. */
70 #define SIGACTION 71
71 #define SIGSUSPEND 72
72 #define SIGPENDING 73
73 #define SIGPROCMASK 74
74 #define SIGRETURN 75
76 #define REBOOT 76
77 #define SVRCTL 77
78 #define SYSUNAME 78
79 #define GETDENTS 80 /* to VFS */
80 #define LLSEEK 81 /* to VFS */
81 #define FSTATFS 82 /* to VFS */
82 #define STATVFS 83 /* to VFS */
83 #define FSTATVFS 84 /* to VFS */
84 #define SELECT 85 /* to VFS */
85 #define FCHDIR 86 /* to VFS */
86 #define FSYNC 87 /* to VFS */
87 #define GETPRIORITY 88 /* to PM */
88 #define SETPRIORITY 89 /* to PM */
89 #define GETTIMEOFDAY 90 /* to PM */
90 #define SETEUID 91 /* to PM */
91 #define SETEGID 92 /* to PM */
92 #define TRUNCATE 93 /* to VFS */
93 #define FTRUNCATE 94 /* to VFS */
94 #define FCHMOD 95 /* to VFS */
95 #define FCHOWN 96 /* to VFS */
96 #define SPROF 98 /* to PM */
97 #define CPROF 99 /* to PM */
99 /* Calls provided by PM and FS that are not part of the API */
100 #define PM_NEWEXEC 100 /* from VFS or RS to PM: new exec */
101 #define SRV_FORK 101 /* to PM: special fork call for RS */
102 #define EXEC_RESTART 102 /* to PM: final part of exec for RS */
103 #define GETPROCNR 104 /* to PM */
104 #define ISSETUGID 106 /* to PM: ask if process is tainted */
105 #define GETEPINFO_O 107 /* to PM: get pid/uid/gid of an endpoint */
106 #define SRV_KILL 111 /* to PM: special kill call for RS */
108 #define GCOV_FLUSH 112 /* flush gcov data from server to gcov files */
110 #define PM_GETSID 113 /* PM getsid() */
112 #define TASK_REPLY 121 /* to VFS: reply code from drivers, not
113 * really a standalone call.
115 #define MAPDRIVER 122 /* to VFS, map a device */