Details

[Home]

Issue of the Standard # S0168

Brief

Error code of EINTR for pthread_getconcurrency() function.

Detailed Description

Section ‘ERRORS’ of the description of the functions pthread_getconcurrency() and pthread_setconcurrency() says that these functions shall not return an error code of [EINTR]. But this requirement could not be satisfied for function pthread_getconcurrency() because the function always returns the concurrency level, that is positive value and can be the same as value of [EINTR].

Problem location(s) in the standard

The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition (SUS 3.0), System Interfaces, description of functions <nobr>pthread_getconcurrency()</nobr> and <nobr>pthread_setconcurrency()</nobr>.

Possible solutions

Change the phrase in ‘ERRORS’ from:
“These functions shall not return an error code of [EINTR].”
to:
“This function shall not return an error code of [EINTR].”

Accepted

POSIX aardvark,
Request Number 184

[Home]