Query: pthread_attr_getname_np
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PTHREAD_ATTR_GETNAME_NP(3) BSD Library Functions Manual PTHREAD_ATTR_GETNAME_NP(3)NAMEpthread_attr_getname_np -- get and set descriptive name of an attributeLIBRARYPOSIX Threads Library (libpthread, -lpthread)SYNOPSIS#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);DESCRIPTIONThe pthread_attr_getname_np() function gets the descriptive name of a thread attribute. It takes the following arguments: attr The attribute whose descriptive name will be obtained. name The buffer to be filled with the descriptive name of the attribute. len The size of the buffer name in bytes. The pthread_attr_setname_np() function sets the descriptive name of a thread attribute. It takes the following arguments: attr The attribute whose descriptive name will be set. name The printf(3) format string to be used to construct the descriptive name of the attribute. The resulted descriptive name should be shorter than PTHREAD_MAX_NAMELEN_NP. arg The printf(3) argument used with name.RETURN VALUESBoth functions return 0 on success. Otherwise, an error number is returned.COMPATIBILITYBoth functions are non-standard extensions.ERRORSNo errors are defined for pthread_attr_getname_np(). The pthread_attr_setname_np() function may fail if: [EINVAL] The supplied descriptive name was longer than PTHREAD_MAX_NAMELEN_NP. [ENOMEM] There was insufficient memory for the operation.SEE ALSOpthread_attr(3), pthread_getname_np(3)BSDJuly 7, 2010 BSD
Related Man Pages |
---|
pthread_attr_getschedparam(3) - netbsd |
pthread_attr_setinheritsched(3) - netbsd |
pthread_attr_setschedpolicy(3) - netbsd |
pthread_getname_np(3) - netbsd |
pthread_getname_np(3) - osf1 |
Similar Topics in the Unix Linux Community |
---|
RFC - Korn shell prompt |
Make bold chars in UNIX |
Adding a List of Times |
Grandpa returning to UNIX |
BSD Unix Toolbox: 1000+ Commands for FreeBSD, OpenBSD, and NetBSD |