From patchwork Fri Sep 12 11:13:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 388588 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9D46F1400AA for ; Fri, 12 Sep 2014 21:13:31 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=boFWi4BbCKCz9af5x0d9hI9F8r6Vy 1Z583nNB7kY/OMbjBB8mIxKQhpqTI2kmJFxuCh61PLyClrXttSaov3PACp0zQ4v7 4KjqxXxs+N/uwGEn35Zf1smDrdblcFhTPnR0reoAdIGn7aUNGYVCMkBmn5vQoePP yZBCwDkDliB+NU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=PtVgRr8Tmq7J7I573xMXFR8h6rE=; b=u5c 9qbgUaWBp/iFq1DPj36+CofHvJE1BGAFwc0jmKovSfWXqFfRXoCFAPBtWfc3hrWM Q1h9aymTKt6XujLeyG9UGOZ8F2mH5Gk8+vpLUJjJXt5Dfxmx1wE4/UdmuFk3dBjy p9QVrHu1OpI/QeU0ADcRxsbQ7pXdkPpIbzUPOTPs= Received: (qmail 6004 invoked by alias); 12 Sep 2014 11:13:26 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 5994 invoked by uid 89); 12 Sep 2014 11:13:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Date: Fri, 12 Sep 2014 16:43:16 +0530 From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [PATCH 2/2] Add correct variable names for _POSIX_IPV6 and _POSIX_RAW_SOCKETS Message-ID: <20140912111316.GA28404@spoyarek.pnq.redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) getconf only recognizes IPV6 and RAW_SOCKETS, when the standard requires it to recognize the actual configuration variable name[1]. I have not removed the earlier names for compatibility. * posix/getconf.c (vars): Add _POSIX_IPV6 and _POSIX_RAW_SOCKETS. [1] http://pubs.opengroup.org/onlinepubs/007904875/functions/sysconf.html --- posix/getconf.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/posix/getconf.c b/posix/getconf.c index db6acc4..c2c0d3f 100644 --- a/posix/getconf.c +++ b/posix/getconf.c @@ -1004,6 +1004,13 @@ static const struct conf vars[] = { "RAW_SOCKETS", _SC_RAW_SOCKETS, SYSCONF }, #endif +#ifdef _SC_IPV6 + { "_POSIX_IPV6", _SC_IPV6, SYSCONF }, +#endif +#ifdef _SC_RAW_SOCKETS + { "_POSIX_RAW_SOCKETS", _SC_RAW_SOCKETS, SYSCONF }, +#endif + { NULL, 0, SYSCONF } };