features.h
Stepan Kasal
kasal@suse.cz
Thu Feb 3 00:46:00 GMT 2000
Hallo all.
On Wed, Feb 2, 2000 at 18:05 +0100, aj@suse.de wrote:
> Please note the "is also defined" for _XOPEN_SOURCE_EXTENDED.
> If the documentation in <features.h> is not clear, feel free to update
[ Thanks Andreas for your patience :-) ]
So I looked to the CVS and tried to update feature.h and also creature.texi.
Could someone who understands to these things please review the patch below
and apply it to the cvs?
Warning: I don't know at all what XOPEN2K means, just guessing!
Stepan
--- include/features.h
+++ include/features.h 2000/02/03 08:31:51
@@ -28,9 +28,11 @@
_POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
if >=199309L, add IEEE Std 1003.1b-1993;
if >=199506L, add IEEE Std 1003.1c-1995
- _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
- Single Unix conformance is wanted.
- _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
+ _XOPEN_SOURCE Includes POSIX and XPG things.
+ _XOPEN_SOURCE_EXTENDED (together with _XOPEN_SOURCE)
+ XPG things and X/Open Unix extensions.
+ _XOPEN_SOURCE == 500 Single Unix conformance
+ _XOPEN_SOURCE == 600 X/Open 2000 conformance
_LARGEFILE_SOURCE Some more functions for correct standard I/O.
_LARGEFILE64_SOURCE Additional functionality from LFS for large files.
_FILE_OFFSET_BITS=N Select default filesystem interface.
@@ -56,6 +58,7 @@
__USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
__USE_XOPEN Define XPG things.
__USE_XOPEN_EXTENDED Define X/Open Unix things.
+ __USE_XOPEN2K Define X/Open 2000 things.
__USE_UNIX98 Define Single Unix V2 things.
__USE_LARGEFILE64 Define LFS things with separate names.
__USE_FILE_OFFSET64 Define 64bit interface as default.
@@ -86,6 +89,7 @@
#undef __USE_POSIX199506
#undef __USE_XOPEN
#undef __USE_XOPEN_EXTENDED
+#undef __USE_XOPEN2K
#undef __USE_UNIX98
#undef __USE_LARGEFILE
#undef __USE_LARGEFILE64
--- manual/creature.texi
+++ manual/creature.texi 2000/02/03 08:21:05
@@ -130,6 +130,7 @@
If the macro @code{_XOPEN_SOURCE} has the value @math{500} this includes
all functionality described so far plus some new definitions from the
Single Unix Specification, @w{version 2}.
+If it is set to @math{600} X/Open 2000 functionality is included.
@end defvr
@comment (NONE)
More information about the Libc-alpha
mailing list