diff options
| author | Elliott Hughes <enh@google.com> | 2014-11-14 15:14:44 -0800 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2014-11-14 15:14:44 -0800 |
| commit | 60d84af1726225320b26683b726e5e735d9d76e8 (patch) | |
| tree | e8eec3ae90eecfffa1ce0ada103512b9819f3ef1 /libc/bionic/sysconf.cpp | |
| parent | cdcef73a23833ebd50bb5b654eb278b164e286ad (diff) | |
| download | bionic-60d84af1726225320b26683b726e5e735d9d76e8.zip bionic-60d84af1726225320b26683b726e5e735d9d76e8.tar.gz bionic-60d84af1726225320b26683b726e5e735d9d76e8.tar.bz2 | |
sysconf(3) returns long.
On LP32, this makes no difference. Not an ABI change.
On LP64, results are going to be in %rax or x0 whether they're 32- or 64-bit,
and the only difference is going to be whether the top bits are clobbered.
Bug: 18390956
Change-Id: I0bd4496231bdded34c1fa03e895021ac0df7f8e1
Diffstat (limited to 'libc/bionic/sysconf.cpp')
| -rw-r--r-- | libc/bionic/sysconf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/sysconf.cpp b/libc/bionic/sysconf.cpp index 951860d..fb704ad 100644 --- a/libc/bionic/sysconf.cpp +++ b/libc/bionic/sysconf.cpp @@ -149,7 +149,7 @@ static int __sysconf_monotonic_clock() { return (rc == -1) ? -1 : _POSIX_VERSION; } -int sysconf(int name) { +long sysconf(int name) { switch (name) { case _SC_ARG_MAX: return _POSIX_ARG_MAX; case _SC_CHILD_MAX: return CHILD_MAX; |
