Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (n - p) pthread_getattr_np(2)
NAME
pthread_getattr_np - Gets the attribute object for a thread
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
int pthread_getattr_np (
const pthread_t thread,
pthread_attr_t **attr_p );
PARAMETERS
thread Species the thread for which you want the attribute object.
attr_p Receives the attribute object pointer returned by the call.
DESCRIPTION
This fuction is used to get a thread attributes object for a specic thread. The attribute object
obtained from this function call is used to set or get the individual attributes of a thread.
RETURN VALUES
This function returns 0 (zero) upon successful completion of the call. If an error occurs, this
function can return the following value:
ESRCH No thread could be found corresponding to the specied thread parameter.
RELATED INFORMATION
Functions: pthread_attr_getstacksize(2), pthread_attr_setstacksize(2),
pthread_attr_getstackaddr(2), pthread_attr_setdetachstate(2),
pthread_attr_getdetachstate(2), pthread_attr_setinheritsched(2),
pthread_attr_getinheritsched(2), pthread_attr_setschedparam(2),
pthread_attr_getschedparam(2), pthread_attr_getschedpolicy(2),
pthread_attr_setschedpolicy(2), pthread_attr_getguardsize_np(2),
pthread_attr_setguardsize_np(2), pthread_attr_init(2).
STANDARDS CONFORMANCE
Interfaces documented on this reference page conform to the following industry standards:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header le spthread.h is an HP exception to the POSIX standard.
527186-003 Hewlett-Packard Company 563