_lwp_getname
—
get descriptive name of an LWP
Standard C Library (libc, -lc)
#include <lwp.h>
int
_lwp_getname
(lwpid_t
target, char *name,
size_t len);
_lwp_getname
() gets the descriptive name of the LWP. It
takes the following arguments.
- target
- The LWP whose descriptive name will be obtained.
- name
- The buffer to be filled with the descriptive name of the LWP.
- len
- The size of the buffer name in bytes.
_lwp_getname
() returns 0 on success. Otherwise, -1 is
returned and errno is set to indicate the error.