| PTHREAD_ATTR_GETNAME_NP(3) | Library Functions Manual | PTHREAD_ATTR_GETNAME_NP(3) |
pthread_attr_getname_np,
pthread_attr_setname_np —
get and set descriptive name of an attribute
POSIX Threads Library (libpthread, -lpthread)
#include
<pthread.h>
int
pthread_attr_getname_np(const
pthread_attr_t attr, char
*name, size_t
len);
int
pthread_attr_setname_np(pthread_attr_t
attr, const char
*name, void
*arg);
The
pthread_attr_getname_np()
function gets the descriptive name of a thread attribute. It takes the
following arguments:
The
pthread_attr_setname_np()
function sets the descriptive name of a thread attribute. It takes the
following arguments:
Both functions return 0 on success. Otherwise, an error number is returned.
Both functions are non-standard extensions.
No errors are defined for
pthread_attr_getname_np().
The pthread_attr_setname_np() function may
fail if:
| July 7, 2010 | NetBSD 11.0 |