Last change
on this file since 15 was 4, checked in by Mattia Monga, 14 years ago |
Importazione sorgenti libro
|
File size:
2.0 KB
|
Rev | Line | |
---|
[4] | 1 | #define NCALLS 91 /* 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 SETGID 46
|
---|
| 43 | #define GETGID 47
|
---|
| 44 | #define SIGNAL 48
|
---|
| 45 | #define IOCTL 54
|
---|
| 46 | #define FCNTL 55
|
---|
| 47 | #define EXEC 59
|
---|
| 48 | #define UMASK 60
|
---|
| 49 | #define CHROOT 61
|
---|
| 50 | #define SETSID 62
|
---|
| 51 | #define GETPGRP 63
|
---|
| 52 |
|
---|
| 53 | /* The following are not system calls, but are processed like them. */
|
---|
| 54 | #define UNPAUSE 65 /* to MM or FS: check for EINTR */
|
---|
| 55 | #define REVIVE 67 /* to FS: revive a sleeping process */
|
---|
| 56 | #define TASK_REPLY 68 /* to FS: reply code from tty task */
|
---|
| 57 |
|
---|
| 58 | /* Posix signal handling. */
|
---|
| 59 | #define SIGACTION 71
|
---|
| 60 | #define SIGSUSPEND 72
|
---|
| 61 | #define SIGPENDING 73
|
---|
| 62 | #define SIGPROCMASK 74
|
---|
| 63 | #define SIGRETURN 75
|
---|
| 64 |
|
---|
| 65 | #define REBOOT 76 /* to PM */
|
---|
| 66 |
|
---|
| 67 | /* MINIX specific calls, e.g., to support system services. */
|
---|
| 68 | #define SVRCTL 77
|
---|
| 69 | /* unused */
|
---|
| 70 | #define GETSYSINFO 79 /* to PM or FS */
|
---|
| 71 | #define GETPROCNR 80 /* to PM */
|
---|
| 72 | #define DEVCTL 81 /* to FS */
|
---|
| 73 | #define FSTATFS 82 /* to FS */
|
---|
| 74 | #define ALLOCMEM 83 /* to PM */
|
---|
| 75 | #define FREEMEM 84 /* to PM */
|
---|
| 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 */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.