1: /* 2: * Copyright (c) 1980 Regents of the University of California. 3: * All rights reserved. The Berkeley software License Agreement 4: * specifies the terms and conditions for redistribution. 5: * 6: * @(#)syscall.h 5.4.11 (2.11BSD) 2000/2/20 7: */ 8: 9: /* 10: * DO NOT place any comments on the same line as a SYS_* definition. This 11: * causes cpp to leave a trailing tab when expanding macros in pdp/sys/SYS.h 12: */ 13: 14: #define SYS_exit 1 15: #define SYS_fork 2 16: #define SYS_read 3 17: #define SYS_write 4 18: #define SYS_open 5 19: #define SYS_close 6 20: #define SYS_wait4 7 21: /* 8 is old; creat */ 22: #define SYS_link 9 23: #define SYS_unlink 10 24: #define SYS_execv 11 25: #define SYS_chdir 12 26: #define SYS_fchdir 13 27: #define SYS_mknod 14 28: #define SYS_chmod 15 29: #define SYS_chown 16 30: #define SYS_chflags 17 31: #define SYS_fchflags 18 32: #define SYS_lseek 19 33: #define SYS_getpid 20 34: #define SYS_mount 21 35: #define SYS_umount 22 36: #define SYS___sysctl 23 37: #define SYS_getuid 24 38: #define SYS_geteuid 25 39: #define SYS_ptrace 26 40: #define SYS_getppid 27 41: #define SYS_statfs 28 42: #define SYS_fstatfs 29 43: #define SYS_getfsstat 30 44: #define SYS_sigaction 31 45: #define SYS_sigprocmask 32 46: #define SYS_access 33 47: #define SYS_sigpending 34 48: #define SYS_sigaltstack 35 49: #define SYS_sync 36 50: #define SYS_kill 37 51: #define SYS_stat 38 52: #define SYS__getlogin 39 53: #define SYS_lstat 40 54: #define SYS_dup 41 55: #define SYS_pipe 42 56: #define SYS_setlogin 43 57: #define SYS_profil 44 58: #define SYS_setuid 45 59: #define SYS_seteuid 46 60: #define SYS_getgid 47 61: #define SYS_getegid 48 62: #define SYS_setgid 49 63: #define SYS_setegid 50 64: /* 51 is old; acct */ 65: #define SYS_phys 52 66: #define SYS_lock 53 67: #define SYS_ioctl 54 68: #define SYS_reboot 55 69: #define SYS_sigwait 56 70: #define SYS_symlink 57 71: #define SYS_readlink 58 72: #define SYS_execve 59 73: #define SYS_umask 60 74: #define SYS_chroot 61 75: #define SYS_fstat 62 76: /* 63 is unused */ 77: /* 64 is old; getpagesize */ 78: #define SYS_pselect 65 79: #define SYS_vfork 66 80: /* 67 is old; vread */ 81: /* 68 is old; vwrite */ 82: #define SYS_sbrk 69 83: #define SYS_sstk 70 84: /* 71 is unused 4.3: mmap */ 85: /* 72 is unused 4.3: vadvise */ 86: /* 73 is unused 4.3: munmap */ 87: /* 74 is unused 4.3: mprotect */ 88: /* 75 is unused 4.3: madvise */ 89: #define SYS_vhangup 76 90: /* 77 is old; vlimit */ 91: /* 78 is unused 4.3: mincore */ 92: #define SYS_getgroups 79 93: #define SYS_setgroups 80 94: #define SYS_getpgrp 81 95: #define SYS_setpgrp 82 96: #define SYS_setitimer 83 97: /* 84 is old; wait,wait3 */ 98: #define SYS_swapon 85 99: #define SYS_getitimer 86 100: /* 87 is old; gethostname */ 101: /* 88 is old; sethostname */ 102: #define SYS_getdtablesize 89 103: #define SYS_dup2 90 104: /* 91 is unused 4.3: getdopt */ 105: #define SYS_fcntl 92 106: #define SYS_select 93 107: /* 94 is unused 4.3: setdopt */ 108: #define SYS_fsync 95 109: #define SYS_setpriority 96 110: #define SYS_socket 97 111: #define SYS_connect 98 112: #define SYS_accept 99 113: #define SYS_getpriority 100 114: #define SYS_send 101 115: #define SYS_recv 102 116: #define SYS_sigreturn 103 117: #define SYS_bind 104 118: #define SYS_setsockopt 105 119: #define SYS_listen 106 120: #define SYS_sigsuspend 107 121: /* 122: * 108 thru 112 are 4.3BSD compatibility syscalls. sigstack has to remain 123: * defined because no replacement routine exists. Sigh. 124: */ 125: /* 108 is old; sigvec */ 126: /* 109 is old; sigblock */ 127: /* 110 is old; sigsetmask */ 128: /* 111 is old; sigpause */ 129: #define SYS_sigstack 112 130: 131: #define SYS_recvmsg 113 132: #define SYS_sendmsg 114 133: /* 115 is old; vtrace */ 134: #define SYS_gettimeofday 116 135: #define SYS_getrusage 117 136: #define SYS_getsockopt 118 137: /* 119 is old; resuba */ 138: #define SYS_readv 120 139: #define SYS_writev 121 140: #define SYS_settimeofday 122 141: #define SYS_fchown 123 142: #define SYS_fchmod 124 143: #define SYS_recvfrom 125 144: /* 126 is old; setreuid */ 145: /* 127 is old; setregid */ 146: #define SYS_rename 128 147: #define SYS_truncate 129 148: #define SYS_ftruncate 130 149: #define SYS_flock 131 150: /* 132 is unused */ 151: #define SYS_sendto 133 152: #define SYS_shutdown 134 153: #define SYS_socketpair 135 154: #define SYS_mkdir 136 155: #define SYS_rmdir 137 156: #define SYS_utimes 138 157: /* 139 is unused */ 158: #define SYS_adjtime 140 159: #define SYS_getpeername 141 160: /* 142 is old; gethostid */ 161: /* 143 is old; sethostid */ 162: #define SYS_getrlimit 144 163: #define SYS_setrlimit 145 164: #define SYS_killpg 146 165: /* 147 is unused */ 166: #define SYS_setquota 148 167: #define SYS_quota 149 168: #define SYS_getsockname 150 169: 170: /* 171: * 2BSD special calls 172: */ 173: /* 151 is unused */ 174: #define SYS_nostk 152 175: #define SYS_fetchi 153 176: #define SYS_ucall 154 177: #define SYS_fperr 155