PTHREAD_GETNAME_NP(3)   NetBSD Library Functions Manual  PTHREAD_GETNAME_NP(3)

NAME
     pthread_getname_np -- set descriptive name of a thread

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <pthread.h>

     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)

NetBSD 5.0_STABLE              December 15, 2007             NetBSD 5.0_STABLE
