From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@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 11:13:00 -0000 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-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) X-SW-Source: 2014-09/txt/msg00269.txt.bz2 --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 850 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[] =3D { "RAW_SOCKETS", _SC_RAW_SOCKETS, SYSCONF }, #endif =20 +#ifdef _SC_IPV6 + { "_POSIX_IPV6", _SC_IPV6, SYSCONF }, +#endif +#ifdef _SC_RAW_SOCKETS + { "_POSIX_RAW_SOCKETS", _SC_RAW_SOCKETS, SYSCONF }, +#endif + { NULL, 0, SYSCONF } }; =20 --=20 1.9.3 --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-length: 473 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUEtVMAAoJEHnEPfvxzyGHRzwH/jJuLjNCKncrJjxVxeLgs0ve bvtKzsDlnkEPTnmkgnKE3phNkEba1kic7OKu7baS7rA4isHflyYPmh0KJKDdGP5i 0ZbC+eHWHtuXqhLhSDMw6SHcWNPLfIXr8bk8laKt/vKsbEMlCDsgncbYSCTpmAdt wD4VLwZJnKDiEPTrmA1fvkPYmspRFm0omGukrYOfi4Ou89IWUaemO43dSQeF8S1a bxrlO7oZeA0QQoDTAj//GsXbK8GltzrXElzx/hZZwggYiGwxicVl0Km8LRdEPilA qlSS2fuw6PlYxrI0chJ2zQ0W+/iMFiwJy+Y58uU5W9myqKfCPlm++QZDwnTXrxk= =cmb6 -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--