View Issue Details

IDProjectCategoryView StatusLast Update
00007471003.1(2013)/Issue7+TC1System Interfacespublic2019-06-10 08:55
Reporterdalias Assigned To 
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionAccepted 
NameRich Felker
Organizationmusl libc
User Reference
Sectionpthread_once
Page Number1685
Line Number54534-54535
Interp Status---
Final Accepted Text
Summary0000747: Confusing erroneous text about address-of-array in pthread_once rationale
DescriptionThe rationale text for pthread_once contains:

"Note that a pthread_once_t cannot be an array because some compilers do not accept the construct &<array_name>."

Presumably this is cruft from an ancient version of the Threads standard that was not aligned with ISO C.

Not only is the remark false for all conforming C compilers; it is confusing/misleading to have such text that seems to impose normative requirements ("cannot be") in a non-normative section. Moreover, even if ISO C did permit compilers to reject this construct, the need to avoid defining pthread_once_t with array type would apply only to implementations making use of such compilers, not to all implementations.
Desired ActionRemove the text:

"Note that a pthread_once_t cannot be an array because some compilers do not accept the construct &<array_name>."

from the rationale for pthread_once.
Tagstc2-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2013-09-07 02:57 dalias New Issue
2013-09-07 02:57 dalias Name => Rich Felker
2013-09-07 02:57 dalias Organization => musl libc
2013-09-07 02:57 dalias Section => pthread_once
2013-09-07 02:57 dalias Page Number => unknown
2013-09-07 02:57 dalias Line Number => unknown
2013-09-07 03:32 Don Cragun Page Number unknown => 1685
2013-09-07 03:32 Don Cragun Line Number unknown => 54534-54535
2013-09-07 03:32 Don Cragun Interp Status => ---
2013-10-03 15:54 Don Cragun Status New => Resolved
2013-10-03 15:54 Don Cragun Resolution Open => Accepted
2013-10-03 15:54 Don Cragun Tag Attached: tc2-2008
2019-06-10 08:55 agadmin Status Resolved => Closed