diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-04-03 01:49:45 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-04-03 01:49:45 +0000 |
commit | 9963fa34b8370cece4e721f76541afce7822b570 (patch) | |
tree | c656d439d7eba2582d38b1f89fa88a2006b8da95 /share | |
parent | f0671413c76cf4be811dbbb88a3dd9b4fd49cfd1 (diff) |
Add missing documention:
- fork1() flags: FORK_SIGHAND, FORK_PTRACE, and FORK_THREAD
- RTHREADS kernel option
- rfork() RFTHREAD flag (with a BUGS entry that it's not usable from C)
ok tedu@
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man4/options.4 | 10 | ||||
-rw-r--r-- | share/man/man9/fork1.9 | 24 |
2 files changed, 30 insertions, 4 deletions
diff --git a/share/man/man4/options.4 b/share/man/man4/options.4 index 25f2573cb24..b6ba58cae45 100644 --- a/share/man/man4/options.4 +++ b/share/man/man4/options.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: options.4,v 1.194 2009/10/22 09:22:46 sobrado Exp $ +.\" $OpenBSD: options.4,v 1.195 2010/04/03 01:49:44 guenther Exp $ .\" $NetBSD: options.4,v 1.21 1997/06/25 03:13:00 thorpej Exp $ .\" .\" Copyright (c) 1998 Theo de Raadt @@ -34,7 +34,7 @@ .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" -.Dd $Mdocdate: October 22 2009 $ +.Dd $Mdocdate: April 3 2010 $ .Dt OPTIONS 4 .Os .Sh NAME @@ -562,6 +562,12 @@ See and .Xr raidctl 8 for details. +.It Cd option RTHREADS +Enable kernel support for kernel-level threads via the +.Dv RFTHREAD +flag to +.Xr rfork 2 . +Currently incomplete. .It Cd option USER_LDT Enable userland manipulation of per-process Local Descriptor Table (LDT) entries; diff --git a/share/man/man9/fork1.9 b/share/man/man9/fork1.9 index 8d927e698e4..c81efc89fa0 100644 --- a/share/man/man9/fork1.9 +++ b/share/man/man9/fork1.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fork1.9,v 1.12 2009/07/28 12:27:03 jmc Exp $ +.\" $OpenBSD: fork1.9,v 1.13 2010/04/03 01:49:44 guenther Exp $ .\" $NetBSD: fork1.9,v 1.3 1999/03/16 00:40:47 garbled Exp $ .\" .\" Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: July 28 2009 $ +.Dd $Mdocdate: April 3 2010 $ .Dt FORK1 9 .Os .Sh NAME @@ -105,6 +105,26 @@ See The child will share the parent's address space. The default behavior is that the child gets a copy-on-write copy of the address space. +.It Dv FORK_SIGHAND +The child will share the parent's signal actions, including the handler, +mask, and flags, with sigactsshare(). +The default behavior is to copy the signal actions from the parent with +sigactsinit(). +.Dv FORK_SHAREVM +must also be set. +.It Dv FORK_PTRACE +The child will start with tracing enabled, as if +ptrace(PT_TRACE_ME, 0, 0, 0) had been invoked in the child. +.It Dv FORK_THREAD +The child will instead be a kernel-level thread in the same process +as the parent. +.Dv FORK_NOZOMBIE , +.Dv FORK_SHAREVM , +and +.Dv FORK_SIGHAND +must also be set. +If the kernel option RTHREADS isn't enabled then the call will return +.Dv ENOTSUP . .El .Pp If |