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.2 (2.11BSD GTE) 4/21/94 7: */ 8: 9: #define SYS_exit 1 10: #define SYS_fork 2 11: #define SYS_read 3 12: #define SYS_write 4 13: #define SYS_open 5 14: #define SYS_close 6 15: #define SYS_wait4 7 16: #define SYS_creat 8 17: #define SYS_link 9 18: #define SYS_unlink 10 19: #define SYS_execv 11 20: #define SYS_chdir 12 21: #define SYS_fchdir 13 22: #define SYS_mknod 14 23: #define SYS_chmod 15 24: #define SYS_chown 16 25: /* 17 is old: sbreak */ 26: /* 18 is old: stat */ 27: #define SYS_lseek 19 28: #define SYS_getpid 20 29: #define SYS_mount 21 30: #define SYS_umount 22 31: /* 23 is old: setuid */ 32: #define SYS_getuid 24 33: /* 25 is old: stime */ 34: #define SYS_ptrace 26 35: /* 27 is old: alarm */ 36: /* 28 is old: fstat */ 37: /* 29 is old: pause */ 38: /* 30 is old: utime */ 39: /* 31 is old: stty */ 40: /* 32 is old: gtty */ 41: #define SYS_access 33 42: /* 34 is old: nice */ 43: /* 35 is old: ftime */ 44: #define SYS_sync 36 45: #define SYS_kill 37 46: #define SYS_stat 38 47: /* 39 is old: setpgrp */ 48: #define SYS_lstat 40 49: #define SYS_dup 41 50: #define SYS_pipe 42 51: /* 43 is old: times */ 52: #define SYS_profil 44 53: /* 45 is unused */ 54: /* 46 is old: setgid */ 55: #define SYS_getgid 47 56: /* 48 is old: sigsys */ 57: /* 49 is unused */ 58: /* 50 is unused */ 59: #define SYS_acct 51 60: #define SYS_phys 52 61: #define SYS_lock 53 62: #define SYS_ioctl 54 63: #define SYS_reboot 55 64: /* 56 is old: mpxchan */ 65: #define SYS_symlink 57 66: #define SYS_readlink 58 67: #define SYS_execve 59 68: #define SYS_umask 60 69: #define SYS_chroot 61 70: #define SYS_fstat 62 71: /* 63 is unused */ 72: #define SYS_getpagesize 64 73: #define SYS_mremap 65 74: #define SYS_vfork 66 75: /* 67 is old: vread */ 76: /* 68 is old: vwrite */ 77: #define SYS_sbrk 69 78: #define SYS_sstk 70 79: #define SYS_mmap 71 80: /* 72 is old: vadvise */ 81: #define SYS_munmap 73 82: #define SYS_mprotect 74 83: #define SYS_madvise 75 84: #define SYS_vhangup 76 85: /* 77 is old: vlimit */ 86: #define SYS_mincore 78 87: #define SYS_getgroups 79 88: #define SYS_setgroups 80 89: #define SYS_getpgrp 81 90: #define SYS_setpgrp 82 91: #define SYS_setitimer 83 92: /* 84 is old; wait,wait3 */ 93: #define SYS_swapon 85 94: #define SYS_getitimer 86 95: #define SYS_gethostname 87 96: #define SYS_sethostname 88 97: #define SYS_getdtablesize 89 98: #define SYS_dup2 90 99: #define SYS_getdopt 91 100: #define SYS_fcntl 92 101: #define SYS_select 93 102: #define SYS_setdopt 94 103: #define SYS_fsync 95 104: #define SYS_setpriority 96 105: #define SYS_socket 97 106: #define SYS_connect 98 107: #define SYS_accept 99 108: #define SYS_getpriority 100 109: #define SYS_send 101 110: #define SYS_recv 102 111: #define SYS_sigreturn 103 112: #define SYS_bind 104 113: #define SYS_setsockopt 105 114: #define SYS_listen 106 115: /* 107 was vtimes */ 116: #define SYS_sigvec 108 117: #define SYS_sigblock 109 118: #define SYS_sigsetmask 110 119: #define SYS_sigpause 111 120: #define SYS_sigstack 112 121: #define SYS_recvmsg 113 122: #define SYS_sendmsg 114 123: /* 115 is old vtrace */ 124: #define SYS_gettimeofday 116 125: #define SYS_getrusage 117 126: #define SYS_getsockopt 118 127: /* 119 is old resuba */ 128: #define SYS_readv 120 129: #define SYS_writev 121 130: #define SYS_settimeofday 122 131: #define SYS_fchown 123 132: #define SYS_fchmod 124 133: #define SYS_recvfrom 125 134: #define SYS_setreuid 126 135: #define SYS_setregid 127 136: #define SYS_rename 128 137: #define SYS_truncate 129 138: #define SYS_ftruncate 130 139: #define SYS_flock 131 140: /* 132 is unused */ 141: #define SYS_sendto 133 142: #define SYS_shutdown 134 143: #define SYS_socketpair 135 144: #define SYS_mkdir 136 145: #define SYS_rmdir 137 146: #define SYS_utimes 138 147: /* 139 is unused */ 148: #define SYS_adjtime 140 149: #define SYS_getpeername 141 150: #define SYS_gethostid 142 151: #define SYS_sethostid 143 152: #define SYS_getrlimit 144 153: #define SYS_setrlimit 145 154: #define SYS_killpg 146 155: /* 147 is unused */ 156: #define SYS_setquota 148 157: #define SYS_quota 149 158: #define SYS_getsockname 150 159: 160: /* 161: * 2BSD special calls 162: */ 163: /* 151 is unused */ 164: #define SYS_nostk 152 165: #define SYS_fetchi 153 166: #define SYS_ucall 154 167: #define SYS_fperr 155 168: #define SYS_gldav 156