Details

[Home]

Issue of the Standard # S0172

Brief

Error code of EINTR for pthread_getspecific() function.

Detailed Description

Section ‘ERRORS’ of the description of the functions pthread_getspecific() and pthread_setspecific() says that these functions shall not return an error code of [EINTR]. However, this requirement could not be satisfied for the function pthread_getspecific() because the function returns the thread-specific data value but not an error code. Besides, section ‘ERRORS’ says that no errors are returned from the function.

Problem location(s) in the standard

The Open Group Base Specifications Issue 6<br> IEEE Std 1003.1, 2004 Edition, System Interfaces,<br> the description of the functions <nobr>pthread_getspecific()</nobr>, <nobr>pthread_setspecific()</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].”

[Home]