diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index 61d60e81469b..d7024c5ae742 100644 --- a/sys/kern/init_sysent.c +++ b/sys/kern/init_sysent.c @@ -1,280 +1,300 @@ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from Id: syscalls.master,v 1.23 1996/01/08 04:13:25 peter Exp + * created from Id: syscalls.master,v 1.26 1996/02/23 18:20:44 peter Exp */ #include #include #include #include #include #ifdef COMPAT_43 #define compat(n, name) n, (sy_call_t *)__CONCAT(o,name) #else #define compat(n, name) 0, (sy_call_t *)nosys #endif /* The casts are bogus but will do for now. */ struct sysent sysent[] = { { 0, (sy_call_t *)nosys }, /* 0 = syscall */ { 1, (sy_call_t *)exit }, /* 1 = exit */ { 0, (sy_call_t *)fork }, /* 2 = fork */ { 3, (sy_call_t *)read }, /* 3 = read */ { 3, (sy_call_t *)write }, /* 4 = write */ { 3, (sy_call_t *)open }, /* 5 = open */ { 1, (sy_call_t *)close }, /* 6 = close */ { 4, (sy_call_t *)wait4 }, /* 7 = wait4 */ { compat(2,creat) }, /* 8 = old creat */ { 2, (sy_call_t *)link }, /* 9 = link */ { 1, (sy_call_t *)unlink }, /* 10 = unlink */ { 0, (sy_call_t *)nosys }, /* 11 = obsolete execv */ { 1, (sy_call_t *)chdir }, /* 12 = chdir */ { 1, (sy_call_t *)fchdir }, /* 13 = fchdir */ { 3, (sy_call_t *)mknod }, /* 14 = mknod */ { 2, (sy_call_t *)chmod }, /* 15 = chmod */ { 3, (sy_call_t *)chown }, /* 16 = chown */ { 1, (sy_call_t *)obreak }, /* 17 = break */ { 3, (sy_call_t *)getfsstat }, /* 18 = getfsstat */ { compat(3,lseek) }, /* 19 = old lseek */ { 0, (sy_call_t *)getpid }, /* 20 = getpid */ { 4, (sy_call_t *)mount }, /* 21 = mount */ { 2, (sy_call_t *)unmount }, /* 22 = unmount */ { 1, (sy_call_t *)setuid }, /* 23 = setuid */ { 0, (sy_call_t *)getuid }, /* 24 = getuid */ { 0, (sy_call_t *)geteuid }, /* 25 = geteuid */ { 4, (sy_call_t *)ptrace }, /* 26 = ptrace */ { 3, (sy_call_t *)recvmsg }, /* 27 = recvmsg */ { 3, (sy_call_t *)sendmsg }, /* 28 = sendmsg */ { 6, (sy_call_t *)recvfrom }, /* 29 = recvfrom */ { 3, (sy_call_t *)accept }, /* 30 = accept */ { 3, (sy_call_t *)getpeername }, /* 31 = getpeername */ { 3, (sy_call_t *)getsockname }, /* 32 = getsockname */ { 2, (sy_call_t *)access }, /* 33 = access */ { 2, (sy_call_t *)chflags }, /* 34 = chflags */ { 2, (sy_call_t *)fchflags }, /* 35 = fchflags */ { 0, (sy_call_t *)sync }, /* 36 = sync */ { 2, (sy_call_t *)kill }, /* 37 = kill */ { compat(2,stat) }, /* 38 = old stat */ { 0, (sy_call_t *)getppid }, /* 39 = getppid */ { compat(2,lstat) }, /* 40 = old lstat */ { 1, (sy_call_t *)dup }, /* 41 = dup */ { 0, (sy_call_t *)pipe }, /* 42 = pipe */ { 0, (sy_call_t *)getegid }, /* 43 = getegid */ { 4, (sy_call_t *)profil }, /* 44 = profil */ { 4, (sy_call_t *)ktrace }, /* 45 = ktrace */ { 3, (sy_call_t *)sigaction }, /* 46 = sigaction */ { 0, (sy_call_t *)getgid }, /* 47 = getgid */ { 2, (sy_call_t *)sigprocmask }, /* 48 = sigprocmask */ { 2, (sy_call_t *)getlogin }, /* 49 = getlogin */ { 1, (sy_call_t *)setlogin }, /* 50 = setlogin */ { 1, (sy_call_t *)acct }, /* 51 = acct */ { 0, (sy_call_t *)sigpending }, /* 52 = sigpending */ { 2, (sy_call_t *)sigaltstack }, /* 53 = sigaltstack */ { 3, (sy_call_t *)ioctl }, /* 54 = ioctl */ { 1, (sy_call_t *)reboot }, /* 55 = reboot */ { 1, (sy_call_t *)revoke }, /* 56 = revoke */ { 2, (sy_call_t *)symlink }, /* 57 = symlink */ { 3, (sy_call_t *)readlink }, /* 58 = readlink */ { 3, (sy_call_t *)execve }, /* 59 = execve */ { 1, (sy_call_t *)umask }, /* 60 = umask */ { 1, (sy_call_t *)chroot }, /* 61 = chroot */ { compat(2,fstat) }, /* 62 = old fstat */ { compat(4,getkerninfo) }, /* 63 = old getkerninfo */ { compat(0,getpagesize) }, /* 64 = old getpagesize */ { 3, (sy_call_t *)msync }, /* 65 = msync */ { 0, (sy_call_t *)vfork }, /* 66 = vfork */ { 0, (sy_call_t *)nosys }, /* 67 = obsolete vread */ { 0, (sy_call_t *)nosys }, /* 68 = obsolete vwrite */ { 1, (sy_call_t *)sbrk }, /* 69 = sbrk */ { 1, (sy_call_t *)sstk }, /* 70 = sstk */ { compat(6,mmap) }, /* 71 = old mmap */ { 1, (sy_call_t *)ovadvise }, /* 72 = vadvise */ { 2, (sy_call_t *)munmap }, /* 73 = munmap */ { 3, (sy_call_t *)mprotect }, /* 74 = mprotect */ { 3, (sy_call_t *)madvise }, /* 75 = madvise */ { 0, (sy_call_t *)nosys }, /* 76 = obsolete vhangup */ { 0, (sy_call_t *)nosys }, /* 77 = obsolete vlimit */ { 3, (sy_call_t *)mincore }, /* 78 = mincore */ { 2, (sy_call_t *)getgroups }, /* 79 = getgroups */ { 2, (sy_call_t *)setgroups }, /* 80 = setgroups */ { 0, (sy_call_t *)getpgrp }, /* 81 = getpgrp */ { 2, (sy_call_t *)setpgid }, /* 82 = setpgid */ { 3, (sy_call_t *)setitimer }, /* 83 = setitimer */ { compat(0,wait) }, /* 84 = old wait */ { 1, (sy_call_t *)swapon }, /* 85 = swapon */ { 2, (sy_call_t *)getitimer }, /* 86 = getitimer */ { compat(2,gethostname) }, /* 87 = old gethostname */ { compat(2,sethostname) }, /* 88 = old sethostname */ { 0, (sy_call_t *)getdtablesize }, /* 89 = getdtablesize */ { 2, (sy_call_t *)dup2 }, /* 90 = dup2 */ { 0, (sy_call_t *)nosys }, /* 91 = getdopt */ { 3, (sy_call_t *)fcntl }, /* 92 = fcntl */ { 5, (sy_call_t *)select }, /* 93 = select */ { 0, (sy_call_t *)nosys }, /* 94 = setdopt */ { 1, (sy_call_t *)fsync }, /* 95 = fsync */ { 3, (sy_call_t *)setpriority }, /* 96 = setpriority */ { 3, (sy_call_t *)socket }, /* 97 = socket */ { 3, (sy_call_t *)connect }, /* 98 = connect */ { compat(3,accept) }, /* 99 = old accept */ { 2, (sy_call_t *)getpriority }, /* 100 = getpriority */ { compat(4,send) }, /* 101 = old send */ { compat(4,recv) }, /* 102 = old recv */ { 1, (sy_call_t *)sigreturn }, /* 103 = sigreturn */ { 3, (sy_call_t *)bind }, /* 104 = bind */ { 5, (sy_call_t *)setsockopt }, /* 105 = setsockopt */ { 2, (sy_call_t *)listen }, /* 106 = listen */ { 0, (sy_call_t *)nosys }, /* 107 = obsolete vtimes */ { compat(3,sigvec) }, /* 108 = old sigvec */ { compat(1,sigblock) }, /* 109 = old sigblock */ { compat(1,sigsetmask) }, /* 110 = old sigsetmask */ { 1, (sy_call_t *)sigsuspend }, /* 111 = sigsuspend */ { compat(2,sigstack) }, /* 112 = old sigstack */ { compat(3,recvmsg) }, /* 113 = old recvmsg */ { compat(3,sendmsg) }, /* 114 = old sendmsg */ { 0, (sy_call_t *)nosys }, /* 115 = obsolete vtrace */ { 2, (sy_call_t *)gettimeofday }, /* 116 = gettimeofday */ { 2, (sy_call_t *)getrusage }, /* 117 = getrusage */ { 5, (sy_call_t *)getsockopt }, /* 118 = getsockopt */ - { 0, (sy_call_t *)nosys }, /* 119 = nosys */ + { 0, (sy_call_t *)nosys }, /* 119 = resuba */ { 3, (sy_call_t *)readv }, /* 120 = readv */ { 3, (sy_call_t *)writev }, /* 121 = writev */ { 2, (sy_call_t *)settimeofday }, /* 122 = settimeofday */ { 3, (sy_call_t *)fchown }, /* 123 = fchown */ { 2, (sy_call_t *)fchmod }, /* 124 = fchmod */ { compat(6,recvfrom) }, /* 125 = old recvfrom */ { 2, (sy_call_t *)setreuid }, /* 126 = setreuid */ { 2, (sy_call_t *)setregid }, /* 127 = setregid */ { 2, (sy_call_t *)rename }, /* 128 = rename */ { compat(2,truncate) }, /* 129 = old truncate */ { compat(2,ftruncate) }, /* 130 = old ftruncate */ { 2, (sy_call_t *)flock }, /* 131 = flock */ { 2, (sy_call_t *)mkfifo }, /* 132 = mkfifo */ { 6, (sy_call_t *)sendto }, /* 133 = sendto */ { 2, (sy_call_t *)shutdown }, /* 134 = shutdown */ { 4, (sy_call_t *)socketpair }, /* 135 = socketpair */ { 2, (sy_call_t *)mkdir }, /* 136 = mkdir */ { 1, (sy_call_t *)rmdir }, /* 137 = rmdir */ { 2, (sy_call_t *)utimes }, /* 138 = utimes */ { 0, (sy_call_t *)nosys }, /* 139 = obsolete 4.2 sigreturn */ { 2, (sy_call_t *)adjtime }, /* 140 = adjtime */ { compat(3,getpeername) }, /* 141 = old getpeername */ { compat(0,gethostid) }, /* 142 = old gethostid */ { compat(1,sethostid) }, /* 143 = old sethostid */ { compat(2,getrlimit) }, /* 144 = old getrlimit */ { compat(2,setrlimit) }, /* 145 = old setrlimit */ { compat(2,killpg) }, /* 146 = old killpg */ { 0, (sy_call_t *)setsid }, /* 147 = setsid */ { 4, (sy_call_t *)quotactl }, /* 148 = quotactl */ { compat(0,quota) }, /* 149 = old quota */ { compat(3,getsockname) }, /* 150 = old getsockname */ - { 0, (sy_call_t *)nosys }, /* 151 = nosys */ - { 0, (sy_call_t *)nosys }, /* 152 = nosys */ - { 0, (sy_call_t *)nosys }, /* 153 = nosys */ + { 0, (sy_call_t *)nosys }, /* 151 = sem_lock */ + { 0, (sy_call_t *)nosys }, /* 152 = sem_wakeup */ + { 0, (sy_call_t *)nosys }, /* 153 = asyncdaemon */ { 0, (sy_call_t *)nosys }, /* 154 = nosys */ #ifdef NFS { 2, (sy_call_t *)nfssvc }, /* 155 = nfssvc */ #else { 0, (sy_call_t *)nosys }, /* 155 = nosys */ #endif { compat(4,getdirentries) }, /* 156 = old getdirentries */ { 2, (sy_call_t *)statfs }, /* 157 = statfs */ { 2, (sy_call_t *)fstatfs }, /* 158 = fstatfs */ { 0, (sy_call_t *)nosys }, /* 159 = nosys */ { 0, (sy_call_t *)nosys }, /* 160 = nosys */ #if defined(NFS) && !defined (NFS_NOSERVER) { 2, (sy_call_t *)getfh }, /* 161 = getfh */ #else { 0, (sy_call_t *)nosys }, /* 161 = nosys */ #endif { 2, (sy_call_t *)getdomainname }, /* 162 = getdomainname */ { 2, (sy_call_t *)setdomainname }, /* 163 = setdomainname */ { 1, (sy_call_t *)uname }, /* 164 = uname */ { 2, (sy_call_t *)sysarch }, /* 165 = sysarch */ { 3, (sy_call_t *)rtprio }, /* 166 = rtprio */ { 0, (sy_call_t *)nosys }, /* 167 = nosys */ { 0, (sy_call_t *)nosys }, /* 168 = nosys */ { 5, (sy_call_t *)semsys }, /* 169 = semsys */ { 6, (sy_call_t *)msgsys }, /* 170 = msgsys */ { 4, (sy_call_t *)shmsys }, /* 171 = shmsys */ { 0, (sy_call_t *)nosys }, /* 172 = nosys */ { 0, (sy_call_t *)nosys }, /* 173 = nosys */ { 0, (sy_call_t *)nosys }, /* 174 = nosys */ { 0, (sy_call_t *)nosys }, /* 175 = nosys */ { 1, (sy_call_t *)ntp_adjtime }, /* 176 = ntp_adjtime */ - { 0, (sy_call_t *)nosys }, /* 177 = nosys */ - { 0, (sy_call_t *)nosys }, /* 178 = nosys */ - { 0, (sy_call_t *)nosys }, /* 179 = nosys */ + { 0, (sy_call_t *)nosys }, /* 177 = sfork */ + { 0, (sy_call_t *)nosys }, /* 178 = getdescriptor */ + { 0, (sy_call_t *)nosys }, /* 179 = setdescriptor */ { 0, (sy_call_t *)nosys }, /* 180 = nosys */ { 1, (sy_call_t *)setgid }, /* 181 = setgid */ { 1, (sy_call_t *)setegid }, /* 182 = setegid */ { 1, (sy_call_t *)seteuid }, /* 183 = seteuid */ #ifdef LFS { 3, (sy_call_t *)lfs_bmapv }, /* 184 = lfs_bmapv */ { 3, (sy_call_t *)lfs_markv }, /* 185 = lfs_markv */ { 2, (sy_call_t *)lfs_segclean }, /* 186 = lfs_segclean */ { 2, (sy_call_t *)lfs_segwait }, /* 187 = lfs_segwait */ #else { 0, (sy_call_t *)nosys }, /* 184 = nosys */ { 0, (sy_call_t *)nosys }, /* 185 = nosys */ { 0, (sy_call_t *)nosys }, /* 186 = nosys */ { 0, (sy_call_t *)nosys }, /* 187 = nosys */ #endif { 2, (sy_call_t *)stat }, /* 188 = stat */ { 2, (sy_call_t *)fstat }, /* 189 = fstat */ { 2, (sy_call_t *)lstat }, /* 190 = lstat */ { 2, (sy_call_t *)pathconf }, /* 191 = pathconf */ { 2, (sy_call_t *)fpathconf }, /* 192 = fpathconf */ { 0, (sy_call_t *)nosys }, /* 193 = nosys */ { 2, (sy_call_t *)getrlimit }, /* 194 = getrlimit */ { 2, (sy_call_t *)setrlimit }, /* 195 = setrlimit */ { 4, (sy_call_t *)getdirentries }, /* 196 = getdirentries */ { 8, (sy_call_t *)mmap }, /* 197 = mmap */ { 0, (sy_call_t *)nosys }, /* 198 = __syscall */ { 5, (sy_call_t *)lseek }, /* 199 = lseek */ { 4, (sy_call_t *)truncate }, /* 200 = truncate */ { 4, (sy_call_t *)ftruncate }, /* 201 = ftruncate */ { 6, (sy_call_t *)__sysctl }, /* 202 = __sysctl */ { 2, (sy_call_t *)mlock }, /* 203 = mlock */ { 2, (sy_call_t *)munlock }, /* 204 = munlock */ { 0, (sy_call_t *)nosys }, /* 205 = nosys */ { 0, (sy_call_t *)nosys }, /* 206 = nosys */ { 0, (sy_call_t *)nosys }, /* 207 = nosys */ { 0, (sy_call_t *)nosys }, /* 208 = nosys */ { 0, (sy_call_t *)nosys }, /* 209 = nosys */ { 0, (sy_call_t *)lkmnosys }, /* 210 = lkmnosys */ { 0, (sy_call_t *)lkmnosys }, /* 211 = lkmnosys */ { 0, (sy_call_t *)lkmnosys }, /* 212 = lkmnosys */ { 0, (sy_call_t *)lkmnosys }, /* 213 = lkmnosys */ { 0, (sy_call_t *)lkmnosys }, /* 214 = lkmnosys */ { 0, (sy_call_t *)lkmnosys }, /* 215 = lkmnosys */ { 0, (sy_call_t *)lkmnosys }, /* 216 = lkmnosys */ { 0, (sy_call_t *)lkmnosys }, /* 217 = lkmnosys */ { 0, (sy_call_t *)lkmnosys }, /* 218 = lkmnosys */ { 0, (sy_call_t *)lkmnosys }, /* 219 = lkmnosys */ { 4, (sy_call_t *)__semctl }, /* 220 = __semctl */ { 3, (sy_call_t *)semget }, /* 221 = semget */ { 3, (sy_call_t *)semop }, /* 222 = semop */ { 1, (sy_call_t *)semconfig }, /* 223 = semconfig */ { 3, (sy_call_t *)msgctl }, /* 224 = msgctl */ { 2, (sy_call_t *)msgget }, /* 225 = msgget */ { 4, (sy_call_t *)msgsnd }, /* 226 = msgsnd */ { 5, (sy_call_t *)msgrcv }, /* 227 = msgrcv */ { 3, (sy_call_t *)shmat }, /* 228 = shmat */ { 3, (sy_call_t *)shmctl }, /* 229 = shmctl */ { 1, (sy_call_t *)shmdt }, /* 230 = shmdt */ { 3, (sy_call_t *)shmget }, /* 231 = shmget */ + { 0, (sy_call_t *)nosys }, /* 232 = nosys */ + { 0, (sy_call_t *)nosys }, /* 233 = nosys */ + { 0, (sy_call_t *)nosys }, /* 234 = nosys */ + { 0, (sy_call_t *)nosys }, /* 235 = nosys */ + { 0, (sy_call_t *)nosys }, /* 236 = nosys */ + { 0, (sy_call_t *)nosys }, /* 237 = nosys */ + { 0, (sy_call_t *)nosys }, /* 238 = nosys */ + { 0, (sy_call_t *)nosys }, /* 239 = nosys */ + { 0, (sy_call_t *)nosys }, /* 240 = nosys */ + { 0, (sy_call_t *)nosys }, /* 241 = nosys */ + { 0, (sy_call_t *)nosys }, /* 242 = nosys */ + { 0, (sy_call_t *)nosys }, /* 243 = nosys */ + { 0, (sy_call_t *)nosys }, /* 244 = nosys */ + { 0, (sy_call_t *)nosys }, /* 245 = nosys */ + { 0, (sy_call_t *)nosys }, /* 246 = nosys */ + { 0, (sy_call_t *)nosys }, /* 247 = nosys */ + { 0, (sy_call_t *)nosys }, /* 248 = nosys */ + { 0, (sy_call_t *)nosys }, /* 249 = nosys */ + { 3, (sy_call_t *)minherit }, /* 250 = minherit */ + { 1, (sy_call_t *)rfork }, /* 251 = rfork */ }; struct sysentvec aout_sysvec = { sizeof (sysent) / sizeof (sysent[0]), sysent, 0, 0, 0, 0, 0, 0 }; diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index 345ac09fc641..7ac8b69f7c6a 100644 --- a/sys/kern/syscalls.c +++ b/sys/kern/syscalls.c @@ -1,256 +1,276 @@ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from Id: syscalls.master,v 1.23 1996/01/08 04:13:25 peter Exp + * created from Id: syscalls.master,v 1.26 1996/02/23 18:20:44 peter Exp */ char *syscallnames[] = { "syscall", /* 0 = syscall */ "exit", /* 1 = exit */ "fork", /* 2 = fork */ "read", /* 3 = read */ "write", /* 4 = write */ "open", /* 5 = open */ "close", /* 6 = close */ "wait4", /* 7 = wait4 */ "old.creat", /* 8 = old creat */ "link", /* 9 = link */ "unlink", /* 10 = unlink */ "obs_execv", /* 11 = obsolete execv */ "chdir", /* 12 = chdir */ "fchdir", /* 13 = fchdir */ "mknod", /* 14 = mknod */ "chmod", /* 15 = chmod */ "chown", /* 16 = chown */ "break", /* 17 = break */ "getfsstat", /* 18 = getfsstat */ "old.lseek", /* 19 = old lseek */ "getpid", /* 20 = getpid */ "mount", /* 21 = mount */ "unmount", /* 22 = unmount */ "setuid", /* 23 = setuid */ "getuid", /* 24 = getuid */ "geteuid", /* 25 = geteuid */ "ptrace", /* 26 = ptrace */ "recvmsg", /* 27 = recvmsg */ "sendmsg", /* 28 = sendmsg */ "recvfrom", /* 29 = recvfrom */ "accept", /* 30 = accept */ "getpeername", /* 31 = getpeername */ "getsockname", /* 32 = getsockname */ "access", /* 33 = access */ "chflags", /* 34 = chflags */ "fchflags", /* 35 = fchflags */ "sync", /* 36 = sync */ "kill", /* 37 = kill */ "old.stat", /* 38 = old stat */ "getppid", /* 39 = getppid */ "old.lstat", /* 40 = old lstat */ "dup", /* 41 = dup */ "pipe", /* 42 = pipe */ "getegid", /* 43 = getegid */ "profil", /* 44 = profil */ "ktrace", /* 45 = ktrace */ "sigaction", /* 46 = sigaction */ "getgid", /* 47 = getgid */ "sigprocmask", /* 48 = sigprocmask */ "getlogin", /* 49 = getlogin */ "setlogin", /* 50 = setlogin */ "acct", /* 51 = acct */ "sigpending", /* 52 = sigpending */ "sigaltstack", /* 53 = sigaltstack */ "ioctl", /* 54 = ioctl */ "reboot", /* 55 = reboot */ "revoke", /* 56 = revoke */ "symlink", /* 57 = symlink */ "readlink", /* 58 = readlink */ "execve", /* 59 = execve */ "umask", /* 60 = umask */ "chroot", /* 61 = chroot */ "old.fstat", /* 62 = old fstat */ "old.getkerninfo", /* 63 = old getkerninfo */ "old.getpagesize", /* 64 = old getpagesize */ "msync", /* 65 = msync */ "vfork", /* 66 = vfork */ "obs_vread", /* 67 = obsolete vread */ "obs_vwrite", /* 68 = obsolete vwrite */ "sbrk", /* 69 = sbrk */ "sstk", /* 70 = sstk */ "old.mmap", /* 71 = old mmap */ "vadvise", /* 72 = vadvise */ "munmap", /* 73 = munmap */ "mprotect", /* 74 = mprotect */ "madvise", /* 75 = madvise */ "obs_vhangup", /* 76 = obsolete vhangup */ "obs_vlimit", /* 77 = obsolete vlimit */ "mincore", /* 78 = mincore */ "getgroups", /* 79 = getgroups */ "setgroups", /* 80 = setgroups */ "getpgrp", /* 81 = getpgrp */ "setpgid", /* 82 = setpgid */ "setitimer", /* 83 = setitimer */ "old.wait", /* 84 = old wait */ "swapon", /* 85 = swapon */ "getitimer", /* 86 = getitimer */ "old.gethostname", /* 87 = old gethostname */ "old.sethostname", /* 88 = old sethostname */ "getdtablesize", /* 89 = getdtablesize */ "dup2", /* 90 = dup2 */ "#91", /* 91 = getdopt */ "fcntl", /* 92 = fcntl */ "select", /* 93 = select */ "#94", /* 94 = setdopt */ "fsync", /* 95 = fsync */ "setpriority", /* 96 = setpriority */ "socket", /* 97 = socket */ "connect", /* 98 = connect */ "old.accept", /* 99 = old accept */ "getpriority", /* 100 = getpriority */ "old.send", /* 101 = old send */ "old.recv", /* 102 = old recv */ "sigreturn", /* 103 = sigreturn */ "bind", /* 104 = bind */ "setsockopt", /* 105 = setsockopt */ "listen", /* 106 = listen */ "obs_vtimes", /* 107 = obsolete vtimes */ "old.sigvec", /* 108 = old sigvec */ "old.sigblock", /* 109 = old sigblock */ "old.sigsetmask", /* 110 = old sigsetmask */ "sigsuspend", /* 111 = sigsuspend */ "old.sigstack", /* 112 = old sigstack */ "old.recvmsg", /* 113 = old recvmsg */ "old.sendmsg", /* 114 = old sendmsg */ "obs_vtrace", /* 115 = obsolete vtrace */ "gettimeofday", /* 116 = gettimeofday */ "getrusage", /* 117 = getrusage */ "getsockopt", /* 118 = getsockopt */ - "#119", /* 119 = nosys */ + "#119", /* 119 = resuba */ "readv", /* 120 = readv */ "writev", /* 121 = writev */ "settimeofday", /* 122 = settimeofday */ "fchown", /* 123 = fchown */ "fchmod", /* 124 = fchmod */ "old.recvfrom", /* 125 = old recvfrom */ "setreuid", /* 126 = setreuid */ "setregid", /* 127 = setregid */ "rename", /* 128 = rename */ "old.truncate", /* 129 = old truncate */ "old.ftruncate", /* 130 = old ftruncate */ "flock", /* 131 = flock */ "mkfifo", /* 132 = mkfifo */ "sendto", /* 133 = sendto */ "shutdown", /* 134 = shutdown */ "socketpair", /* 135 = socketpair */ "mkdir", /* 136 = mkdir */ "rmdir", /* 137 = rmdir */ "utimes", /* 138 = utimes */ "obs_4.2", /* 139 = obsolete 4.2 sigreturn */ "adjtime", /* 140 = adjtime */ "old.getpeername", /* 141 = old getpeername */ "old.gethostid", /* 142 = old gethostid */ "old.sethostid", /* 143 = old sethostid */ "old.getrlimit", /* 144 = old getrlimit */ "old.setrlimit", /* 145 = old setrlimit */ "old.killpg", /* 146 = old killpg */ "setsid", /* 147 = setsid */ "quotactl", /* 148 = quotactl */ "old.quota", /* 149 = old quota */ "old.getsockname", /* 150 = old getsockname */ - "#151", /* 151 = nosys */ - "#152", /* 152 = nosys */ - "#153", /* 153 = nosys */ + "#151", /* 151 = sem_lock */ + "#152", /* 152 = sem_wakeup */ + "#153", /* 153 = asyncdaemon */ "#154", /* 154 = nosys */ #ifdef NFS "nfssvc", /* 155 = nfssvc */ #else "#155", /* 155 = nosys */ #endif "old.getdirentries", /* 156 = old getdirentries */ "statfs", /* 157 = statfs */ "fstatfs", /* 158 = fstatfs */ "#159", /* 159 = nosys */ "#160", /* 160 = nosys */ #if defined(NFS) && !defined (NFS_NOSERVER) "getfh", /* 161 = getfh */ #else "#161", /* 161 = nosys */ #endif "getdomainname", /* 162 = getdomainname */ "setdomainname", /* 163 = setdomainname */ "uname", /* 164 = uname */ "sysarch", /* 165 = sysarch */ "rtprio", /* 166 = rtprio */ "#167", /* 167 = nosys */ "#168", /* 168 = nosys */ "semsys", /* 169 = semsys */ "msgsys", /* 170 = msgsys */ "shmsys", /* 171 = shmsys */ "#172", /* 172 = nosys */ "#173", /* 173 = nosys */ "#174", /* 174 = nosys */ "#175", /* 175 = nosys */ "ntp_adjtime", /* 176 = ntp_adjtime */ - "#177", /* 177 = nosys */ - "#178", /* 178 = nosys */ - "#179", /* 179 = nosys */ + "#177", /* 177 = sfork */ + "#178", /* 178 = getdescriptor */ + "#179", /* 179 = setdescriptor */ "#180", /* 180 = nosys */ "setgid", /* 181 = setgid */ "setegid", /* 182 = setegid */ "seteuid", /* 183 = seteuid */ #ifdef LFS "lfs_bmapv", /* 184 = lfs_bmapv */ "lfs_markv", /* 185 = lfs_markv */ "lfs_segclean", /* 186 = lfs_segclean */ "lfs_segwait", /* 187 = lfs_segwait */ #else "#184", /* 184 = nosys */ "#185", /* 185 = nosys */ "#186", /* 186 = nosys */ "#187", /* 187 = nosys */ #endif "stat", /* 188 = stat */ "fstat", /* 189 = fstat */ "lstat", /* 190 = lstat */ "pathconf", /* 191 = pathconf */ "fpathconf", /* 192 = fpathconf */ "#193", /* 193 = nosys */ "getrlimit", /* 194 = getrlimit */ "setrlimit", /* 195 = setrlimit */ "getdirentries", /* 196 = getdirentries */ "mmap", /* 197 = mmap */ "__syscall", /* 198 = __syscall */ "lseek", /* 199 = lseek */ "truncate", /* 200 = truncate */ "ftruncate", /* 201 = ftruncate */ "__sysctl", /* 202 = __sysctl */ "mlock", /* 203 = mlock */ "munlock", /* 204 = munlock */ "#205", /* 205 = nosys */ "#206", /* 206 = nosys */ "#207", /* 207 = nosys */ "#208", /* 208 = nosys */ "#209", /* 209 = nosys */ "lkmnosys", /* 210 = lkmnosys */ "lkmnosys", /* 211 = lkmnosys */ "lkmnosys", /* 212 = lkmnosys */ "lkmnosys", /* 213 = lkmnosys */ "lkmnosys", /* 214 = lkmnosys */ "lkmnosys", /* 215 = lkmnosys */ "lkmnosys", /* 216 = lkmnosys */ "lkmnosys", /* 217 = lkmnosys */ "lkmnosys", /* 218 = lkmnosys */ "lkmnosys", /* 219 = lkmnosys */ "__semctl", /* 220 = __semctl */ "semget", /* 221 = semget */ "semop", /* 222 = semop */ "semconfig", /* 223 = semconfig */ "msgctl", /* 224 = msgctl */ "msgget", /* 225 = msgget */ "msgsnd", /* 226 = msgsnd */ "msgrcv", /* 227 = msgrcv */ "shmat", /* 228 = shmat */ "shmctl", /* 229 = shmctl */ "shmdt", /* 230 = shmdt */ "shmget", /* 231 = shmget */ + "#232", /* 232 = nosys */ + "#233", /* 233 = nosys */ + "#234", /* 234 = nosys */ + "#235", /* 235 = nosys */ + "#236", /* 236 = nosys */ + "#237", /* 237 = nosys */ + "#238", /* 238 = nosys */ + "#239", /* 239 = nosys */ + "#240", /* 240 = nosys */ + "#241", /* 241 = nosys */ + "#242", /* 242 = nosys */ + "#243", /* 243 = nosys */ + "#244", /* 244 = nosys */ + "#245", /* 245 = nosys */ + "#246", /* 246 = nosys */ + "#247", /* 247 = nosys */ + "#248", /* 248 = nosys */ + "#249", /* 249 = nosys */ + "minherit", /* 250 = minherit */ + "rfork", /* 251 = rfork */ }; diff --git a/sys/sys/syscall-hide.h b/sys/sys/syscall-hide.h index 3d42d880a60c..ab5d35f1450c 100644 --- a/sys/sys/syscall-hide.h +++ b/sys/sys/syscall-hide.h @@ -1,210 +1,212 @@ /* * System call hiders. * * DO NOT EDIT-- this file is automatically generated. - * created from Id: syscalls.master,v 1.23 1996/01/08 04:13:25 peter Exp + * created from Id: syscalls.master,v 1.26 1996/02/23 18:20:44 peter Exp */ HIDE_POSIX(fork) HIDE_POSIX(read) HIDE_POSIX(write) HIDE_POSIX(open) HIDE_POSIX(close) HIDE_BSD(wait4) HIDE_BSD(creat) HIDE_POSIX(link) HIDE_POSIX(unlink) HIDE_POSIX(chdir) HIDE_BSD(fchdir) HIDE_POSIX(mknod) HIDE_POSIX(chmod) HIDE_POSIX(chown) HIDE_BSD(obreak) HIDE_BSD(getfsstat) HIDE_POSIX(lseek) HIDE_POSIX(getpid) HIDE_BSD(mount) HIDE_BSD(unmount) HIDE_POSIX(setuid) HIDE_POSIX(getuid) HIDE_POSIX(geteuid) HIDE_BSD(ptrace) HIDE_BSD(recvmsg) HIDE_BSD(sendmsg) HIDE_BSD(recvfrom) HIDE_BSD(accept) HIDE_BSD(getpeername) HIDE_BSD(getsockname) HIDE_POSIX(access) HIDE_BSD(chflags) HIDE_BSD(fchflags) HIDE_BSD(sync) HIDE_POSIX(kill) HIDE_POSIX(stat) HIDE_POSIX(getppid) HIDE_POSIX(lstat) HIDE_POSIX(dup) HIDE_POSIX(pipe) HIDE_POSIX(getegid) HIDE_BSD(profil) HIDE_BSD(ktrace) HIDE_POSIX(sigaction) HIDE_POSIX(getgid) HIDE_POSIX(sigprocmask) HIDE_BSD(getlogin) HIDE_BSD(setlogin) HIDE_BSD(acct) HIDE_POSIX(sigpending) HIDE_BSD(sigaltstack) HIDE_POSIX(ioctl) HIDE_BSD(reboot) HIDE_POSIX(revoke) HIDE_POSIX(symlink) HIDE_POSIX(readlink) HIDE_POSIX(execve) HIDE_POSIX(umask) HIDE_BSD(chroot) HIDE_POSIX(fstat) HIDE_BSD(getkerninfo) HIDE_BSD(getpagesize) HIDE_BSD(msync) HIDE_BSD(vfork) HIDE_BSD(sbrk) HIDE_BSD(sstk) HIDE_BSD(mmap) HIDE_BSD(ovadvise) HIDE_BSD(munmap) HIDE_BSD(mprotect) HIDE_BSD(madvise) HIDE_BSD(mincore) HIDE_POSIX(getgroups) HIDE_POSIX(setgroups) HIDE_POSIX(getpgrp) HIDE_POSIX(setpgid) HIDE_BSD(setitimer) HIDE_BSD(wait) HIDE_BSD(swapon) HIDE_BSD(getitimer) HIDE_BSD(gethostname) HIDE_BSD(sethostname) HIDE_BSD(getdtablesize) HIDE_POSIX(dup2) HIDE_BSD(getdopt) HIDE_POSIX(fcntl) HIDE_BSD(select) HIDE_BSD(setdopt) HIDE_POSIX(fsync) HIDE_BSD(setpriority) HIDE_BSD(socket) HIDE_BSD(connect) HIDE_BSD(accept) HIDE_BSD(getpriority) HIDE_BSD(send) HIDE_BSD(recv) HIDE_BSD(sigreturn) HIDE_BSD(bind) HIDE_BSD(setsockopt) HIDE_BSD(listen) HIDE_BSD(sigvec) HIDE_BSD(sigblock) HIDE_BSD(sigsetmask) HIDE_POSIX(sigsuspend) HIDE_BSD(sigstack) HIDE_BSD(recvmsg) HIDE_BSD(sendmsg) HIDE_BSD(gettimeofday) HIDE_BSD(getrusage) HIDE_BSD(getsockopt) HIDE_BSD(readv) HIDE_BSD(writev) HIDE_BSD(settimeofday) HIDE_BSD(fchown) HIDE_BSD(fchmod) HIDE_BSD(recvfrom) HIDE_BSD(setreuid) HIDE_BSD(setregid) HIDE_POSIX(rename) HIDE_BSD(truncate) HIDE_BSD(ftruncate) HIDE_BSD(flock) HIDE_POSIX(mkfifo) HIDE_BSD(sendto) HIDE_BSD(shutdown) HIDE_BSD(socketpair) HIDE_POSIX(mkdir) HIDE_POSIX(rmdir) HIDE_BSD(utimes) HIDE_BSD(adjtime) HIDE_BSD(getpeername) HIDE_BSD(gethostid) HIDE_BSD(sethostid) HIDE_BSD(getrlimit) HIDE_BSD(setrlimit) HIDE_BSD(killpg) HIDE_POSIX(setsid) HIDE_BSD(quotactl) HIDE_BSD(quota) HIDE_BSD(getsockname) #ifdef NFS HIDE_BSD(nfssvc) #else HIDE_BSD(nosys) #endif HIDE_BSD(getdirentries) HIDE_BSD(statfs) HIDE_BSD(fstatfs) #if defined(NFS) && !defined (NFS_NOSERVER) HIDE_BSD(getfh) #else HIDE_BSD(nosys) #endif HIDE_BSD(getdomainname) HIDE_BSD(setdomainname) HIDE_BSD(uname) HIDE_BSD(sysarch) HIDE_BSD(rtprio) HIDE_BSD(semsys) HIDE_BSD(msgsys) HIDE_BSD(shmsys) HIDE_BSD(ntp_adjtime) HIDE_POSIX(setgid) HIDE_BSD(setegid) HIDE_BSD(seteuid) #ifdef LFS HIDE_BSD(lfs_bmapv) HIDE_BSD(lfs_markv) HIDE_BSD(lfs_segclean) HIDE_BSD(lfs_segwait) #else HIDE_BSD(nosys) HIDE_BSD(nosys) HIDE_BSD(nosys) HIDE_BSD(nosys) #endif HIDE_POSIX(stat) HIDE_POSIX(fstat) HIDE_POSIX(lstat) HIDE_POSIX(pathconf) HIDE_POSIX(fpathconf) HIDE_BSD(getrlimit) HIDE_BSD(setrlimit) HIDE_BSD(getdirentries) HIDE_BSD(mmap) HIDE_POSIX(lseek) HIDE_BSD(truncate) HIDE_BSD(ftruncate) HIDE_BSD(__sysctl) HIDE_BSD(mlock) HIDE_BSD(munlock) HIDE_BSD(__semctl) HIDE_BSD(semget) HIDE_BSD(semop) HIDE_BSD(semconfig) HIDE_BSD(msgctl) HIDE_BSD(msgget) HIDE_BSD(msgsnd) HIDE_BSD(msgrcv) HIDE_BSD(shmat) HIDE_BSD(shmctl) HIDE_BSD(shmdt) HIDE_BSD(shmget) +HIDE_BSD(minherit) +HIDE_BSD(rfork) diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h index 306ded560982..b3ebb569e486 100644 --- a/sys/sys/syscall.h +++ b/sys/sys/syscall.h @@ -1,205 +1,207 @@ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from Id: syscalls.master,v 1.23 1996/01/08 04:13:25 peter Exp + * created from Id: syscalls.master,v 1.26 1996/02/23 18:20:44 peter Exp */ #define SYS_syscall 0 #define SYS_exit 1 #define SYS_fork 2 #define SYS_read 3 #define SYS_write 4 #define SYS_open 5 #define SYS_close 6 #define SYS_wait4 7 /* 8 is old creat */ #define SYS_link 9 #define SYS_unlink 10 /* 11 is obsolete execv */ #define SYS_chdir 12 #define SYS_fchdir 13 #define SYS_mknod 14 #define SYS_chmod 15 #define SYS_chown 16 #define SYS_break 17 #define SYS_getfsstat 18 /* 19 is old lseek */ #define SYS_getpid 20 #define SYS_mount 21 #define SYS_unmount 22 #define SYS_setuid 23 #define SYS_getuid 24 #define SYS_geteuid 25 #define SYS_ptrace 26 #define SYS_recvmsg 27 #define SYS_sendmsg 28 #define SYS_recvfrom 29 #define SYS_accept 30 #define SYS_getpeername 31 #define SYS_getsockname 32 #define SYS_access 33 #define SYS_chflags 34 #define SYS_fchflags 35 #define SYS_sync 36 #define SYS_kill 37 /* 38 is old stat */ #define SYS_getppid 39 /* 40 is old lstat */ #define SYS_dup 41 #define SYS_pipe 42 #define SYS_getegid 43 #define SYS_profil 44 #define SYS_ktrace 45 #define SYS_sigaction 46 #define SYS_getgid 47 #define SYS_sigprocmask 48 #define SYS_getlogin 49 #define SYS_setlogin 50 #define SYS_acct 51 #define SYS_sigpending 52 #define SYS_sigaltstack 53 #define SYS_ioctl 54 #define SYS_reboot 55 #define SYS_revoke 56 #define SYS_symlink 57 #define SYS_readlink 58 #define SYS_execve 59 #define SYS_umask 60 #define SYS_chroot 61 /* 62 is old fstat */ /* 63 is old getkerninfo */ /* 64 is old getpagesize */ #define SYS_msync 65 #define SYS_vfork 66 /* 67 is obsolete vread */ /* 68 is obsolete vwrite */ #define SYS_sbrk 69 #define SYS_sstk 70 /* 71 is old mmap */ #define SYS_vadvise 72 #define SYS_munmap 73 #define SYS_mprotect 74 #define SYS_madvise 75 /* 76 is obsolete vhangup */ /* 77 is obsolete vlimit */ #define SYS_mincore 78 #define SYS_getgroups 79 #define SYS_setgroups 80 #define SYS_getpgrp 81 #define SYS_setpgid 82 #define SYS_setitimer 83 /* 84 is old wait */ #define SYS_swapon 85 #define SYS_getitimer 86 /* 87 is old gethostname */ /* 88 is old sethostname */ #define SYS_getdtablesize 89 #define SYS_dup2 90 #define SYS_fcntl 92 #define SYS_select 93 #define SYS_fsync 95 #define SYS_setpriority 96 #define SYS_socket 97 #define SYS_connect 98 /* 99 is old accept */ #define SYS_getpriority 100 /* 101 is old send */ /* 102 is old recv */ #define SYS_sigreturn 103 #define SYS_bind 104 #define SYS_setsockopt 105 #define SYS_listen 106 /* 107 is obsolete vtimes */ /* 108 is old sigvec */ /* 109 is old sigblock */ /* 110 is old sigsetmask */ #define SYS_sigsuspend 111 /* 112 is old sigstack */ /* 113 is old recvmsg */ /* 114 is old sendmsg */ /* 115 is obsolete vtrace */ #define SYS_gettimeofday 116 #define SYS_getrusage 117 #define SYS_getsockopt 118 #define SYS_readv 120 #define SYS_writev 121 #define SYS_settimeofday 122 #define SYS_fchown 123 #define SYS_fchmod 124 /* 125 is old recvfrom */ #define SYS_setreuid 126 #define SYS_setregid 127 #define SYS_rename 128 /* 129 is old truncate */ /* 130 is old ftruncate */ #define SYS_flock 131 #define SYS_mkfifo 132 #define SYS_sendto 133 #define SYS_shutdown 134 #define SYS_socketpair 135 #define SYS_mkdir 136 #define SYS_rmdir 137 #define SYS_utimes 138 /* 139 is obsolete 4.2 sigreturn */ #define SYS_adjtime 140 /* 141 is old getpeername */ /* 142 is old gethostid */ /* 143 is old sethostid */ /* 144 is old getrlimit */ /* 145 is old setrlimit */ /* 146 is old killpg */ #define SYS_setsid 147 #define SYS_quotactl 148 /* 149 is old quota */ /* 150 is old getsockname */ #define SYS_nfssvc 155 /* 156 is old getdirentries */ #define SYS_statfs 157 #define SYS_fstatfs 158 #define SYS_getfh 161 #define SYS_getdomainname 162 #define SYS_setdomainname 163 #define SYS_uname 164 #define SYS_sysarch 165 #define SYS_rtprio 166 #define SYS_semsys 169 #define SYS_msgsys 170 #define SYS_shmsys 171 #define SYS_ntp_adjtime 176 #define SYS_setgid 181 #define SYS_setegid 182 #define SYS_seteuid 183 #define SYS_lfs_bmapv 184 #define SYS_lfs_markv 185 #define SYS_lfs_segclean 186 #define SYS_lfs_segwait 187 #define SYS_stat 188 #define SYS_fstat 189 #define SYS_lstat 190 #define SYS_pathconf 191 #define SYS_fpathconf 192 #define SYS_getrlimit 194 #define SYS_setrlimit 195 #define SYS_getdirentries 196 #define SYS_mmap 197 #define SYS___syscall 198 #define SYS_lseek 199 #define SYS_truncate 200 #define SYS_ftruncate 201 #define SYS___sysctl 202 #define SYS_mlock 203 #define SYS_munlock 204 #define SYS___semctl 220 #define SYS_semget 221 #define SYS_semop 222 #define SYS_semconfig 223 #define SYS_msgctl 224 #define SYS_msgget 225 #define SYS_msgsnd 226 #define SYS_msgrcv 227 #define SYS_shmat 228 #define SYS_shmctl 229 #define SYS_shmdt 230 #define SYS_shmget 231 -#define SYS_MAXSYSCALL 232 +#define SYS_minherit 250 +#define SYS_rfork 251 +#define SYS_MAXSYSCALL 252 diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h index 356169a04eef..b9609d2feb62 100644 --- a/sys/sys/sysproto.h +++ b/sys/sys/sysproto.h @@ -1,1039 +1,1052 @@ /* * System call prototypes. * * DO NOT EDIT-- this file is automatically generated. - * created from Id: syscalls.master,v 1.23 1996/01/08 04:13:25 peter Exp + * created from Id: syscalls.master,v 1.26 1996/02/23 18:20:44 peter Exp */ #ifndef _SYS_SYSPROTO_H_ #define _SYS_SYSPROTO_H_ #include #include #include struct nosys_args { int dummy; }; struct rexit_args { int rval; }; struct fork_args { int dummy; }; struct read_args { int fd; char * buf; u_int nbyte; }; struct write_args { int fd; char * buf; u_int nbyte; }; struct open_args { char * path; int flags; int mode; }; struct close_args { int fd; }; struct wait_args { int pid; int * status; int options; struct rusage * rusage; }; struct link_args { char * path; char * link; }; struct unlink_args { char * path; }; struct chdir_args { char * path; }; struct fchdir_args { int fd; }; struct mknod_args { char * path; int mode; int dev; }; struct chmod_args { char * path; int mode; }; struct chown_args { char * path; int uid; int gid; }; struct obreak_args { char * nsize; }; struct getfsstat_args { struct statfs * buf; long bufsize; int flags; }; struct getpid_args { int dummy; }; struct mount_args { int type; char * path; int flags; caddr_t data; }; struct unmount_args { char * path; int flags; }; struct setuid_args { uid_t uid; }; struct getuid_args { int dummy; }; struct geteuid_args { int dummy; }; struct ptrace_args { int req; pid_t pid; caddr_t addr; int data; }; struct recvmsg_args { int s; struct msghdr * msg; int flags; }; struct sendmsg_args { int s; caddr_t msg; int flags; }; struct recvfrom_args { int s; caddr_t buf; size_t len; int flags; caddr_t from; int * fromlenaddr; }; struct accept_args { int s; caddr_t name; int * anamelen; }; struct getpeername_args { int fdes; caddr_t asa; int * alen; }; struct getsockname_args { int fdes; caddr_t asa; int * alen; }; struct access_args { char * path; int flags; }; struct chflags_args { char * path; int flags; }; struct fchflags_args { int fd; int flags; }; struct sync_args { int dummy; }; struct kill_args { int pid; int signum; }; struct getppid_args { int dummy; }; struct dup_args { u_int fd; }; struct pipe_args { int dummy; }; struct getegid_args { int dummy; }; struct profil_args { caddr_t samples; u_int size; u_int offset; u_int scale; }; struct ktrace_args { char * fname; int ops; int facs; int pid; }; struct sigaction_args { int signum; struct sigaction * nsa; struct sigaction * osa; }; struct getgid_args { int dummy; }; struct sigprocmask_args { int how; sigset_t mask; }; struct getlogin_args { char * namebuf; u_int namelen; }; struct setlogin_args { char * namebuf; }; struct acct_args { char * path; }; struct sigpending_args { int dummy; }; struct sigaltstack_args { struct sigaltstack * nss; struct sigaltstack * oss; }; struct ioctl_args { int fd; u_long com; caddr_t data; }; struct reboot_args { int opt; }; struct revoke_args { char * path; }; struct symlink_args { char * path; char * link; }; struct readlink_args { char * path; char * buf; int count; }; struct execve_args { char * fname; char ** argv; char ** envv; }; struct umask_args { int newmask; }; struct chroot_args { char * path; }; struct getpagesize_args { int dummy; }; struct msync_args { caddr_t addr; int len; int flags; }; +struct vfork_args { + int dummy; +}; struct sbrk_args { int incr; }; struct sstk_args { int incr; }; struct ovadvise_args { int anom; }; struct munmap_args { caddr_t addr; int len; }; struct mprotect_args { caddr_t addr; int len; int prot; }; struct madvise_args { caddr_t addr; int len; int behav; }; struct mincore_args { caddr_t addr; int len; char * vec; }; struct getgroups_args { u_int gidsetsize; gid_t * gidset; }; struct setgroups_args { u_int gidsetsize; gid_t * gidset; }; struct getpgrp_args { int dummy; }; struct setpgid_args { int pid; int pgid; }; struct setitimer_args { u_int which; struct itimerval * itv; struct itimerval * oitv; }; struct owait_args { int dummy; }; struct swapon_args { char * name; }; struct getitimer_args { u_int which; struct itimerval * itv; }; struct getdtablesize_args { int dummy; }; struct dup2_args { u_int from; u_int to; }; struct fcntl_args { int fd; int cmd; int arg; }; struct select_args { u_int nd; fd_set * in; fd_set * ou; fd_set * ex; struct timeval * tv; }; struct fsync_args { int fd; }; struct setpriority_args { int which; int who; int prio; }; struct socket_args { int domain; int type; int protocol; }; struct connect_args { int s; caddr_t name; int namelen; }; struct getpriority_args { int which; int who; }; struct sigreturn_args { struct sigcontext * sigcntxp; }; struct bind_args { int s; caddr_t name; int namelen; }; struct setsockopt_args { int s; int level; int name; caddr_t val; int valsize; }; struct listen_args { int s; int backlog; }; struct sigsuspend_args { int mask; }; struct gettimeofday_args { struct timeval * tp; struct timezone * tzp; }; struct getrusage_args { int who; struct rusage * rusage; }; struct getsockopt_args { int s; int level; int name; caddr_t val; int * avalsize; }; struct readv_args { int fd; struct iovec * iovp; u_int iovcnt; }; struct writev_args { int fd; struct iovec * iovp; u_int iovcnt; }; struct settimeofday_args { struct timeval * tv; struct timezone * tzp; }; struct fchown_args { int fd; int uid; int gid; }; struct fchmod_args { int fd; int mode; }; struct setreuid_args { int ruid; int euid; }; struct setregid_args { int rgid; int egid; }; struct rename_args { char * from; char * to; }; struct flock_args { int fd; int how; }; struct mkfifo_args { char * path; int mode; }; struct sendto_args { int s; caddr_t buf; size_t len; int flags; caddr_t to; int tolen; }; struct shutdown_args { int s; int how; }; struct socketpair_args { int domain; int type; int protocol; int * rsv; }; struct mkdir_args { char * path; int mode; }; struct rmdir_args { char * path; }; struct utimes_args { char * path; struct timeval * tptr; }; struct adjtime_args { struct timeval * delta; struct timeval * olddelta; }; struct ogethostid_args { int dummy; }; struct setsid_args { int dummy; }; struct quotactl_args { char * path; int cmd; int uid; caddr_t arg; }; struct oquota_args { int dummy; }; #ifdef NFS struct nfssvc_args { int flag; caddr_t argp; }; #else #endif struct statfs_args { char * path; struct statfs * buf; }; struct fstatfs_args { int fd; struct statfs * buf; }; #if defined(NFS) && !defined (NFS_NOSERVER) struct getfh_args { char * fname; fhandle_t * fhp; }; #else #endif struct getdomainname_args { char * domainname; int len; }; struct setdomainname_args { char * domainname; int len; }; struct uname_args { struct utsname * name; }; struct sysarch_args { int op; char * parms; }; struct rtprio_args { int function; pid_t pid; struct rtprio * rtp; }; struct semsys_args { int which; int a2; int a3; int a4; int a5; }; struct msgsys_args { int which; int a2; int a3; int a4; int a5; int a6; }; struct shmsys_args { int which; int a2; int a3; int a4; }; struct ntp_adjtime_args { struct timex * tp; }; struct setgid_args { gid_t gid; }; struct setegid_args { gid_t egid; }; struct seteuid_args { uid_t euid; }; #ifdef LFS struct lfs_bmapv_args { fsid_t * fsidp; struct block_info * blkiov; int blkcnt; }; struct lfs_markv_args { fsid_t * fsidp; struct block_info * blkiov; int blkcnt; }; struct lfs_segclean_args { fsid_t * fsidp; u_long segment; }; struct lfs_segwait_args { fsid_t * fsidp; struct timeval * tv; }; #else #endif struct stat_args { char * path; struct stat * ub; }; struct fstat_args { int fd; struct stat * sb; }; struct lstat_args { char * path; struct stat * ub; }; struct pathconf_args { char * path; int name; }; struct fpathconf_args { int fd; int name; }; struct __getrlimit_args { u_int which; struct orlimit * rlp; }; struct __setrlimit_args { u_int which; struct orlimit * rlp; }; struct getdirentries_args { int fd; char * buf; u_int count; long * basep; }; struct mmap_args { caddr_t addr; size_t len; int prot; int flags; int fd; long pad; off_t pos; }; struct lseek_args { int fd; int pad; off_t offset; int whence; }; struct truncate_args { char * path; int pad; off_t length; }; struct ftruncate_args { int fd; int pad; off_t length; }; struct sysctl_args { int * name; u_int namelen; void * old; size_t * oldlenp; void * new; size_t newlen; }; struct mlock_args { caddr_t addr; size_t len; }; struct munlock_args { caddr_t addr; size_t len; }; struct __semctl_args { int semid; int semnum; int cmd; union semun * arg; }; struct semget_args { key_t key; int nsems; int semflg; }; struct semop_args { int semid; struct sembuf * sops; u_int nsops; }; struct semconfig_args { int flag; }; struct msgctl_args { int msqid; int cmd; struct msqid_ds * buf; }; struct msgget_args { key_t key; int msgflg; }; struct msgsnd_args { int msqid; void * msgp; size_t msgsz; int msgflg; }; struct msgrcv_args { int msqid; void * msgp; size_t msgsz; long msgtyp; int msgflg; }; struct shmat_args { int shmid; void * shmaddr; int shmflg; }; struct shmctl_args { int shmid; int cmd; struct shmid_ds * buf; }; struct shmdt_args { void * shmaddr; }; struct shmget_args { key_t key; int size; int shmflg; }; +struct minherit_args { + caddr_t addr; + size_t len; + int inherit; +}; +struct rfork_args { + int flags; +}; int nosys __P((struct proc *, struct nosys_args *, int [])); __dead void exit __P((struct proc *, struct rexit_args *, int [])); int fork __P((struct proc *, struct fork_args *, int [])); int read __P((struct proc *, struct read_args *, int [])); int write __P((struct proc *, struct write_args *, int [])); int open __P((struct proc *, struct open_args *, int [])); int close __P((struct proc *, struct close_args *, int [])); int wait4 __P((struct proc *, struct wait_args *, int [])); int link __P((struct proc *, struct link_args *, int [])); int unlink __P((struct proc *, struct unlink_args *, int [])); int chdir __P((struct proc *, struct chdir_args *, int [])); int fchdir __P((struct proc *, struct fchdir_args *, int [])); int mknod __P((struct proc *, struct mknod_args *, int [])); int chmod __P((struct proc *, struct chmod_args *, int [])); int chown __P((struct proc *, struct chown_args *, int [])); int obreak __P((struct proc *, struct obreak_args *, int [])); int getfsstat __P((struct proc *, struct getfsstat_args *, int [])); int getpid __P((struct proc *, struct getpid_args *, int [])); int mount __P((struct proc *, struct mount_args *, int [])); int unmount __P((struct proc *, struct unmount_args *, int [])); int setuid __P((struct proc *, struct setuid_args *, int [])); int getuid __P((struct proc *, struct getuid_args *, int [])); int geteuid __P((struct proc *, struct geteuid_args *, int [])); int ptrace __P((struct proc *, struct ptrace_args *, int [])); int recvmsg __P((struct proc *, struct recvmsg_args *, int [])); int sendmsg __P((struct proc *, struct sendmsg_args *, int [])); int recvfrom __P((struct proc *, struct recvfrom_args *, int [])); int accept __P((struct proc *, struct accept_args *, int [])); int getpeername __P((struct proc *, struct getpeername_args *, int [])); int getsockname __P((struct proc *, struct getsockname_args *, int [])); int access __P((struct proc *, struct access_args *, int [])); int chflags __P((struct proc *, struct chflags_args *, int [])); int fchflags __P((struct proc *, struct fchflags_args *, int [])); int sync __P((struct proc *, struct sync_args *, int [])); int kill __P((struct proc *, struct kill_args *, int [])); int getppid __P((struct proc *, struct getppid_args *, int [])); int dup __P((struct proc *, struct dup_args *, int [])); int pipe __P((struct proc *, struct pipe_args *, int [])); int getegid __P((struct proc *, struct getegid_args *, int [])); int profil __P((struct proc *, struct profil_args *, int [])); int ktrace __P((struct proc *, struct ktrace_args *, int [])); int sigaction __P((struct proc *, struct sigaction_args *, int [])); int getgid __P((struct proc *, struct getgid_args *, int [])); int sigprocmask __P((struct proc *, struct sigprocmask_args *, int [])); int getlogin __P((struct proc *, struct getlogin_args *, int [])); int setlogin __P((struct proc *, struct setlogin_args *, int [])); int acct __P((struct proc *, struct acct_args *, int [])); int sigpending __P((struct proc *, struct sigpending_args *, int [])); int sigaltstack __P((struct proc *, struct sigaltstack_args *, int [])); int ioctl __P((struct proc *, struct ioctl_args *, int [])); int reboot __P((struct proc *, struct reboot_args *, int [])); int revoke __P((struct proc *, struct revoke_args *, int [])); int symlink __P((struct proc *, struct symlink_args *, int [])); int readlink __P((struct proc *, struct readlink_args *, int [])); int execve __P((struct proc *, struct execve_args *, int [])); mode_t umask __P((struct proc *, struct umask_args *, int [])); int chroot __P((struct proc *, struct chroot_args *, int [])); int msync __P((struct proc *, struct msync_args *, int [])); -int vfork __P((struct proc *, struct fork_args *, int [])); +int vfork __P((struct proc *, struct vfork_args *, int [])); int sbrk __P((struct proc *, struct sbrk_args *, int [])); int sstk __P((struct proc *, struct sstk_args *, int [])); int ovadvise __P((struct proc *, struct ovadvise_args *, int [])); int munmap __P((struct proc *, struct munmap_args *, int [])); int mprotect __P((struct proc *, struct mprotect_args *, int [])); int madvise __P((struct proc *, struct madvise_args *, int [])); int mincore __P((struct proc *, struct mincore_args *, int [])); int getgroups __P((struct proc *, struct getgroups_args *, int [])); int setgroups __P((struct proc *, struct setgroups_args *, int [])); int getpgrp __P((struct proc *, struct getpgrp_args *, int [])); int setpgid __P((struct proc *, struct setpgid_args *, int [])); int setitimer __P((struct proc *, struct setitimer_args *, int [])); int swapon __P((struct proc *, struct swapon_args *, int [])); int getitimer __P((struct proc *, struct getitimer_args *, int [])); int getdtablesize __P((struct proc *, struct getdtablesize_args *, int [])); int dup2 __P((struct proc *, struct dup2_args *, int [])); int fcntl __P((struct proc *, struct fcntl_args *, int [])); int select __P((struct proc *, struct select_args *, int [])); int fsync __P((struct proc *, struct fsync_args *, int [])); int setpriority __P((struct proc *, struct setpriority_args *, int [])); int socket __P((struct proc *, struct socket_args *, int [])); int connect __P((struct proc *, struct connect_args *, int [])); int getpriority __P((struct proc *, struct getpriority_args *, int [])); int sigreturn __P((struct proc *, struct sigreturn_args *, int [])); int bind __P((struct proc *, struct bind_args *, int [])); int setsockopt __P((struct proc *, struct setsockopt_args *, int [])); int listen __P((struct proc *, struct listen_args *, int [])); int sigsuspend __P((struct proc *, struct sigsuspend_args *, int [])); int gettimeofday __P((struct proc *, struct gettimeofday_args *, int [])); int getrusage __P((struct proc *, struct getrusage_args *, int [])); int getsockopt __P((struct proc *, struct getsockopt_args *, int [])); int readv __P((struct proc *, struct readv_args *, int [])); int writev __P((struct proc *, struct writev_args *, int [])); int settimeofday __P((struct proc *, struct settimeofday_args *, int [])); int fchown __P((struct proc *, struct fchown_args *, int [])); int fchmod __P((struct proc *, struct fchmod_args *, int [])); int setreuid __P((struct proc *, struct setreuid_args *, int [])); int setregid __P((struct proc *, struct setregid_args *, int [])); int rename __P((struct proc *, struct rename_args *, int [])); int flock __P((struct proc *, struct flock_args *, int [])); int mkfifo __P((struct proc *, struct mkfifo_args *, int [])); int sendto __P((struct proc *, struct sendto_args *, int [])); int shutdown __P((struct proc *, struct shutdown_args *, int [])); int socketpair __P((struct proc *, struct socketpair_args *, int [])); int mkdir __P((struct proc *, struct mkdir_args *, int [])); int rmdir __P((struct proc *, struct rmdir_args *, int [])); int utimes __P((struct proc *, struct utimes_args *, int [])); int adjtime __P((struct proc *, struct adjtime_args *, int [])); int setsid __P((struct proc *, struct setsid_args *, int [])); int quotactl __P((struct proc *, struct quotactl_args *, int [])); #ifdef NFS int nfssvc __P((struct proc *, struct nfssvc_args *, int [])); #else #endif int statfs __P((struct proc *, struct statfs_args *, int [])); int fstatfs __P((struct proc *, struct fstatfs_args *, int [])); #if defined(NFS) && !defined (NFS_NOSERVER) int getfh __P((struct proc *, struct getfh_args *, int [])); #else #endif int getdomainname __P((struct proc *, struct getdomainname_args *, int [])); int setdomainname __P((struct proc *, struct setdomainname_args *, int [])); int uname __P((struct proc *, struct uname_args *, int [])); int sysarch __P((struct proc *, struct sysarch_args *, int [])); int rtprio __P((struct proc *, struct rtprio_args *, int [])); int semsys __P((struct proc *, struct semsys_args *, int [])); int msgsys __P((struct proc *, struct msgsys_args *, int [])); int shmsys __P((struct proc *, struct shmsys_args *, int [])); int ntp_adjtime __P((struct proc *, struct ntp_adjtime_args *, int [])); int setgid __P((struct proc *, struct setgid_args *, int [])); int setegid __P((struct proc *, struct setegid_args *, int [])); int seteuid __P((struct proc *, struct seteuid_args *, int [])); #ifdef LFS int lfs_bmapv __P((struct proc *, struct lfs_bmapv_args *, int [])); int lfs_markv __P((struct proc *, struct lfs_markv_args *, int [])); int lfs_segclean __P((struct proc *, struct lfs_segclean_args *, int [])); int lfs_segwait __P((struct proc *, struct lfs_segwait_args *, int [])); #else #endif int stat __P((struct proc *, struct stat_args *, int [])); int fstat __P((struct proc *, struct fstat_args *, int [])); int lstat __P((struct proc *, struct lstat_args *, int [])); int pathconf __P((struct proc *, struct pathconf_args *, int [])); int fpathconf __P((struct proc *, struct fpathconf_args *, int [])); int getrlimit __P((struct proc *, struct __getrlimit_args *, int [])); int setrlimit __P((struct proc *, struct __setrlimit_args *, int [])); int getdirentries __P((struct proc *, struct getdirentries_args *, int [])); int mmap __P((struct proc *, struct mmap_args *, int [])); int lseek __P((struct proc *, struct lseek_args *, int [])); int truncate __P((struct proc *, struct truncate_args *, int [])); int ftruncate __P((struct proc *, struct ftruncate_args *, int [])); int __sysctl __P((struct proc *, struct sysctl_args *, int [])); int mlock __P((struct proc *, struct mlock_args *, int [])); int munlock __P((struct proc *, struct munlock_args *, int [])); int lkmnosys __P((struct proc *, struct nosys_args *, int [])); int __semctl __P((struct proc *, struct __semctl_args *, int [])); int semget __P((struct proc *, struct semget_args *, int [])); int semop __P((struct proc *, struct semop_args *, int [])); int semconfig __P((struct proc *, struct semconfig_args *, int [])); int msgctl __P((struct proc *, struct msgctl_args *, int [])); int msgget __P((struct proc *, struct msgget_args *, int [])); int msgsnd __P((struct proc *, struct msgsnd_args *, int [])); int msgrcv __P((struct proc *, struct msgrcv_args *, int [])); int shmat __P((struct proc *, struct shmat_args *, int [])); int shmctl __P((struct proc *, struct shmctl_args *, int [])); int shmdt __P((struct proc *, struct shmdt_args *, int [])); int shmget __P((struct proc *, struct shmget_args *, int [])); +int minherit __P((struct proc *, struct minherit_args *, int [])); +int rfork __P((struct proc *, struct rfork_args *, int [])); #ifdef COMPAT_43 struct ocreat_args { char * path; int mode; }; struct olseek_args { int fd; long offset; int whence; }; struct ostat_args { char * path; struct ostat * ub; }; struct olstat_args { char * path; struct ostat * ub; }; struct ofstat_args { int fd; struct ostat * sb; }; struct getkerninfo_args { int op; char * where; int * size; int arg; }; struct ommap_args { caddr_t addr; int len; int prot; int flags; int fd; long pos; }; struct gethostname_args { char * hostname; u_int len; }; struct sethostname_args { char * hostname; u_int len; }; struct osend_args { int s; caddr_t buf; int len; int flags; }; struct orecv_args { int s; caddr_t buf; int len; int flags; }; struct osigvec_args { int signum; struct sigvec * nsv; struct sigvec * osv; }; struct osigblock_args { int mask; }; struct osigsetmask_args { int mask; }; struct osigstack_args { struct sigstack * nss; struct sigstack * oss; }; struct orecvmsg_args { int s; struct omsghdr * msg; int flags; }; struct osendmsg_args { int s; caddr_t msg; int flags; }; struct otruncate_args { char * path; long length; }; struct oftruncate_args { int fd; long length; }; struct ogetpeername_args { int fdes; caddr_t asa; int * alen; }; struct osethostid_args { long hostid; }; struct ogetrlimit_args { u_int which; struct ogetrlimit * rlp; }; struct osetrlimit_args { u_int which; struct ogetrlimit * rlp; }; struct okillpg_args { int pgid; int signum; }; #ifdef NFS #else #endif struct ogetdirentries_args { int fd; char * buf; u_int count; long * basep; }; #if defined(NFS) && !defined (NFS_NOSERVER) #else #endif #ifdef LFS #else #endif int ocreat __P((struct proc *, struct ocreat_args *, int [])); int olseek __P((struct proc *, struct olseek_args *, int [])); int ostat __P((struct proc *, struct ostat_args *, int [])); int olstat __P((struct proc *, struct olstat_args *, int [])); int ofstat __P((struct proc *, struct ofstat_args *, int [])); int ogetkerninfo __P((struct proc *, struct getkerninfo_args *, int [])); int ogetpagesize __P((struct proc *, struct getpagesize_args *, int [])); int ommap __P((struct proc *, struct ommap_args *, int [])); int owait __P((struct proc *, struct owait_args *, int [])); int ogethostname __P((struct proc *, struct gethostname_args *, int [])); int osethostname __P((struct proc *, struct sethostname_args *, int [])); int oaccept __P((struct proc *, struct accept_args *, int [])); int osend __P((struct proc *, struct osend_args *, int [])); int orecv __P((struct proc *, struct orecv_args *, int [])); int osigvec __P((struct proc *, struct osigvec_args *, int [])); int osigblock __P((struct proc *, struct osigblock_args *, int [])); int osigsetmask __P((struct proc *, struct osigsetmask_args *, int [])); int osigstack __P((struct proc *, struct osigstack_args *, int [])); int orecvmsg __P((struct proc *, struct orecvmsg_args *, int [])); int osendmsg __P((struct proc *, struct osendmsg_args *, int [])); int orecvfrom __P((struct proc *, struct recvfrom_args *, int [])); int otruncate __P((struct proc *, struct otruncate_args *, int [])); int oftruncate __P((struct proc *, struct oftruncate_args *, int [])); int ogetpeername __P((struct proc *, struct ogetpeername_args *, int [])); int ogethostid __P((struct proc *, struct ogethostid_args *, int [])); int osethostid __P((struct proc *, struct osethostid_args *, int [])); int ogetrlimit __P((struct proc *, struct ogetrlimit_args *, int [])); int osetrlimit __P((struct proc *, struct osetrlimit_args *, int [])); int okillpg __P((struct proc *, struct okillpg_args *, int [])); int oquota __P((struct proc *, struct oquota_args *, int [])); int ogetsockname __P((struct proc *, struct getsockname_args *, int [])); int ogetdirentries __P((struct proc *, struct ogetdirentries_args *, int [])); #endif /* COMPAT_43 */ #endif /* !_SYS_SYSPROTO_H_ */