Anonymous | Login | 2024-04-18 08:16 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0000531 | [1003.1(2008)/Issue 7] Base Definitions and Headers | Editorial | Omission | 2011-12-22 17:54 | 2019-06-10 08:55 | ||
Reporter | antoinel | View Status | public | ||||
Assigned To | ajosey | ||||||
Priority | normal | Resolution | Accepted | ||||
Status | Closed | ||||||
Name | Antoine Leca | ||||||
Organization | |||||||
User Reference | |||||||
Section | sys/stat.h | ||||||
Page Number | 390 | ||||||
Line Number | 13129 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | |||||||
Summary | 0000531: Inclusion of <sys/stat.h> may make visible symbols defined in <time.h> | ||||||
Description |
Struct timespec is allowed (since IEEE Std 1003.1-2001/Cor 2-2004, item XBD/TC2/D6/25) to be defined in <sys/stat.h>, however the text then was not accompagnied by the usual boilerplate "Inclusion of the <sys/stat.h> header may make visible symbols defined in <time.h>" (where <time.h> is the native place where struct timespec is to be fully defined.) With IEEE Std 1003.1-2008, the definition of struct timespec is no longer optional. This is at odds with the way struct timespec is handled in the (various) other headers which are referencing it. Also several mainstream operating systems took for granted they could import their <time.h> (or <sys/time.h>) namespaces when including <sys/stat.h>; it is certainly not an excuse though. Another solution could be to "move" the reference to struct timespec toward <sys/types.h>, effectively making it a "POSIX base type." It would lower the name pollution, but the fact it is a struct, not a typedef, could be problematic. Also it won't reduce the already existing pollution (sys/select.h, aio.h are examples.) |
||||||
Desired Action |
Add to the end of the DESCRIPTION subclause: Inclusion of the <sys/stat.h> header may make visible all symbols from the header <time.h>. |
||||||
Tags | tc2-2008 | ||||||
Attached Files | |||||||
|
There are no notes attached to this issue. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |