Remove superfluous Tn.

This commit is contained in:
wiz 2017-10-23 01:03:23 +00:00
parent aa4b308c77
commit 661e3b5159
5 changed files with 14 additions and 24 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pthread.3,v 1.17 2017/02/08 03:44:41 kamil Exp $ .\" $NetBSD: pthread.3,v 1.18 2017/10/23 01:03:23 wiz Exp $
.\" .\"
.\" Copyright (c) 2003, 2007, 2009 The NetBSD Foundation, Inc. .\" Copyright (c) 2003, 2007, 2009 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -46,9 +46,8 @@
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm
library provides an implementation of the standard library provides an implementation of the standard POSIX threads
.Tn POSIX library.
threads library.
.Pp .Pp
The The
.Nx .Nx
@ -63,8 +62,7 @@ In order to remain compatible with future
.Nx .Nx
releases, programs must be linked against the dynamic version of the releases, programs must be linked against the dynamic version of the
thread library. thread library.
Statically linked programs using the Statically linked programs using the POSIX
.Tn POSIX
threads framework may not work when run on a future version of the system. threads framework may not work when run on a future version of the system.
.Sh FUNCTIONS .Sh FUNCTIONS
The following functions comprise the core of the The following functions comprise the core of the

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pthread_attr_getdetachstate.3,v 1.3 2017/10/22 15:48:11 abhinav Exp $ .\" $NetBSD: pthread_attr_getdetachstate.3,v 1.4 2017/10/23 01:03:23 wiz Exp $
.\" .\"
.\" Copyright (c) 2002, 2010 The NetBSD Foundation, Inc. .\" Copyright (c) 2002, 2010 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -89,9 +89,7 @@ and the thread will not be joined.
.El .El
.Pp .Pp
If the thread is created as detached, If the thread is created as detached,
it is an error to use the thread it is an error to use the thread ID with
.Tn ID
with
.Xr pthread_detach 3 .Xr pthread_detach 3
or or
.Xr pthread_join 3 . .Xr pthread_join 3 .

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pthread_attr_getscope.3,v 1.3 2017/10/22 16:37:24 abhinav Exp $ .\" $NetBSD: pthread_attr_getscope.3,v 1.4 2017/10/23 01:03:23 wiz Exp $
.\" .\"
.\" Copyright (c) 2010 Jukka Ruohonen <jruohonen@iki.fi> .\" Copyright (c) 2010 Jukka Ruohonen <jruohonen@iki.fi>
.\" All rights reserved. .\" All rights reserved.
@ -57,8 +57,7 @@ It is only possible to set the scope of a thread before the thread is created.
There are two possible contention scopes: There are two possible contention scopes:
.Bl -tag -width PTHREAD_SCOPE_PROCESS -offset 2n .Bl -tag -width PTHREAD_SCOPE_PROCESS -offset 2n
.It Dv PTHREAD_SCOPE_SYSTEM .It Dv PTHREAD_SCOPE_SYSTEM
The thread will contend for The thread will contend for CPU
.Tn CPU
resources with all other processes and threads in the system. resources with all other processes and threads in the system.
Generally this means that the user thread is bound directly to the Generally this means that the user thread is bound directly to the
kernel scheduling for its entire lifetime. kernel scheduling for its entire lifetime.
@ -67,8 +66,7 @@ The thread will contend with other threads with the same scope attribute.
In general, this means that all In general, this means that all
.Dv PTHREAD_SCOPE_PROCESS .Dv PTHREAD_SCOPE_PROCESS
threads are grouped together and this group of threads contends for threads are grouped together and this group of threads contends for
.Tn CPU CPU resources.
resources.
This is commonly seen to require a hybrid This is commonly seen to require a hybrid
.Pq Dq M:N .Pq Dq M:N
threading model in order to multiplex the user and kernel space scheduling. threading model in order to multiplex the user and kernel space scheduling.

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pthread_attr_getstack.3,v 1.7 2017/10/22 16:37:24 abhinav Exp $ .\" $NetBSD: pthread_attr_getstack.3,v 1.8 2017/10/23 01:03:23 wiz Exp $
.\" .\"
.\" Copyright (c) 2010 Jukka Ruohonen <jruohonen@iki.fi> .\" Copyright (c) 2010 Jukka Ruohonen <jruohonen@iki.fi>
.\" All rights reserved. .\" All rights reserved.
@ -110,8 +110,7 @@ and the use of these functions should be generally avoided.
At least few potential caveats can be mentioned. At least few potential caveats can be mentioned.
.Bl -bullet -offset 2n .Bl -bullet -offset 2n
.It .It
There is a certain degree of ambiguity in the There is a certain degree of ambiguity in the POSIX
.Tn POSIX
standard with respect to thread stack. standard with respect to thread stack.
.It .It
The exact behavior of the functions may vary The exact behavior of the functions may vary

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pthread_self.3,v 1.4 2010/07/09 08:51:28 jruoho Exp $ .\" $NetBSD: pthread_self.3,v 1.5 2017/10/23 01:03:23 wiz Exp $
.\" .\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc. .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -70,12 +70,9 @@
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn pthread_self .Fn pthread_self
function returns the thread function returns the thread ID of the calling thread.
.Tn ID
of the calling thread.
.Sh RETURN VALUES .Sh RETURN VALUES
The return value is the thread The return value is the thread ID.
.Tn ID .
.Sh ERRORS .Sh ERRORS
None. None.
.Sh SEE ALSO .Sh SEE ALSO