View Issue Details

IDProjectCategoryView StatusLast Update
00007761003.1(2013)/Issue7+TC1Base Definitions and Headerspublic2013-12-05 17:07
Reporternsz Assigned To 
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionRejected 
NameSzabolcs Nagy
Organizationmusl libc
User Reference
Sectionseveral
Page Number-
Line Number-
Interp Status---
Final Accepted Text
Summary0000776: incorrect use of the term "symbolic constant" in several headers
Descriptionin XBD 3.374 the definition of "Symbolic Constant" says

  It expands to a compile-time constant expression with an integer type.

but several headers specify symbolic constants with non-integer type:

pthread.h: PTHREAD_CANCELED has pointer type
cpio.h: MAGIC expands to a string literal
semaphore.h: SEM_FAILED has pointer type
mman.h: MAP_FAILED has pointer type
tar.h: TMAGIC and TVERSION expand to string literals

Desired Actioninstead of

 .. header shall define the symbolic constant ..
 .. header shall define the following symbolic constants ..

use

 .. header shall define the macro ..
 .. header shall define the following symbolic constants and macros ..

TagsNo tags attached.

Activities

geoffclare

2013-10-23 08:35

manager   bugnote:0001943

The quoted bullet item from XBD 3.374 is preceded by introductory text
which says "Unless stated otherwise, the following shall apply to
every symbolic constant".

It is entirely intentional that some headers define non-integer
symbolic constants. The type stated in the header overrides the
integer default from XBD 3.374.

Issue History

Date Modified Username Field Change
2013-10-23 01:05 nsz New Issue
2013-10-23 01:05 nsz Name => Szabolcs Nagy
2013-10-23 01:05 nsz Organization => musl libc
2013-10-23 01:05 nsz Section => several
2013-10-23 01:05 nsz Page Number => -
2013-10-23 01:05 nsz Line Number => -
2013-10-23 08:35 geoffclare Note Added: 0001943
2013-12-05 17:07 geoffclare Interp Status => ---
2013-12-05 17:07 geoffclare Status New => Closed
2013-12-05 17:07 geoffclare Resolution Open => Rejected