OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f502bc
)
Fix sysconf(3) for _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX.
author
Elliott Hughes
<enh@google.com>
Wed, 15 May 2013 00:20:34 +0000
(17:20 -0700)
committer
Elliott Hughes
<enh@google.com>
Wed, 15 May 2013 00:20:34 +0000
(17:20 -0700)
Change-Id: Ie16cb21c1a5a2bdce8502b5974e2c4dbb1d679ce
libc/bionic/sysconf.cpp
patch
|
blob
|
history
diff --git
a/libc/bionic/sysconf.cpp
b/libc/bionic/sysconf.cpp
index
5e39e61
..
9ab2007
100644
(file)
--- 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;