Bug 3436 - pthread.h inconsistent about what is defined as a macro
Summary: pthread.h inconsistent about what is defined as a macro
Status: RESOLVED WONTFIX
Alias: None
Product: glibc
Classification: Unclassified
Component: nptl (show other bugs)
Version: 2.4
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-31 16:50 UTC by Joseph Myers
Modified: 2016-05-08 14:16 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
Patch to add macro definitions. (776 bytes, patch)
2006-10-31 16:51 UTC, Joseph Myers
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Myers 2006-10-31 16:50:06 UTC
Some of the PTHREAD_* constants in pthread.h are defined as both enums and
macros (#define FOO FOO).  Others, apparently arbitrarily, are only defined as
enums, although POSIX makes no distinction between the two sets of constants.

I think it's most useful for all these constants to be defined as both enums and
macros; I'll attach a patch to add the missing macro definitions.
Comment 1 Joseph Myers 2006-10-31 16:51:59 UTC
Created attachment 1393 [details]
Patch to add macro definitions.
Comment 2 Ulrich Drepper 2006-10-31 17:39:20 UTC
There is no reason whatsoever to do this.