[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lib/glob.c change to rename LOGIN_NAME_MAX
From: |
Paul Eggert |
Subject: |
lib/glob.c change to rename LOGIN_NAME_MAX |
Date: |
Thu, 01 Sep 2005 15:39:07 -0700 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
I installed this, imported from a proposed patch in the glibc database:
2005-09-01 Paul Eggert <address@hidden>
* lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
to avoid a collision with bits/local_lim.h in glibc.
All uses changed. Problem reported by Dmitry V. Levin in
<http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
--- lib/glob.c 29 May 2005 16:56:02 -0000 1.1
+++ lib/glob.c 1 Sep 2005 22:35:46 -0000
@@ -184,9 +184,9 @@
# define GETPW_R_SIZE_MAX() (-1)
#endif
#ifdef _SC_LOGIN_NAME_MAX
-# define LOGIN_NAME_MAX() sysconf (_SC_LOGIN_NAME_MAX)
+# define GET_LOGIN_NAME_MAX() sysconf (_SC_LOGIN_NAME_MAX)
#else
-# define LOGIN_NAME_MAX() (-1)
+# define GET_LOGIN_NAME_MAX() (-1)
#endif
static const char *next_brace_sub (const char *begin, int flags) __THROW;
@@ -531,7 +531,7 @@ glob (const char *pattern, int flags,
{
int success;
char *name;
- size_t buflen = LOGIN_NAME_MAX() + 1;
+ size_t buflen = GET_LOGIN_NAME_MAX() + 1;
if (buflen == 0)
/* `sysconf' does not support _SC_LOGIN_NAME_MAX. Try
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lib/glob.c change to rename LOGIN_NAME_MAX,
Paul Eggert <=