diff options
author | Elliott Hughes <enh@google.com> | 2013-05-14 17:20:34 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-05-14 17:20:34 -0700 |
commit | d35106fd557e054d1ffe388df6a3b3cb51cc5021 (patch) | |
tree | a03fac1eb3034d9878e3fe9c0adf86186e3964a7 /libc/bionic/sysconf.cpp | |
parent | 6f502bc74374804766639e6b1515644875810bda (diff) | |
download | android_bionic-d35106fd557e054d1ffe388df6a3b3cb51cc5021.tar.gz android_bionic-d35106fd557e054d1ffe388df6a3b3cb51cc5021.tar.bz2 android_bionic-d35106fd557e054d1ffe388df6a3b3cb51cc5021.zip |
Fix sysconf(3) for _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX.
Change-Id: Ie16cb21c1a5a2bdce8502b5974e2c4dbb1d679ce
Diffstat (limited to 'libc/bionic/sysconf.cpp')
-rw-r--r-- | libc/bionic/sysconf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/bionic/sysconf.cpp b/libc/bionic/sysconf.cpp index 5e39e6156..9ab200727 100644 --- a/libc/bionic/sysconf.cpp +++ b/libc/bionic/sysconf.cpp @@ -298,8 +298,8 @@ int sysconf(int name) { case _SC_TIMERS: return _POSIX_TIMERS; #endif - // GETGR_R_SIZE_MAX ? - // GETPW_R_SIZE_MAX ? + case _SC_GETGR_R_SIZE_MAX: return 1024; + case _SC_GETPW_R_SIZE_MAX: return 1024; case _SC_LOGIN_NAME_MAX: return SYSTEM_LOGIN_NAME_MAX; |