diff options
Diffstat (limited to 'man3/pthread_setname_np.3')
-rw-r--r-- | man3/pthread_setname_np.3 | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/man3/pthread_setname_np.3 b/man3/pthread_setname_np.3 index 5d9a711..4ff9f06 100644 --- a/man3/pthread_setname_np.3 +++ b/man3/pthread_setname_np.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_setname_np 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_setname_np 3 2023-10-31 "Linux man-pages 6.7" .SH NAME pthread_setname_np, pthread_getname_np \- set/get the name of a thread .SH LIBRARY @@ -14,7 +14,7 @@ POSIX threads library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include <pthread.h> -.PP +.P .BI "int pthread_setname_np(pthread_t " thread ", const char *" name ); .BI "int pthread_getname_np(pthread_t " thread ", char " name [. size "], \ size_t " size ); @@ -36,7 +36,7 @@ The argument specifies the thread whose name is to be changed; .I name specifies the new name. -.PP +.P The .BR pthread_getname_np () function can be used to retrieve the name of the thread. @@ -65,7 +65,7 @@ function can fail with the following error: The length of the string specified pointed to by .I name exceeds the allowed limit. -.PP +.P The .BR pthread_getname_np () function can fail with the following error: @@ -76,7 +76,7 @@ The buffer specified by and .I size is too small to hold the thread name. -.PP +.P If either of these functions fails to open .IR /proc/self/task/ tid /comm , then the call may fail with one of the errors described in @@ -96,7 +96,6 @@ T{ .BR pthread_getname_np () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU; hence the suffix "_np" (nonportable) in the names. @@ -117,9 +116,9 @@ The program below demonstrates the use of .BR pthread_setname_np () and .BR pthread_getname_np (). -.PP +.P The following shell session shows a sample run of the program: -.PP +.P .in +4n .EX .RB "$" " ./a.out" |