summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2011-07-07 01:19:39 +0000
committertedu <tedu@openbsd.org>2011-07-07 01:19:39 +0000
commitfbf7d76740c1b7b509979f05d8e13dfb66028cff (patch)
treee4d1f60018f9ba7e0926e8578367f935db0e5a89
parentDocument extended-precision routines. (diff)
downloadwireguard-openbsd-fbf7d76740c1b7b509979f05d8e13dfb66028cff.tar.xz
wireguard-openbsd-fbf7d76740c1b7b509979f05d8e13dfb66028cff.zip
remove all the old COMPAT_43 syscalls. The option itself remains for
the other things it enables. Move a few old wrappers into linux compat where they are still being used. ok deraadt guenther
-rw-r--r--sys/compat/linux/linux_file.c46
-rw-r--r--sys/compat/linux/linux_misc.c17
-rw-r--r--sys/compat/linux/linux_resource.c27
-rw-r--r--sys/compat/linux/linux_socket.c100
-rw-r--r--sys/compat/linux/syscalls.master11
-rw-r--r--sys/conf/files11
-rw-r--r--sys/kern/syscalls.master90
7 files changed, 218 insertions, 84 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 3cce3741841..584aaf10bff 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_file.c,v 1.24 2010/07/26 01:56:27 guenther Exp $ */
+/* $OpenBSD: linux_file.c,v 1.25 2011/07/07 01:19:39 tedu Exp $ */
/* $NetBSD: linux_file.c,v 1.15 1996/05/20 01:59:09 fvdl Exp $ */
/*
@@ -205,6 +205,26 @@ linux_sys_open(p, v, retval)
return 0;
}
+int
+linux_sys_lseek(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+ struct linux_sys_lseek_args /* {
+ syscallarg(int) fd;
+ syscallarg(long) offset;
+ syscallarg(int) whence;
+ } */ *uap = v;
+ struct sys_lseek_args bla;
+
+ SCARG(&bla, fd) = SCARG(uap, fd);
+ SCARG(&bla, offset) = SCARG(uap, offset);
+ SCARG(&bla, whence) = SCARG(uap, whence);
+
+ return sys_lseek(p, &bla, retval);
+}
+
/*
* This appears to be part of a Linux attempt to switch to 64 bits file sizes.
*/
@@ -828,6 +848,24 @@ linux_sys_readlink(p, v, retval)
}
int
+linux_sys_ftruncate(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+ struct linux_sys_ftruncate_args /* {
+ syscallarg(int) fd;
+ syscallarg(long) length;
+ } */ *uap = v;
+ struct sys_ftruncate_args sta;
+
+ SCARG(&sta, fd) = SCARG(uap, fd);
+ SCARG(&sta, length) = SCARG(uap, length);
+
+ return sys_ftruncate(p, uap, retval);
+}
+
+int
linux_sys_truncate(p, v, retval)
struct proc *p;
void *v;
@@ -838,10 +876,14 @@ linux_sys_truncate(p, v, retval)
syscallarg(long) length;
} */ *uap = v;
caddr_t sg = stackgap_init(p->p_emul);
+ struct sys_truncate_args sta;
LINUX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
- return compat_43_sys_truncate(p, uap, retval);
+ SCARG(&sta, path) = SCARG(uap, path);
+ SCARG(&sta, length) = SCARG(uap, length);
+
+ return sys_truncate(p, &sta, retval);
}
/*
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index b6eb3c6f7c7..4733511b35c 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_misc.c,v 1.68 2011/06/05 19:41:09 deraadt Exp $ */
+/* $OpenBSD: linux_misc.c,v 1.69 2011/07/07 01:19:39 tedu Exp $ */
/* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */
/*-
@@ -55,6 +55,7 @@
#include <sys/signal.h>
#include <sys/signalvar.h>
#include <sys/socket.h>
+#include <sys/sysctl.h>
#include <sys/time.h>
#include <sys/times.h>
#include <sys/vnode.h>
@@ -566,6 +567,20 @@ linux_sys_oldolduname(p, v, retval)
return copyout(&luts, SCARG(uap, up), sizeof(luts));
}
+int
+linux_sys_sethostname(struct proc *p, void *v, register_t *retval)
+{
+ struct linux_sys_sethostname_args *uap = v;
+ int name;
+ int error;
+
+ if ((error = suser(p, 0)) != 0)
+ return (error);
+ name = KERN_HOSTNAME;
+ return (kern_sysctl(&name, 1, 0, 0, SCARG(uap, hostname),
+ SCARG(uap, len), p));
+}
+
/*
* Linux wants to pass everything to a syscall in registers. However,
* mmap() has 6 of them. Oops: out of register error. They just pass
diff --git a/sys/compat/linux/linux_resource.c b/sys/compat/linux/linux_resource.c
index 4d8885187ab..11c86d852ca 100644
--- a/sys/compat/linux/linux_resource.c
+++ b/sys/compat/linux/linux_resource.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_resource.c,v 1.4 2003/06/03 20:49:28 deraadt Exp $ */
+/* $OpenBSD: linux_resource.c,v 1.5 2011/07/07 01:19:39 tedu Exp $ */
/*
* Copyright (c) 2000 Niklas Hallqvist
@@ -68,6 +68,29 @@ linux_to_bsd_rlimit(which)
return (linux_to_bsd_rlimit_map[which]);
}
+
+struct compat_sys_setrlimit_args {
+ syscallarg(int) which;
+ syscallarg(struct olimit *) rlp;
+};
+int compat_sys_setrlimit(struct proc *p, void *v, register_t *retval);
+int
+compat_sys_setrlimit(struct proc *p, void *v, register_t *retval)
+{
+ struct compat_sys_setrlimit_args *uap = v;
+ struct orlimit olim;
+ struct rlimit lim;
+ int error;
+
+ error = copyin((caddr_t)SCARG(uap, rlp), (caddr_t)&olim,
+ sizeof (struct orlimit));
+ if (error)
+ return (error);
+ lim.rlim_cur = olim.rlim_cur;
+ lim.rlim_max = olim.rlim_max;
+ return (dosetrlimit(p, SCARG(uap, which), &lim));
+}
+
int
linux_sys_setrlimit(p, v, retval)
struct proc *p;
@@ -82,7 +105,7 @@ linux_sys_setrlimit(p, v, retval)
SCARG(uap, which) = linux_to_bsd_rlimit(SCARG(uap, which));
if (SCARG(uap, which) == RLIM_NLIMITS)
return (EINVAL);
- return (compat_43_sys_setrlimit(p, v, retval));
+ return (compat_sys_setrlimit(p, v, retval));
}
int
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 861fc69853c..50b5ee1cbd4 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_socket.c,v 1.39 2009/09/05 10:28:43 miod Exp $ */
+/* $OpenBSD: linux_socket.c,v 1.40 2011/07/07 01:19:39 tedu Exp $ */
/* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */
/*
@@ -356,6 +356,34 @@ linux_listen(p, v, retval)
return sys_listen(p, &bla, retval);
}
+int compat_sys_accept(struct proc *p, void *v, register_t *retval);
+int
+compat_sys_accept(struct proc *p, void *v, register_t *retval)
+{
+ struct sys_accept_args /* {
+ syscallarg(int) s;
+ syscallarg(caddr_t) name;
+ syscallarg(int *) anamelen;
+ } */ *uap = v;
+ int error;
+
+ if ((error = sys_accept(p, uap, retval)) != 0)
+ return error;
+
+ if (SCARG(uap, name)) {
+ struct sockaddr sa;
+
+ if ((error = copyin(SCARG(uap, name), &sa, sizeof(sa))) != 0)
+ return error;
+
+ ((struct osockaddr*) &sa)->sa_family = sa.sa_family;
+
+ if ((error = copyout(&sa, SCARG(uap, name), sizeof(sa))) != 0)
+ return error;
+ }
+ return 0;
+}
+
int
linux_accept(p, v, retval)
struct proc *p;
@@ -368,7 +396,7 @@ linux_accept(p, v, retval)
syscallarg(int *) namelen;
} */ *uap = v;
struct linux_accept_args laa;
- struct compat_43_sys_accept_args baa;
+ struct sys_accept_args baa;
struct sys_fcntl_args fca;
int error;
@@ -376,10 +404,10 @@ linux_accept(p, v, retval)
return error;
SCARG(&baa, s) = laa.s;
- SCARG(&baa, name) = (caddr_t) laa.addr;
+ SCARG(&baa, name) = laa.addr;
SCARG(&baa, anamelen) = laa.namelen;
- error = compat_43_sys_accept(p, &baa, retval);
+ error = compat_sys_accept(p, &baa, retval);
if (error)
return (error);
@@ -489,6 +517,34 @@ linux_socketpair(p, v, retval)
return sys_socketpair(p, &bsa, retval);
}
+int compat_sys_send(struct proc *, void *, register_t *);
+struct compat_sys_send_args {
+ syscallarg(int) s;
+ syscallarg(caddr_t) buf;
+ syscallarg(int) len;
+ syscallarg(int) flags;
+};
+int
+compat_sys_send(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+ struct compat_sys_send_args *uap = v;
+ struct msghdr msg;
+ struct iovec aiov;
+
+ msg.msg_name = 0;
+ msg.msg_namelen = 0;
+ msg.msg_iov = &aiov;
+ msg.msg_iovlen = 1;
+ aiov.iov_base = SCARG(uap, buf);
+ aiov.iov_len = SCARG(uap, len);
+ msg.msg_control = 0;
+ msg.msg_flags = 0;
+ return (sendit(p, SCARG(uap, s), &msg, SCARG(uap, flags), retval));
+}
+
int
linux_send(p, v, retval)
struct proc *p;
@@ -501,8 +557,8 @@ linux_send(p, v, retval)
syscallarg(int) len;
syscallarg(int) flags;
} */ *uap = v;
+ struct compat_sys_send_args bsa;
struct linux_send_args lsa;
- struct compat_43_sys_send_args bsa;
int error;
if ((error = copyin((caddr_t) uap, (caddr_t) &lsa, sizeof lsa)))
@@ -513,7 +569,35 @@ linux_send(p, v, retval)
SCARG(&bsa, len) = lsa.len;
SCARG(&bsa, flags) = lsa.flags;
- return compat_43_sys_send(p, &bsa, retval);
+ return compat_sys_send(p, &bsa, retval);
+}
+
+struct compat_sys_recv_args {
+ syscallarg(int) s;
+ syscallarg(caddr_t) buf;
+ syscallarg(int) len;
+ syscallarg(int) flags;
+};
+int compat_sys_recv(struct proc *p, void *v, register_t *retval);
+int
+compat_sys_recv(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+ struct compat_sys_recv_args *uap = v;
+ struct msghdr msg;
+ struct iovec aiov;
+
+ msg.msg_name = 0;
+ msg.msg_namelen = 0;
+ msg.msg_iov = &aiov;
+ msg.msg_iovlen = 1;
+ aiov.iov_base = SCARG(uap, buf);
+ aiov.iov_len = SCARG(uap, len);
+ msg.msg_control = 0;
+ msg.msg_flags = SCARG(uap, flags);
+ return (recvit(p, SCARG(uap, s), &msg, (caddr_t)0, retval));
}
int
@@ -529,7 +613,7 @@ linux_recv(p, v, retval)
syscallarg(int) flags;
} */ *uap = v;
struct linux_recv_args lra;
- struct compat_43_sys_recv_args bra;
+ struct compat_sys_recv_args bra;
int error;
if ((error = copyin((caddr_t) uap, (caddr_t) &lra, sizeof lra)))
@@ -540,7 +624,7 @@ linux_recv(p, v, retval)
SCARG(&bra, len) = lra.len;
SCARG(&bra, flags) = lra.flags;
- return compat_43_sys_recv(p, &bra, retval);
+ return compat_sys_recv(p, &bra, retval);
}
int
diff --git a/sys/compat/linux/syscalls.master b/sys/compat/linux/syscalls.master
index 1ee5c0ee254..cb411636a9b 100644
--- a/sys/compat/linux/syscalls.master
+++ b/sys/compat/linux/syscalls.master
@@ -1,4 +1,4 @@
- $OpenBSD: syscalls.master,v 1.55 2011/04/05 15:44:40 pirofti Exp $
+ $OpenBSD: syscalls.master,v 1.56 2011/07/07 01:19:39 tedu Exp $
; $NetBSD: syscalls.master,v 1.15 1995/12/18 14:35:10 fvdl Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -67,7 +67,7 @@
int gid); }
17 STD { int linux_sys_break(char *nsize); }
18 STD { int linux_sys_ostat(void); }
-19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \
+19 STD { long linux_sys_lseek(int fd, long offset, \
int whence); }
20 STD { pid_t linux_sys_getpid(void); }
21 STD { int linux_sys_mount(char *specialfile, char *dir, \
@@ -138,8 +138,7 @@
72 STD { int linux_sys_sigsuspend(caddr_t restart, \
int oldmask, int mask); }
73 STD { int linux_sys_sigpending(linux_old_sigset_t *mask); }
-74 NOARGS { int compat_43_sys_sethostname(char *hostname, \
- u_int len);}
+74 STD { int linux_sys_sethostname(char *hostname, u_int len);}
75 STD { int linux_sys_setrlimit(u_int which, \
struct linux_rlimit *rlp); }
76 STD { int linux_sys_getrlimit(u_int which, \
@@ -155,7 +154,7 @@
gid_t *gidset); }
82 STD { int linux_sys_oldselect(struct linux_select *lsp); }
83 STD { int linux_sys_symlink(char *path, char *to); }
-84 NOARGS { int compat_43_sys_lstat(char *path, \
+84 NOARGS { int linux_sys_lstat(char *path, \
struct stat43 *up); } olstat
85 STD { int linux_sys_readlink(char *name, char *buf, \
int count); }
@@ -167,7 +166,7 @@
90 STD { int linux_sys_mmap(struct linux_mmap *lmp); }
91 NOARGS { int sys_munmap(caddr_t addr, int len); }
92 STD { int linux_sys_truncate(char *path, long length); }
-93 NOARGS { int compat_43_sys_ftruncate(int fd, long length); }
+93 STD { int linux_sys_ftruncate(int fd, long length); }
94 NOARGS { int sys_fchmod(int fd, int mode); }
95 STD { int linux_sys_fchown16(int fd, int uid, int gid); }
96 NOARGS { int sys_getpriority(int which, int who); }
diff --git a/sys/conf/files b/sys/conf/files
index 22329b3925f..2a0d5846da4 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -1,4 +1,4 @@
-# $OpenBSD: files,v 1.518 2011/07/06 10:25:21 ariane Exp $
+# $OpenBSD: files,v 1.519 2011/07/07 01:19:39 tedu Exp $
# $NetBSD: files,v 1.87 1996/05/19 17:17:50 jonathan Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
@@ -1054,14 +1054,7 @@ file compat/common/compat_util.c !small_kernel
file compat/common/compat_dir.c !small_kernel
file compat/common/compat_vm.c !small_kernel & compat_linux
file compat/common/kern_info_09.c !small_kernel & compat_linux
-file compat/common/kern_exit_43.c !small_kernel
-file compat/common/kern_info_43.c !small_kernel
-file compat/common/kern_resource_43.c !small_kernel
-file compat/common/kern_sig_43.c !small_kernel
-file compat/common/tty_43.c !small_kernel
-file compat/common/uipc_syscalls_43.c !small_kernel
-file compat/common/vfs_syscalls_43.c !small_kernel
-file compat/common/vm_43.c !small_kernel
+file compat/common/tty_43.c compat_43
# libx86emu
file dev/x86emu/x86emu.c x86emu
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 376c7f66502..bc5544b872d 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -1,4 +1,4 @@
-; $OpenBSD: syscalls.master,v 1.108 2011/06/30 13:43:14 tedu Exp $
+; $OpenBSD: syscalls.master,v 1.109 2011/07/07 01:19:40 tedu Exp $
; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -60,7 +60,7 @@
6 STD { int sys_close(int fd); }
7 STD { pid_t sys_wait4(pid_t pid, int *status, int options, \
struct rusage *rusage); }
-8 COMPAT_43 { int sys_creat(const char *path, mode_t mode); } ocreat
+8 OBSOL ocreat
9 STD { int sys_link(const char *path, const char *link); }
10 STD { int sys_unlink(const char *path); }
11 OBSOL execv
@@ -74,8 +74,7 @@
17 STD { int sys_obreak(char *nsize); } break
18 COMPAT_25 { int sys_getfsstat(struct statfs *buf, long bufsize, \
int flags); } ogetfsstat
-19 COMPAT_43 { long sys_lseek(int fd, long offset, int whence); } \
- olseek
+19 OBSOL olseek
20 STD { pid_t sys_getpid(void); }
21 STD { int sys_mount(const char *type, const char *path, \
int flags, void *data); }
@@ -107,11 +106,9 @@
35 STD { int sys_fchflags(int fd, u_int flags); }
36 STD { void sys_sync(void); }
37 STD { int sys_kill(int pid, int signum); }
-38 COMPAT_43 { int sys_stat(const char *path, struct stat43 *ub); } \
- stat43
+38 OBSOL stat43
39 STD { pid_t sys_getppid(void); }
-40 COMPAT_43 { int sys_lstat(char *path, \
- struct stat43 *ub); } lstat43
+40 OBSOL lstat43
41 STD { int sys_dup(int fd); }
42 STD { int sys_opipe(void); }
43 STD { gid_t sys_getegid(void); }
@@ -150,18 +147,16 @@
char * const *argp, char * const *envp); }
60 STD { mode_t sys_umask(mode_t newmask); }
61 STD { int sys_chroot(const char *path); }
-62 COMPAT_43 { int sys_fstat(int fd, struct stat43 *sb); } fstat43
-63 COMPAT_43 { int sys_getkerninfo(int op, char *where, int *size, \
- int arg); } ogetkerninfo
-64 COMPAT_43 { int sys_getpagesize(void); } ogetpagesize
+62 OBSOL fstat43
+63 OBSOL ogetkerninfo
+64 OBSOL ogetpagesize
65 COMPAT_25 { int sys_omsync(caddr_t addr, size_t len); }
66 STD { int sys_vfork(void); }
67 OBSOL vread
68 OBSOL vwrite
69 STD { int sys_sbrk(int incr); }
70 STD { int sys_sstk(int incr); }
-71 COMPAT_43 { int sys_mmap(caddr_t addr, size_t len, int prot, \
- int flags, int fd, long pos); } ommap
+71 OBSOL ommap
72 OBSOL vadvise
73 STD { int sys_munmap(void *addr, size_t len); }
74 STD { int sys_mprotect(void *addr, size_t len, \
@@ -181,15 +176,13 @@
83 STD { int sys_setitimer(int which, \
const struct itimerval *itv, \
struct itimerval *oitv); }
-84 COMPAT_43 { int sys_wait(void); } owait
+84 OBSOL owait
85 COMPAT_25 { int sys_swapon(const char *name); }
86 STD { int sys_getitimer(int which, \
struct itimerval *itv); }
-87 COMPAT_43 { int sys_gethostname(char *hostname, u_int len); } \
- ogethostname
-88 COMPAT_43 { int sys_sethostname(char *hostname, u_int len); } \
- osethostname
-89 COMPAT_43 { int sys_getdtablesize(void); } ogetdtablesize
+87 OBSOL ogethostname
+88 OBSOL osethostname
+89 OBSOL ogetdtablesize
90 STD { int sys_dup2(int from, int to); }
91 UNIMPL getdopt
92 STD { int sys_fcntl(int fd, int cmd, ... void *arg); }
@@ -201,13 +194,10 @@
97 STD { int sys_socket(int domain, int type, int protocol); }
98 STD { int sys_connect(int s, const struct sockaddr *name, \
socklen_t namelen); }
-99 COMPAT_43 { int sys_accept(int s, caddr_t name, \
- int *anamelen); } oaccept
+99 OBSOL oaccept
100 STD { int sys_getpriority(int which, id_t who); }
-101 COMPAT_43 { int sys_send(int s, caddr_t buf, int len, \
- int flags); } osend
-102 COMPAT_43 { int sys_recv(int s, caddr_t buf, int len, \
- int flags); } orecv
+101 OBSOL osend
+102 OBSOL orecv
103 STD { int sys_sigreturn(struct sigcontext *sigcntxp); }
104 STD { int sys_bind(int s, const struct sockaddr *name, \
socklen_t namelen); }
@@ -215,17 +205,13 @@
const void *val, socklen_t valsize); }
106 STD { int sys_listen(int s, int backlog); }
107 OBSOL vtimes
-108 COMPAT_43 { int sys_sigvec(int signum, struct sigvec *nsv, \
- struct sigvec *osv); } osigvec
-109 COMPAT_43 { int sys_sigblock(int mask); } osigblock
-110 COMPAT_43 { int sys_sigsetmask(int mask); } osigsetmask
+108 OBSOL osigvec
+109 OBSOL osigblock
+110 OBSOL osigsetmask
111 STD { int sys_sigsuspend(int mask); }
-112 COMPAT_43 { int sys_sigstack(struct sigstack *nss, \
- struct sigstack *oss); } osigstack
-113 COMPAT_43 { int sys_recvmsg(int s, struct omsghdr *msg, \
- int flags); } orecvmsg
-114 COMPAT_43 { int sys_sendmsg(int s, caddr_t msg, int flags); } \
- osendmsg
+112 OBSOL osigstack
+113 OBSOL orecvmsg
+114 OBSOL osendmsg
115 OBSOL vtrace
116 STD NOLOCK { int sys_gettimeofday(struct timeval *tp, \
struct timezone *tzp); }
@@ -241,15 +227,12 @@
const struct timezone *tzp); }
123 STD { int sys_fchown(int fd, uid_t uid, gid_t gid); }
124 STD { int sys_fchmod(int fd, mode_t mode); }
-125 COMPAT_43 { int sys_recvfrom(int s, caddr_t buf, size_t len, \
- int flags, caddr_t from, int *fromlenaddr); } \
- orecvfrom
+125 OBSOL orecvfrom
126 STD { int sys_setreuid(uid_t ruid, uid_t euid); }
127 STD { int sys_setregid(gid_t rgid, gid_t egid); }
128 STD { int sys_rename(const char *from, const char *to); }
-129 COMPAT_43 { int sys_truncate(const char *path, long length); } \
- otruncate
-130 COMPAT_43 { int sys_ftruncate(int fd, long length); } oftruncate
+129 OBSOL otruncate
+130 OBSOL oftruncate
131 STD { int sys_flock(int fd, int how); }
132 STD { int sys_mkfifo(const char *path, mode_t mode); }
133 STD { ssize_t sys_sendto(int s, const void *buf, \
@@ -265,21 +248,17 @@
139 OBSOL 4.2 sigreturn
140 STD { int sys_adjtime(const struct timeval *delta, \
struct timeval *olddelta); }
-141 COMPAT_43 { int sys_getpeername(int fdes, caddr_t asa, \
- socklen_t *alen); } ogetpeername
-142 COMPAT_43 { int32_t sys_gethostid(void); } ogethostid
-143 COMPAT_43 { int sys_sethostid(int32_t hostid); } osethostid
-144 COMPAT_43 { int sys_getrlimit(int which, \
- struct ogetrlimit *rlp); } ogetrlimit
-145 COMPAT_43 { int sys_setrlimit(int which, \
- struct ogetrlimit *rlp); } osetrlimit
-146 COMPAT_43 { int sys_killpg(int pgid, int signum); } okillpg
+141 OBSOL ogetpeername
+142 OBSOL ogethostid
+143 OBSOL osethostid
+144 OBSOL ogetrlimit
+145 OBSOL osetrlimit
+146 OBSOL okillpg
147 STD { int sys_setsid(void); }
148 STD { int sys_quotactl(const char *path, int cmd, \
int uid, char *arg); }
-149 COMPAT_43 { int sys_quota(void); } oquota
-150 COMPAT_43 { int sys_getsockname(int fdec, caddr_t asa, \
- int *alen); } ogetsockname
+149 OBSOL oquota
+150 OBSOL ogetsockname
; Syscalls 151-180 inclusive are reserved for vendor-specific
; system calls. (This includes various calls added for compatibility
@@ -294,8 +273,7 @@
#else
155 UNIMPL
#endif
-156 COMPAT_43 { int sys_getdirentries(int fd, char *buf, \
- int count, long *basep); } ogetdirentries
+156 OBSOL ogetdirentries
157 COMPAT_25 { int sys_statfs(const char *path, \
struct ostatfs *buf); } ostatfs
158 COMPAT_25 { int sys_fstatfs(int fd, struct ostatfs *buf); } \