summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-04-12 14:25:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-04-12 14:25:58 +0000
commit2ae14dc1eac094ab12a8f2a4530025568f48eab3 (patch)
treef34a58497fae6414a5f07d9a77ae367122f9fb1f /lib/libc
parentbcc80ee02f051d35a08f455d3f34fa401882dbfc (diff)
more rfork mop-up
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/sysctl.36
-rw-r--r--lib/libc/sys/Lint_rfork.c15
-rw-r--r--lib/libc/sys/__get_tcb.28
-rw-r--r--lib/libc/sys/kqueue.210
4 files changed, 9 insertions, 30 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index 1e0af58a3ba..dc895475a7c 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.3,v 1.213 2012/04/10 15:57:36 guenther Exp $
+.\" $OpenBSD: sysctl.3,v 1.214 2012/04/12 14:25:57 deraadt Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: April 10 2012 $
+.Dd $Mdocdate: April 12 2012 $
.Dt SYSCTL 3
.Os
.Sh NAME
@@ -599,7 +599,7 @@ This structure contains information about the number of
.Xr fork 2 ,
.Xr vfork 2 ,
and
-.Xr rfork 2
+.Xr __tfork 2
system calls as well as kernel thread creations since system startup,
and the number of pages of virtual memory involved in each.
.It Dv KERN_FSCALE
diff --git a/lib/libc/sys/Lint_rfork.c b/lib/libc/sys/Lint_rfork.c
deleted file mode 100644
index 0a7be328a5f..00000000000
--- a/lib/libc/sys/Lint_rfork.c
+++ /dev/null
@@ -1,15 +0,0 @@
-/* $OpenBSD: Lint_rfork.c,v 1.1 2004/09/14 22:18:35 deraadt Exp $ */
-
-/*
- * This file placed in the public domain.
- * Chris Demetriou, November 5, 1997.
- */
-
-#include <unistd.h>
-
-/*ARGSUSED*/
-int
-rfork(int flags)
-{
- return (0);
-}
diff --git a/lib/libc/sys/__get_tcb.2 b/lib/libc/sys/__get_tcb.2
index e27fde543af..58cf27191e8 100644
--- a/lib/libc/sys/__get_tcb.2
+++ b/lib/libc/sys/__get_tcb.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: __get_tcb.2,v 1.3 2012/03/04 21:23:48 guenther Exp $
+.\" $OpenBSD: __get_tcb.2,v 1.4 2012/04/12 14:25:57 deraadt Exp $
.\"
.\" Copyright (c) 2011 Philip Guenther <guenther@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: March 4 2012 $
+.Dd $Mdocdate: April 12 2012 $
.Dt __GET_TCB 2
.Os
.Sh NAME
@@ -42,7 +42,7 @@ New threads (including the first thread of a new process) created using
.Xr fork 2 ,
.Xr vfork 2 ,
or
-.Xr rfork 2 ,
+.Xr __tfork 2 ,
inherit the TCB address of the thread that created them.
.Xr execve 2
resets it to zero.
@@ -53,7 +53,7 @@ register which can be accessed from userspace.
.Fn __get_tcb
returns the address of the thread control block of the current thread.
.Sh SEE ALSO
-.Xr rfork 2
+.Xr __tfork 2
.Sh HISTORY
The
.Fn __get_tcb
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index 76a9664e95f..55266bff364 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: kqueue.2,v 1.24 2012/02/18 08:19:38 ajacoutot Exp $
+.\" $OpenBSD: kqueue.2,v 1.25 2012/04/12 14:25:57 deraadt Exp $
.\"
.\" Copyright (c) 2000 Jonathan Lemon
.\" All rights reserved.
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD: src/lib/libc/sys/kqueue.2,v 1.18 2001/02/14 08:48:35 guido Exp $
.\"
-.Dd $Mdocdate: February 18 2012 $
+.Dd $Mdocdate: April 12 2012 $
.Dt KQUEUE 2
.Os
.Sh NAME
@@ -75,12 +75,6 @@ on a file descriptor will remove any kevents that reference the descriptor.
creates a new kernel event queue and returns a descriptor.
The queue is not inherited by a child created with
.Xr fork 2 .
-However, if
-.Xr rfork 2
-is called without the
-.Dv RFFDG
-flag, then the descriptor table is shared,
-which will allow sharing of the kqueue between two processes.
Similarly, kqueues cannot be passed across UNIX-domain sockets.
.Pp
.Fn kevent