HP-UX Reference (11i v2 04/09) - 3 Library Functions N-Z (vol 7)

p
pthread_attr_getdetachstate(3T) pthread_attr_getdetachstate(3T)
(Pthread Library)
If the value of the binding_type attribute is
PTHREAD_BIND_NONE_NP
the processor attribute should be
ignored.
RETURN VALUE
Upon successful completion, the following functions return zero:
pthread_attr_setstacksize()
,
pthread_attr_getstacksize()
, pthread_attr_setstackaddr()
,
pthread_attr_getstackaddr()
, pthread_attr_setguardsize()
,
pthread_attr_getguardsize()
, pthread_attr_setdetachstate()
,
pthread_attr_getdetachstate()
, pthread_attr_setinheritsched()
,
pthread_attr_getinheritsched()
, pthread_attr_setschedpolicy()
,
pthread_attr_getschedpolicy()
, pthread_attr_setschedparam()
,
pthread_attr_getschedparam()
, pthread_attr_setprocessor_np()
,
pthread_attr_getprocessor_np()
, pthread_attr_setscope()
, and
pthread_attr_getscope().
Otherwise, an error number is returned to indicate the error (the
errno variable is not set).
ERRORS
If any of the following occur, the
pthread_attr_setscope()
, pthread_attr_getscope()
,
pthread_attr_setinheritsched()
, pthread_attr_getinheritsched()
,
pthread_attr_setschedpolicy()
, and pthread_attr_getschedpolicy()
functions
return the corresponding error number:
[ENOSYS]
_POSIX_THREAD_PRIORITY_SCHEDULING
is not defined and these functions
are not supported.
If any of the following occur, the
pthread_attr_getstackaddr()
and
pthread_attr_setstackaddr()
functions return the corresponding error number:
[ENOSYS]
_POSIX_THREAD_ATTR_STACKADDR
is not defined and these functions are not
supported.
If any of the following occur, the
pthread_attr_getstacksize()
and
pthread_attr_setstacksize()
functions return the corresponding error number:
[ENOSYS]
_POSIX_THREAD_ATTR_STACKSIZE
is not defined and these functions are not
supported.
If any of the following occur,
pthread_attr_setstacksize()
,
pthread_attr_getstacksize()
, pthread_attr_setrsestackszie_np()
,
pthread_attr_getrsestackszie_np()
, pthread_attr_setstackaddr()
,
pthread_attr_getstackaddr()
, pthread_attr_setguardsize()
,
pthread_attr_getguardsize()
, pthread_attr_setdetachstate()
,
pthread_attr_getdetachstate()
, pthread_attr_setinheritsched()
,
pthread_attr_getinheritsched()
, pthread_attr_setschedpolicy()
,
pthread_attr_getschedpolicy()
, pthread_attr_setschedparam()
,
pthread_attr_getschedparam(), pthread_attr_setprocessor_np()
,
pthread_attr_getprocessor_np(), pthread_attr_setscope()
, and
pthread_attr_getscope() return the corresponding error number:
[EINVAL] The value specified by attr is invalid.
[EINVAL] The value specified by stacksize is less than the minimum required stacksize of
PTHREAD_STACK_MIN or exceeds a system-imposed limit.
[EINVAL] detachstate , guardsize, inheritsched , processor, binding_type , policy, param,or
scope contains an invalid value.
[ENOTSUP] The value contained in policy is not a supported value.
[ENOSYS]
pthread_attr_setrsestacksize_np(),
pthread_attr_getrsestacksize_np() are not supported on PA-RISC sys-
tems.
AUTHOR
pthread_attr_setstacksize(), pthread_attr_getstacksize(),
pthread_attr_setstackaddr(), pthread_attr_getstackaddr(),
pthread_attr_setdetachstate(), pthread_attr_getdetachstate(),
pthread_attr_setinheritsched(), pthread_attr_getinheritsched(),
Section 3760 Hewlett-Packard Company 7 HP-UX 11i Version 2: September 2004