OSDN Git Service

(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git] / original / man3 / pthread_setname_np.3
index b6b4563..c25b403 100644 (file)
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH PTHREAD_SETNAME_NP 3 2013-02-04 "Linux" "Linux Programmer's Manual"
+.TH PTHREAD_SETNAME_NP 3 2013-06-21 "Linux" "Linux Programmer's Manual"
 .SH NAME
 pthread_setname_np, pthread_getname_np \- set/get the name of a thread
 .SH SYNOPSIS
 .nf
 .BR "#define _GNU_SOURCE" "             /* See feature_test_macros(7) */"
 .B #include <pthread.h>
-.BI "int pthread_setname_np(pthread_t *" thread ", const char *" name ");
-.BI "int pthread_getname_np(pthread_t *" thread ,
+.BI "int pthread_setname_np(pthread_t " thread ", const char *" name ");
+.BI "int pthread_getname_np(pthread_t " thread ,
 .BI "                       const char *" name ", size_t " len );
 .fi
 .sp
@@ -46,7 +46,7 @@ function can be used to set a unique name for a thread,
 which can be useful for debugging
 multithreaded applications.
 The thread name is a meaningful C language string, whose length is
-restricted to 16 characters, including the terminating null byte.
+restricted to 16 characters, including the terminating null byte (\(aq\\0\(aq).
 The
 .I thread
 argument specifies the thread whose name is to be changed;
@@ -103,7 +103,9 @@ These functions first appeared in glibc in version 2.12.
 These functions are nonstandard GNU extensions.
 .SH NOTES
 .BR pthread_setname_np ()
-internally writes to the thread specific comm file under
+internally writes to the thread-specific
+.I comm
+file under the
 .IR /proc
 filesystem:
 .IR /proc/self/task/[tid]/comm .
@@ -201,3 +203,11 @@ main(int argc, char **argv)
 .BR prctl (2),
 .BR pthread_create (3),
 .BR pthreads (7)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.