diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-09-20 07:18:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-09-20 07:18:04 +0000 |
commit | 55e7cdc38cb9ed52487fcd3c17cbbbe48002df05 (patch) | |
tree | 7f7158669a1b9561159ee9305410c3961f379f42 /sys/kern/uipc_syscalls.c | |
parent | 658fee6f7e197e7851aac6d9578d0c7e99e7ef6b (diff) |
Move getpeereid(2) into COMPAT_O47. In 4.8 and onwards it is library
code using socket options.
ok matthew
Diffstat (limited to 'sys/kern/uipc_syscalls.c')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 533c53595aa..34ca6b04dcb 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_syscalls.c,v 1.76 2010/07/03 04:44:51 guenther Exp $ */ +/* $OpenBSD: uipc_syscalls.c,v 1.77 2010/09/20 07:18:03 deraadt Exp $ */ /* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */ /* @@ -992,14 +992,15 @@ bad: return (error); } +#ifdef COMPAT_O47 /* * Get eid of peer for connected socket. */ /* ARGSUSED */ int -sys_getpeereid(struct proc *p, void *v, register_t *retval) +compat_o47_sys_getpeereid(struct proc *p, void *v, register_t *retval) { - struct sys_getpeereid_args /* { + struct compat_o47_sys_getpeereid_args /* { syscallarg(int) fdes; syscallarg(uid_t *) euid; syscallarg(gid_t *) egid; @@ -1036,6 +1037,7 @@ bad: m_freem(m); return (error); } +#endif /* COMPAT_O47 */ int sockargs(struct mbuf **mp, const void *buf, size_t buflen, int type) |