From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2742 invoked by alias); 17 Jul 2007 09:17:48 -0000 Received: (qmail 2726 invoked by uid 22791); 17 Jul 2007 09:17:48 -0000 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 17 Jul 2007 09:17:44 +0000 Received: from sunsite.mff.cuni.cz (localhost.localdomain [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.8/8.13.8) with ESMTP id l6H9LBST006892; Tue, 17 Jul 2007 11:21:11 +0200 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.13.8/8.13.8/Submit) id l6H9LBKi006890; Tue, 17 Jul 2007 11:21:11 +0200 Date: Tue, 17 Jul 2007 09:17:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Glibc hackers Subject: [PATCH] _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS Message-ID: <20070717092110.GT4603@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00023.txt.bz2 Hi! Both http://www.opengroup.org/onlinepubs/009695399/functions/confstr.html http://www.opengroup.org/onlinepubs/009695399/basedefs/unistd.h.html mention _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS rather than _CS_V6_WIDTH_RESTRICTED_ENVS glibc currently defines. http://www.opengroup.org/onlinepubs/009695399/utilities/getconf.html says for confstr variables the getconf names should be without _CS_ prefix, i.e. neither _POSIX_V6_WIDTH_RESTRICTED_ENVS nor V6_WIDTH_RESTRICTED_ENVS getconf ATM supports. The following patch instead of changing the name for compatibility adds new macro and new getconf variable. 2007-07-17 Jakub Jelinek * bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define. * posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS. --- libc/bits/confname.h.jj 2004-11-27 21:52:06.000000000 +0100 +++ libc/bits/confname.h 2007-07-17 10:52:02.000000000 +0200 @@ -1,5 +1,5 @@ /* `sysconf', `pathconf', and `confstr' NAME values. Generic version. - Copyright (C) 1993,1995-1998,2000,2001,2003,2004 + Copyright (C) 1993,1995-1998,2000,2001,2003,2004,2007 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -509,7 +509,8 @@ enum #define _CS_PATH _CS_PATH _CS_V6_WIDTH_RESTRICTED_ENVS, -# define _CS_V6_WIDTH_RESTRICTED_ENVS _CS_V6_WIDTH_RESTRICTED_ENVS +#define _CS_V6_WIDTH_RESTRICTED_ENVS _CS_V6_WIDTH_RESTRICTED_ENVS +#define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS _CS_V6_WIDTH_RESTRICTED_ENVS _CS_GNU_LIBC_VERSION, #define _CS_GNU_LIBC_VERSION _CS_GNU_LIBC_VERSION --- libc/posix/getconf.c.jj 2007-07-16 09:58:47.000000000 +0200 +++ libc/posix/getconf.c 2007-07-17 10:57:01.000000000 +0200 @@ -610,6 +610,7 @@ static const struct conf vars[] = #ifdef _CS_V6_WIDTH_RESTRICTED_ENVS { "_POSIX_V6_WIDTH_RESTRICTED_ENVS", _CS_V6_WIDTH_RESTRICTED_ENVS, CONFSTR }, + { "POSIX_V6_WIDTH_RESTRICTED_ENVS", _CS_V6_WIDTH_RESTRICTED_ENVS, CONFSTR }, #endif #ifdef _SC_V6_ILP32_OFFBIG Jakub