From: Jakub Jelinek <jakub@redhat.com>
To: Ulrich Drepper <drepper@redhat.com>
Cc: Glibc hackers <libc-hacker@sources.redhat.com>
Subject: [PATCH] _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS
Date: Tue, 17 Jul 2007 09:17:00 -0000 [thread overview]
Message-ID: <20070717092110.GT4603@sunsite.mff.cuni.cz> (raw)
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 <jakub@redhat.com>
* 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
reply other threads:[~2007-07-17 9:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070717092110.GT4603@sunsite.mff.cuni.cz \
--to=jakub@redhat.com \
--cc=drepper@redhat.com \
--cc=libc-hacker@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).