NAME

pthread_getname_np - set descriptive name of a thread

LIBRARY

Standard C Library (libc, -lc)

SYNOPSIS



int pthread_getname_np(pthread_t thread, char *name, size_t len)

DESCRIPTION

pthread_getname_np() gets the descriptive name of the thread. It takes the following arguments.

thread
The thread whose descriptive name will be obtained.

name
The buffer to be filled with the descriptive name of the thread.

len
The size of the buffer name in bytes.

RETURN VALUES

pthread_getname_np() returns 0 on success. Otherwise, pthread_getname_np() returns an error number described in errno(2).

SEE ALSO

errno(2), pthread_setname_np(3)