Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

pthread_attr_setscope(2) OSS System Calls Reference Manual
Compile the application using the -Wlp64 compiler command option.
Link the application to the yputdll library (/G/system/zdllnnn/yputdll).
NOTES
The POSIX User Thread Model library supports only the PTHREAD_SCOPE_PROCESS
value for the contentionscope parameter.
For detailed information about writing multi-threaded and 64-bit applications for the Open Sys-
tem Services environment using the POSIX User Thread Model library, see the Open System Ser-
vices Programmer’s Guide.
RETURN VALUES
If an error condition occurs, this function returns an integer value indicating the type of error.
Possible return values are:
0 Successful completion.
[EINVAL] The value specified by the attr parameter is not valid, or the value specified by
the c ontentionscope parameter is not valid.
[ENOTSUP] The value specified by the contentionscope parameter is
PTHREAD_SCOPE_SYSTEM. PTHREAD_SCOPE_SYSTEM is not a sup-
ported value.
RELATED INFORMATION
Functions: pthread_attr_destroy(2), pthread_attr_getinheritsched(2),
pthread_attr_getschedparam(2), pthread_attr_getschedpolicy(2), pthread_attr_getscope(2),
pthread_create(2).
STANDARDS CONFORMANCE
This function conforms to the following industry standards:
IEEE Std 1003.1-2004, POSIX System Application Program Interface
570 Hewlett-Packard Company 527186-023