summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-28 12:03:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-28 12:03:40 +0000
commitb105b18f1546839e2c73a2905d146bb7d998b954 (patch)
tree7042d67a3bcbe4746a468f3b8a64b821f701f150 /sys/kern
parentbd455efe372824022a972acd91f692e315c550d4 (diff)
The short-lived dnssocket/dnsconnect calls are being required because we
suspect everyone has upgraded through the approx week-long window since SOCK_DNS became available and the libc resolver started using them.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/syscalls.master7
-rw-r--r--sys/kern/uipc_syscalls.c23
2 files changed, 4 insertions, 26 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
index 5dfb3d5a563..b34435f75ad 100644
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -1,4 +1,4 @@
-; $OpenBSD: syscalls.master,v 1.163 2015/10/18 00:04:43 deraadt Exp $
+; $OpenBSD: syscalls.master,v 1.164 2015/10/28 12:03:39 deraadt Exp $
; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -297,9 +297,8 @@
156 OBSOL ogetdirentries
157 OBSOL statfs25
158 OBSOL fstatfs25
-159 STD { int sys_dnsconnect(int s, const struct sockaddr *name, \
- socklen_t namelen); }
-160 STD { int sys_dnssocket(int domain, int type, int protocol); }
+159 UNIMPL
+160 UNIMPL
161 STD { int sys_getfh(const char *fname, fhandle_t *fhp); }
162 OBSOL ogetdomainname
163 OBSOL osetdomainname
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c
index efdbd450262..76dbe1cc568 100644
--- a/sys/kern/uipc_syscalls.c
+++ b/sys/kern/uipc_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_syscalls.c,v 1.120 2015/10/26 12:17:03 tedu Exp $ */
+/* $OpenBSD: uipc_syscalls.c,v 1.121 2015/10/28 12:03:39 deraadt Exp $ */
/* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */
/*
@@ -67,20 +67,6 @@ extern struct fileops socketops;
int copyaddrout(struct proc *, struct mbuf *, struct sockaddr *, socklen_t,
socklen_t *);
-/* XXX dnssocket() - temporary backwards compat */
-int
-sys_dnssocket(struct proc *p, void *v, register_t *retval)
-{
- struct sys_socket_args /* {
- syscallarg(int) domain;
- syscallarg(int) type;
- syscallarg(int) protocol;
- } */ *uap = v;
-
- SCARG(uap, type) |= SOCK_DNS;
- return sys_socket(p, v, retval);
-}
-
int
sys_socket(struct proc *p, void *v, register_t *retval)
{
@@ -359,13 +345,6 @@ bad:
return (error);
}
-/* XXX dnsconnect() - temporary backwards compat */
-int
-sys_dnsconnect(struct proc *p, void *v, register_t *retval)
-{
- return sys_connect(p, v, retval);
-}
-
/* ARGSUSED */
int
sys_connect(struct proc *p, void *v, register_t *retval)