Fri May 4 12:28:03 2012 UTC ()
Drop obsolete pthread restriction.


(joerg)
diff -r1.9 -r1.10 src/lib/libc/gen/makecontext.3

cvs diff -r1.9 -r1.10 src/lib/libc/gen/makecontext.3 (expand / switch to unified diff)

--- src/lib/libc/gen/makecontext.3 2010/04/29 06:07:35 1.9
+++ src/lib/libc/gen/makecontext.3 2012/05/04 12:28:03 1.10
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: makecontext.3,v 1.9 2010/04/29 06:07:35 jruoho Exp $ 1.\" $NetBSD: makecontext.3,v 1.10 2012/05/04 12:28:03 joerg Exp $
2.\" 2.\"
3.\" Copyright (c) 2001, 2009 The NetBSD Foundation, Inc. 3.\" Copyright (c) 2001, 2009 The NetBSD Foundation, Inc.
4.\" All rights reserved. 4.\" All rights reserved.
5.\" 5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation 6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Klaus Klein. 7.\" by Klaus Klein.
8.\" 8.\"
9.\" Redistribution and use in source and binary forms, with or without 9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions 10.\" modification, are permitted provided that the following conditions
11.\" are met: 11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright 12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer. 13.\" notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" 2. Redistributions in binary form must reproduce the above copyright
@@ -17,27 +17,27 @@ @@ -17,27 +17,27 @@
17.\" 17.\"
18.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 18.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 21.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28.\" POSSIBILITY OF SUCH DAMAGE. 28.\" POSSIBILITY OF SUCH DAMAGE.
29.\" 29.\"
30.Dd April 29, 2010 30.Dd May 4, 2012
31.Dt MAKECONTEXT 3 31.Dt MAKECONTEXT 3
32.Os 32.Os
33.Sh NAME 33.Sh NAME
34.Nm makecontext , 34.Nm makecontext ,
35.Nm swapcontext 35.Nm swapcontext
36.Nd manipulate user contexts 36.Nd manipulate user contexts
37.Sh LIBRARY 37.Sh LIBRARY
38.Lb libc 38.Lb libc
39.Sh SYNOPSIS 39.Sh SYNOPSIS
40.In ucontext.h 40.In ucontext.h
41.Ft void 41.Ft void
42.Fn makecontext "ucontext_t *ucp" "void (*func)()" "int argc" ... 42.Fn makecontext "ucontext_t *ucp" "void (*func)()" "int argc" ...
43.Ft int 43.Ft int
@@ -157,19 +157,13 @@ passed to @@ -157,19 +157,13 @@ passed to
157via 157via
158.Fn makecontext ; 158.Fn makecontext ;
159portable applications should not rely on the implementation detail that 159portable applications should not rely on the implementation detail that
160it may be possible to pass pointer arguments to functions. 160it may be possible to pass pointer arguments to functions.
161.Ef 161.Ef
162This may be clarified in a future revision of the standard. 162This may be clarified in a future revision of the standard.
163.Sh HISTORY 163.Sh HISTORY
164The 164The
165.Fn makecontext 165.Fn makecontext
166and 166and
167.Fn swapcontext 167.Fn swapcontext
168functions first appeared in 168functions first appeared in
169.At V.4 . 169.At V.4 .
170.Sh CAVEATS 
171Due to limitations in the current pthread implementation, 
172.Nm 
173should not be used in programs which link against the 
174.Xr pthread 3 
175library (whether threads are used or not).