Problem Report Number |
0041 |
Submitter's Classification |
Specification problem |
State |
Resolved |
Resolution |
Test Suite Deficiency (TSD) |
Problem Resolution ID |
TSD.PX.0019 |
Raised |
2006-10-14 04:44 |
Updated |
2006-10-17 15:09 |
Published |
2006-10-17 15:09 |
Product Standard |
PSE52 Realtime Controller 1003.1-2003 System |
Certification Program |
POSIX Certified by IEEE and The Open Group |
Test Suite |
VSRT-PSE version 5.3.6 |
Test Identification |
rt.hdr/misc/semaphore/T.semaphore 21 |
Specification |
PSE52 Realtime Controller 1003.1-2003 System Product Standard |
Location in Spec |
http://www.opengroup.org/onlinepubs/009695399/basedefs/semaphore.h.html |
Linked Problem Reports |
XSH, ERN, 0057 |
Problem Summary |
Symbols from time.h may not be visible in semaphore.h although some
are needed |
Problem Text |
The specifications for semaphore.h include the prototype for the
function
int sem_timedwait (sem_t *restrict, const struct timespec *restrict);
which requires a definition of the 'struct timespec' type. This type
is defined in time.h but IEEE Std 1003.1-2001 does not allow
semaphore.h to make visible symbols from time.h. |
Test Output |
***********************************************************************
/tset/rt.hdr/misc/semaphore/T.semaphore 21 Failed
Test Description:
For UNIX98 mode:
When _XOPEN_SOURCE is defined with the value 500 and no
other
feature test macros except _POSIX_SOURCE and
_POSIX_C_SOURCE<=199506L are defined, no other symbols
than those
defined or reserved by XSH5 are made visible.
For UNIX03 mode:
When _XOPEN_SOURCE is defined with the value 600 and no
other
feature test macros except _POSIX_C_SOURCE<=200112L are
defined,
no other symbols than those defined or reserved by POSIX.1-
2001/XSH6 (including the XSI option) are made visible.
For POSIX01 mode:
When _POSIX_C_SOURCE is defined with the value 200112L and
no
other feature test macros except _POSIX_SOURCE are
defined, no
other symbols than those defined or reserved by POSIX.1-
2001/XSH6
(not including the XSI option) are made visible.
Test Information:
Illegal struct/union/enum tag: timespec
Illegal struct/union/enum tag: timespec
Feature test macros: -D_POSIX_C_SOURCE=200112
Compiler or run-time messages or results:
<NIL> (no results or messages produced)
Illegal struct/union/enum tag: timespec
|