| _LWP_SETNAME(2) | System Calls Manual | _LWP_SETNAME(2) |
_lwp_setname — set
descriptive name of an LWP
Standard C Library (libc, -lc)
#include
<lwp.h>
int
_lwp_setname(lwpid_t
target, const char
*name);
_lwp_setname()
sets the descriptive name of the LWP. It takes the following arguments.
The name is used by top(1) when showing LWPs, for example.
The _lwp_setname() function returns the
value 0 if successful; otherwise the value -1 is returned and
the global variable errno is set to indicate the
error.
| December 15, 2007 | NetBSD 11.0 |