This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: _SC_XOPEN_STREAMS vs _XOPEN_STREAMS vs _SC_STREAMS
- From: Florian Weimer <fweimer at redhat dot com>
- To: ÐÐÐÑÑ ÐÐÑÐÐ <pashev dot igor at gmail dot com>
- Cc: libc-help at sourceware dot org
- Date: Wed, 29 May 2013 13:34:20 +0200
- Subject: Re: _SC_XOPEN_STREAMS vs _XOPEN_STREAMS vs _SC_STREAMS
- References: <CALL-Q8zFKY6oHawHwstFu_Gx=VP6NbWGRMqsDcVG3zb3DSaYAA at mail dot gmail dot com>
On 05/28/2013 08:53 PM, ÐÐÐÑÑ ÐÐÑÐÐ wrote:
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
How is this observable, considering that _XOPEN_STREAMS is defined this way?
/usr/include/bits/posix_opt.h:#define _XOPEN_STREAMS -1
--
Florian Weimer / Red Hat Product Security Team