Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpthread Remove superfluous Tn.



details:   https://anonhg.NetBSD.org/src/rev/c581ac243fc7
branches:  trunk
changeset: 827291:c581ac243fc7
user:      wiz <wiz%NetBSD.org@localhost>
date:      Mon Oct 23 01:03:23 2017 +0000

description:
Remove superfluous Tn.

diffstat:

 lib/libpthread/pthread.3                     |  10 ++++------
 lib/libpthread/pthread_attr_getdetachstate.3 |   6 ++----
 lib/libpthread/pthread_attr_getscope.3       |   8 +++-----
 lib/libpthread/pthread_attr_getstack.3       |   5 ++---
 lib/libpthread/pthread_self.3                |   9 +++------
 5 files changed, 14 insertions(+), 24 deletions(-)

diffs (123 lines):

diff -r 37242f227699 -r c581ac243fc7 lib/libpthread/pthread.3
--- a/lib/libpthread/pthread.3  Mon Oct 23 00:59:44 2017 +0000
+++ b/lib/libpthread/pthread.3  Mon Oct 23 01:03:23 2017 +0000
@@ -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.
 .\" All rights reserved.
@@ -46,9 +46,8 @@
 .Sh DESCRIPTION
 The
 .Nm
-library provides an implementation of the standard
-.Tn POSIX
-threads library.
+library provides an implementation of the standard POSIX threads
+library.
 .Pp
 The
 .Nx
@@ -63,8 +62,7 @@
 .Nx
 releases, programs must be linked against the dynamic version of the
 thread library.
-Statically linked programs using the
-.Tn POSIX
+Statically linked programs using the POSIX
 threads framework may not work when run on a future version of the system.
 .Sh FUNCTIONS
 The following functions comprise the core of the
diff -r 37242f227699 -r c581ac243fc7 lib/libpthread/pthread_attr_getdetachstate.3
--- a/lib/libpthread/pthread_attr_getdetachstate.3      Mon Oct 23 00:59:44 2017 +0000
+++ b/lib/libpthread/pthread_attr_getdetachstate.3      Mon Oct 23 01:03:23 2017 +0000
@@ -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.
 .\" All rights reserved.
@@ -89,9 +89,7 @@
 .El
 .Pp
 If the thread is created as detached,
-it is an error to use the thread
-.Tn ID
-with
+it is an error to use the thread ID with
 .Xr pthread_detach 3
 or
 .Xr pthread_join 3 .
diff -r 37242f227699 -r c581ac243fc7 lib/libpthread/pthread_attr_getscope.3
--- a/lib/libpthread/pthread_attr_getscope.3    Mon Oct 23 00:59:44 2017 +0000
+++ b/lib/libpthread/pthread_attr_getscope.3    Mon Oct 23 01:03:23 2017 +0000
@@ -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@localhost>
 .\" All rights reserved.
@@ -57,8 +57,7 @@
 There are two possible contention scopes:
 .Bl -tag -width PTHREAD_SCOPE_PROCESS -offset 2n
 .It Dv PTHREAD_SCOPE_SYSTEM
-The thread will contend for
-.Tn CPU
+The thread will contend for CPU
 resources with all other processes and threads in the system.
 Generally this means that the user thread is bound directly to the
 kernel scheduling for its entire lifetime.
@@ -67,8 +66,7 @@
 In general, this means that all
 .Dv PTHREAD_SCOPE_PROCESS
 threads are grouped together and this group of threads contends for
-.Tn CPU
-resources.
+CPU resources.
 This is commonly seen to require a hybrid
 .Pq Dq M:N
 threading model in order to multiplex the user and kernel space scheduling.
diff -r 37242f227699 -r c581ac243fc7 lib/libpthread/pthread_attr_getstack.3
--- a/lib/libpthread/pthread_attr_getstack.3    Mon Oct 23 00:59:44 2017 +0000
+++ b/lib/libpthread/pthread_attr_getstack.3    Mon Oct 23 01:03:23 2017 +0000
@@ -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@localhost>
 .\" All rights reserved.
@@ -110,8 +110,7 @@
 At least few potential caveats can be mentioned.
 .Bl -bullet -offset 2n
 .It
-There is a certain degree of ambiguity in the
-.Tn POSIX
+There is a certain degree of ambiguity in the POSIX
 standard with respect to thread stack.
 .It
 The exact behavior of the functions may vary
diff -r 37242f227699 -r c581ac243fc7 lib/libpthread/pthread_self.3
--- a/lib/libpthread/pthread_self.3     Mon Oct 23 00:59:44 2017 +0000
+++ b/lib/libpthread/pthread_self.3     Mon Oct 23 01:03:23 2017 +0000
@@ -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.
 .\" All rights reserved.
@@ -70,12 +70,9 @@
 .Sh DESCRIPTION
 The
 .Fn pthread_self
-function returns the thread
-.Tn ID
-of the calling thread.
+function returns the thread ID of the calling thread.
 .Sh RETURN VALUES
-The return value is the thread
-.Tn ID .
+The return value is the thread ID.
 .Sh ERRORS
 None.
 .Sh SEE ALSO



Home | Main Index | Thread Index | Old Index