/[cvs]/ccvs/lib/glob.c
ViewVC logotype

Diff of /ccvs/lib/glob.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by dprice, Wed May 25 20:23:38 2005 UTC revision 1.16 by dprice, Mon Sep 5 01:47:59 2005 UTC
# Line 184  Line 184 
184  # define GETPW_R_SIZE_MAX()     (-1)  # define GETPW_R_SIZE_MAX()     (-1)
185  #endif  #endif
186  #ifdef _SC_LOGIN_NAME_MAX  #ifdef _SC_LOGIN_NAME_MAX
187  # define LOGIN_NAME_MAX()       sysconf (_SC_LOGIN_NAME_MAX)  # define GET_LOGIN_NAME_MAX()   sysconf (_SC_LOGIN_NAME_MAX)
188  #else  #else
189  # define LOGIN_NAME_MAX()       (-1)  # define GET_LOGIN_NAME_MAX()   (-1)
190  #endif  #endif
191    
192  static const char *next_brace_sub (const char *begin, int flags) __THROW;  static const char *next_brace_sub (const char *begin, int flags) __THROW;
# Line 531  glob (const char *pattern, int flags, Line 531  glob (const char *pattern, int flags,
531              {              {
532                int success;                int success;
533                char *name;                char *name;
534                size_t buflen = LOGIN_NAME_MAX() + 1;                size_t buflen = GET_LOGIN_NAME_MAX() + 1;
535    
536                if (buflen == 0)                if (buflen == 0)
537                  /* `sysconf' does not support _SC_LOGIN_NAME_MAX.  Try                  /* `sysconf' does not support _SC_LOGIN_NAME_MAX.  Try

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26