summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-08-14 05:26:14 +0000
committerguenther <guenther@openbsd.org>2013-08-14 05:26:14 +0000
commit97f309f1cb2a852e6bad8d8b433b7c1a4949042c (patch)
treef3a66c001701eb3168b24ef496718fa2647af6d7 /sys/kern/kern_fork.c
parentdrm_heap.c is no longer needed (diff)
downloadwireguard-openbsd-97f309f1cb2a852e6bad8d8b433b7c1a4949042c.tar.xz
wireguard-openbsd-97f309f1cb2a852e6bad8d8b433b7c1a4949042c.zip
The last user of the old __tfork() was updated to the current one,
so COMPAT_O51 can go. The complete ABI role means COMPAT_O53 can be removed as well. ok jsing@ tedu@
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 48fea3532fc..fb04e7befc0 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.152 2013/06/11 13:00:31 tedu Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.153 2013/08/14 05:26:14 guenther Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -140,31 +140,6 @@ sys___tfork(struct proc *p, void *v, register_t *retval)
tfork_child_return, param.tf_tcb, retval, NULL));
}
-#ifdef COMPAT_O51
-int
-compat_o51_sys___tfork(struct proc *p, void *v, register_t *retval)
-{
- struct compat_o51_sys___tfork_args /* {
- syscallarg(struct __tfork51) *param;
- } */ *uap = v;
- struct __tfork51 param;
- int flags;
- int error;
-
- if ((error = copyin(SCARG(uap, param), &param, sizeof(param))))
- return (error);
-
- if (param.tf_flags != 0)
- return (EINVAL);
-
- flags = FORK_TFORK | FORK_THREAD | FORK_SIGHAND | FORK_SHAREVM
- | FORK_NOZOMBIE | FORK_SHAREFILES;
-
- return (fork1(p, 0, flags, NULL, param.tf_tid, tfork_child_return,
- param.tf_tcb, retval, NULL));
-}
-#endif
-
void
tfork_child_return(void *arg)
{