[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pthread_setname_np documentation
From: |
Eric Gallager |
Subject: |
pthread_setname_np documentation |
Date: |
Tue, 3 Sep 2024 14:31:18 -0400 |
Hi, I'm writing about gnulib's documentation for pthread_setname_np:
https://www.gnu.org/software/gnulib/manual/html_node/pthread_005fsetname_005fnp.html
It mentions NetBSD 10.0 as a platform where the function has a
different signature, however, I recently discovered that there is
another platform where this is true: on my version of macOS, the
function exists, and takes just 1 argument: a string for the name of
the thread. Here's the contents of my system's manpage for it:
PTHREAD_SETNAME_NP(3)
Library Functions Manual
PTHREAD_SETNAME_NP(3)
NAME
pthread_setname_np -- set the thread name
SYNOPSIS
#include <pthread.h>
void
pthread_setname_np(const char *name);
DESCRIPTION
The pthread_setname_np() function sets the internal name for
the calling thread to string value specified by name argument.
AUTHORS
This manual page was written by Alexey Zelkin <phantom@FreeBSD.org>.
GNU
February 13, 2003
PTHREAD_SETNAME_NP(3)
I notice that the gnulib documentation page says that Mac OS X 10.5
didn't have this function, so I'm guessing it must have been
introduced in 10.6? I'm not quite sure where to find the history of
it, though...
- pthread_setname_np documentation,
Eric Gallager <=