diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2007-04-13 08:32:18 +0000 |
---|---|---|
committer | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2007-04-13 08:32:18 +0000 |
commit | 07b15c5f21a951dfe8bbc0f2cd8ad98f75f7dda0 (patch) | |
tree | 405ca74df243f1b523c6ff11119abc032d5a5046 /libc/unistd | |
parent | 60dfbf13d6953f00b54bf6135aaad74de5b8e7b1 (diff) |
Patch by Ricard Wanderlof <ricardw at axis dot com>:
* Add configurable buffer sizes for getpwnam() and getgrnam().
The default buffer size is, as before, 256 (glibc seems to use
1024 by default).
Diffstat (limited to 'libc/unistd')
-rw-r--r-- | libc/unistd/sysconf.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 |