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; |
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 |