summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-08-26 00:04:12 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-08-26 00:04:12 +0200
commit8c54e23e1111b594b87521718d3bfa501d6cbc6a (patch)
tree146b9f1dbe36f6a1c122861da4ca06c6c2c9013f
parentc92774db7ea2afd75d3574ae2f2fe50e0158ef22 (diff)
pthread_setname_np.3: Rename 'len' to 'size'
The parameter doesn't represent a string length (strlen(3)), but a buffer size (sizeof()). Use a more proper name. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r--man3/pthread_setname_np.36
1 files changed, 3 insertions, 3 deletions
diff --git a/man3/pthread_setname_np.3 b/man3/pthread_setname_np.3
index 056a1c745..115557787 100644
--- a/man3/pthread_setname_np.3
+++ b/man3/pthread_setname_np.3
@@ -15,7 +15,7 @@ POSIX threads library
.B #include <pthread.h>
.PP
.BI "int pthread_setname_np(pthread_t " thread ", const char *" name );
-.BI "int pthread_getname_np(pthread_t " thread ", char *" name ", size_t " len );
+.BI "int pthread_getname_np(pthread_t " thread ", char *" name ", size_t " size );
.fi
.SH DESCRIPTION
By default, all the threads created using
@@ -43,7 +43,7 @@ argument specifies the thread whose name is to be retrieved.
The buffer
.I name
is used to return the thread name;
-.I len
+.I size
specifies the number of bytes available in
.IR name .
The buffer specified by
@@ -71,7 +71,7 @@ function can fail with the following error:
The buffer specified by
.I name
and
-.I len
+.I size
is too small to hold the thread name.
.PP
If either of these functions fails to open