| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: pthread_attr_getdetachstate.3,v 1.2 2010/07/09 08:51:28 jruoho Exp $ | | 1 | .\" $NetBSD: pthread_attr_getdetachstate.3,v 1.3 2017/10/22 15:48:11 abhinav Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2002, 2010 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2002, 2010 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" | | 14 | .\" |
| @@ -47,27 +47,28 @@ | | | @@ -47,27 +47,28 @@ |
47 | .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | | 47 | .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
48 | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR | | 48 | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
49 | .\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | | 49 | .\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
50 | .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE | | 50 | .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
51 | .\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | | 51 | .\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
52 | .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | | 52 | .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
53 | .\" | | 53 | .\" |
54 | .\" $FreeBSD: src/lib/libpthread/man/pthread_attr.3,v 1.11 2002/09/16 19:29:28 mini Exp $ | | 54 | .\" $FreeBSD: src/lib/libpthread/man/pthread_attr.3,v 1.11 2002/09/16 19:29:28 mini Exp $ |
55 | .\" | | 55 | .\" |
56 | .Dd July 9, 2010 | | 56 | .Dd July 9, 2010 |
57 | .Dt PTHREAD_ATTR_GETDETACHSTATE 3 | | 57 | .Dt PTHREAD_ATTR_GETDETACHSTATE 3 |
58 | .Os | | 58 | .Os |
59 | .Sh NAME | | 59 | .Sh NAME |
60 | .Nm pthread_attr_getdetachstate | | 60 | .Nm pthread_attr_getdetachstate , |
| | | 61 | .Nm pthread_attr_setdetachstate |
61 | .Nd get and set the | | 62 | .Nd get and set the |
62 | .Dq detach state | | 63 | .Dq detach state |
63 | attribute | | 64 | attribute |
64 | .Sh LIBRARY | | 65 | .Sh LIBRARY |
65 | .Lb libpthread | | 66 | .Lb libpthread |
66 | .Sh SYNOPSIS | | 67 | .Sh SYNOPSIS |
67 | .In pthread.h | | 68 | .In pthread.h |
68 | .Ft int | | 69 | .Ft int |
69 | .Fn pthread_attr_getdetachstate "const pthread_attr_t *attr" "int *detachstate" | | 70 | .Fn pthread_attr_getdetachstate "const pthread_attr_t *attr" "int *detachstate" |
70 | .Ft int | | 71 | .Ft int |
71 | .Fn pthread_attr_setdetachstate "pthread_attr_t *attr" "int detachstate" | | 72 | .Fn pthread_attr_setdetachstate "pthread_attr_t *attr" "int detachstate" |
72 | .Sh DESCRIPTION | | 73 | .Sh DESCRIPTION |
73 | The attribute parameters for the | | 74 | The attribute parameters for the |