From 07b15c5f21a951dfe8bbc0f2cd8ad98f75f7dda0 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Fri, 13 Apr 2007 08:32:18 +0000 Subject: Patch by Ricard Wanderlof : * Add configurable buffer sizes for getpwnam() and getgrnam(). The default buffer size is, as before, 256 (glibc seems to use 1024 by default). --- libc/unistd/sysconf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libc/unistd/sysconf.c') diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c index 66bcf9045..9f2ca8d0b 100644 --- a/libc/unistd/sysconf.c +++ b/libc/unistd/sysconf.c @@ -568,13 +568,11 @@ long int sysconf(int name) #endif /* If you change these, also change libc/pwd_grp/pwd_grp.c to match */ -#define PWD_BUFFER_SIZE 256 -#define GRP_BUFFER_SIZE 256 case _SC_GETGR_R_SIZE_MAX: - return GRP_BUFFER_SIZE; + return __UCLIBC_GRP_BUFFER_SIZE__; case _SC_GETPW_R_SIZE_MAX: - return PWD_BUFFER_SIZE; + return __UCLIBC_PWD_BUFFER_SIZE__; /* getlogin() is a worthless interface. In uClibc we let the user specify * whatever they want via the LOGNAME environment variable, or we return NULL -- cgit v1.2.3