Merge of VFS by Balasz Gerofi with Minix trunk.
[minix3.git] / include / minix / callnr.h
blob6e045e91904c9a6118ebaba17be977f37d986498
1 #define NCALLS 98 /* 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 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 EXEC 59
51 #define UMASK 60
52 #define CHROOT 61
53 #define SETSID 62
54 #define GETPGRP 63
56 /* Posix signal handling. */
57 #define SIGACTION 71
58 #define SIGSUSPEND 72
59 #define SIGPENDING 73
60 #define SIGPROCMASK 74
61 #define SIGRETURN 75
63 #define REBOOT 76
64 #define SVRCTL 77
65 #define SYSUNAME 78
66 #define GETSYSINFO 79 /* to PM or FS */
67 #define FSTATFS 82 /* to FS */
68 #define SELECT 85 /* to FS */
69 #define FCHDIR 86 /* to FS */
70 #define FSYNC 87 /* to FS */
71 #define GETPRIORITY 88 /* to PM */
72 #define SETPRIORITY 89 /* to PM */
73 #define GETTIMEOFDAY 90 /* to PM */
74 #define SETEUID 91 /* to PM */
75 #define SETEGID 92 /* to PM */
76 #define TRUNCATE 93 /* to FS */
77 #define FTRUNCATE 94 /* to FS */
78 #define FCHMOD 95 /* to FS */
79 #define FCHOWN 96 /* to FS */
80 #define GETSYSINFO_UP 97 /* to PM or FS */
82 /* Calls provided by PM and FS that are not part of the API */
83 #define EXEC_NEWMEM 100 /* from FS or RS to PM: new memory map for
84 * exec
86 #define FORK_NB 101 /* to PM: special fork call for RS */
87 #define EXEC_RESTART 102 /* to PM: final part of exec for RS */
88 #define PROCSTAT 103 /* to PM */
89 #define GETPROCNR 104 /* to PM */
90 #define ALLOCMEM 105 /* to PM */
91 #if 0
92 #define FREEMEM 106 /* to PM, not used, not implemented */
93 #endif
95 #define DEVCTL 120 /* to FS, map or unmap a device */
96 #define TASK_REPLY 121 /* to FS: reply code from drivers, not
97 * really a standalone call.