.\" 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
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;
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 .
.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/.