* [PATCH] _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS
@ 2007-07-17 9:17 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2007-07-17 9:17 UTC (permalink / raw)
To: Ulrich Drepper; +Cc: Glibc hackers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-17 9:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-17 9:17 [PATCH] _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS Jakub Jelinek
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).