source: trunk/minix/include/minix/callnr.h@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 2.2 KB
Line 
1#define NCALLS 95 /* number of system calls allowed */
2
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
55
56/* The following are not system calls, but are processed like them. */
57#define UNPAUSE 65 /* to MM or FS: check for EINTR */
58#define REVIVE 67 /* to FS: revive a sleeping process */
59#define TASK_REPLY 68 /* to FS: reply code from tty task */
60
61/* Posix signal handling. */
62#define SIGACTION 71
63#define SIGSUSPEND 72
64#define SIGPENDING 73
65#define SIGPROCMASK 74
66#define SIGRETURN 75
67
68#define REBOOT 76 /* to PM */
69
70/* MINIX specific calls, e.g., to support system services. */
71#define SVRCTL 77
72#define PROCSTAT 78 /* to PM */
73#define GETSYSINFO 79 /* to PM or FS */
74#define GETPROCNR 80 /* to PM */
75#define DEVCTL 81 /* to FS */
76#define FSTATFS 82 /* to FS */
77#define ALLOCMEM 83 /* to PM */
78#define FREEMEM 84 /* to PM */
79#define SELECT 85 /* to FS */
80#define FCHDIR 86 /* to FS */
81#define FSYNC 87 /* to FS */
82#define GETPRIORITY 88 /* to PM */
83#define SETPRIORITY 89 /* to PM */
84#define GETTIMEOFDAY 90 /* to PM */
85#define SETEUID 91 /* to PM */
86#define SETEGID 92 /* to PM */
87#define TRUNCATE 93 /* to FS */
88#define FTRUNCATE 94 /* to FS */
Note: See TracBrowser for help on using the repository browser.