This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |