[PATCH] pthread_setname_np.3: The thread variable is passed in by value

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

 



i.e

    pthread_t thread;

    pthread_setname_np(thread, ...);

and not

   pthread_setname_np(&thread, ...);

Signed-off-by: Andrew Clayton <andrew@xxxxxxxxxxxxxxxxxx>
---
 man3/pthread_setname_np.3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man3/pthread_setname_np.3 b/man3/pthread_setname_np.3
index b6b4563..3dca000 100644
--- a/man3/pthread_setname_np.3
+++ b/man3/pthread_setname_np.3
@@ -30,8 +30,8 @@ pthread_setname_np, pthread_getname_np \- set/get the name of a thread
 .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
-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux