This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: _SC_XOPEN_STREAMS vs _XOPEN_STREAMS vs _SC_STREAMS


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]