This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
_SC_XOPEN_STREAMS vs _XOPEN_STREAMS vs _SC_STREAMS
- From: ÐÐÐÑÑ ÐÐÑÐÐ <pashev dot igor at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Tue, 28 May 2013 22:53:34 +0400
- Subject: _SC_XOPEN_STREAMS vs _XOPEN_STREAMS vs _SC_STREAMS
Hi!
I'm looking at "sysdeps/posix/sysconf.c" and see that:
sysconf(_SC_STREAMS) = _XOPEN_STREAMS
sysconf(_SC_XOPEN_STREAMS) = -1
But according to "The Open Group Base Specifications Issue 7" [2]
sysconf(_SC_XOPEN_STREAMS) should be _XOPEN_STREAMS
Is it a bug?
[1] http://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/posix/sysconf.c;h=d8c3466c1cc23f7232f2c7b4dfef4a17d6857c09;hb=HEAD
[2] http://pubs.opengroup.org/onlinepubs/009695399/functions/sysconf.html