From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8339 invoked by alias); 26 May 2013 18:35:54 -0000 Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org Received: (qmail 8306 invoked by uid 89); 26 May 2013 18:35:47 -0000 X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-pa0-f49.google.com (HELO mail-pa0-f49.google.com) (209.85.220.49) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sun, 26 May 2013 18:35:45 +0000 Received: by mail-pa0-f49.google.com with SMTP id bi5so6040183pad.22 for ; Sun, 26 May 2013 11:35:43 -0700 (PDT) X-Received: by 10.67.5.8 with SMTP id ci8mr26372665pad.48.1369593343890; Sun, 26 May 2013 11:35:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.160.98 with HTTP; Sun, 26 May 2013 11:35:03 -0700 (PDT) From: =?UTF-8?B?0JjQs9C+0YDRjCDQn9Cw0YjQtdCy?= Date: Sun, 26 May 2013 18:35:00 -0000 Message-ID: Subject: _SC_XOPEN_STREAMS vs _XOPEN_STREAMS vs _SC_STREAMS To: libc-ports@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2013-05/txt/msg00103.txt.bz2 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