OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man3 / pthread_setname_np.3
index 3249240..9dcdcfe 100644 (file)
@@ -23,7 +23,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH PTHREAD_SETNAME_NP 3 2013-06-21 "Linux" "Linux Programmer's Manual"
+.TH PTHREAD_SETNAME_NP 3 2014-05-28 "Linux" "Linux Programmer's Manual"
 .SH NAME
 pthread_setname_np, pthread_getname_np \- set/get the name of a thread
 .SH SYNOPSIS
@@ -32,7 +32,7 @@ pthread_setname_np, pthread_getname_np \- set/get the name of a thread
 .B #include <pthread.h>
 .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 );
+.BI "                       char *" name ", size_t " len );
 .fi
 .sp
 Compile and link with \fI\-pthread\fP.
@@ -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,12 @@ main(int argc, char **argv)
 .BR prctl (2),
 .BR pthread_create (3),
 .BR pthreads (7)
+.SH COLOPHON
+This page is part of release 3.68 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.