Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/include
[defining _XOPEN_SOURCE means XPG4.2]
joerg%britannica.bec.de@localhost said:
> We document it as such in sys/featuretest.h.
Yes, and this is what other systems I've checked do as well.
The linux feature_test_macros(7) manpage says:
_XOPEN_SOURCE
Defining this macro with any value causes header files to expose
definitions
conforming to POSIX.1, POSIX.2, and XPG4. Defining with the value
500 or greater additionally exposes definitions for SUSv2 (UNIX 98).
Defining
with the value 600 or greater additionally exposes definitions for
SUSv3 (UNIX 03; i.e., the POSIX.1-2001 base specification plus the XSI
extension)
and C 99 definitions.
and later:
POSIX.1 specifies _POSIX_C_SOURCE, _POSIX_SOURCE, and _XOPEN_SOURCE.
OSF/1 and solaris are similar. (Solaris has an additional _XOPEN_VERSION
variable to distinguish between XPG3 and XPG4.)
I haven't found any standard or manpage which suggests defining
_XOPEN_SOURCE to "3" or "4".
best regards
Matthias
-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index