NAME
pthread_attr_setname_np
- set descriptive name of an attribute
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
int
pthread_attr_setname_np(pthread_attr_t attr, const char *name, void *arg)
DESCRIPTION
pthread_attr_setname_np()
sets the descriptive name of the 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 VALUES
pthread_attr_setname_np()
returns 0 on success.
Otherwise,
pthread_attr_setname_np()
returns an error number described in
errno(2).
SEE ALSO
errno(2),
pthread_attr_getname_np(3)