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
This commit is contained in:
parent
cdcef73a23
commit
60d84af172
@ -149,7 +149,7 @@ static int __sysconf_monotonic_clock() {
|
|||||||
return (rc == -1) ? -1 : _POSIX_VERSION;
|
return (rc == -1) ? -1 : _POSIX_VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
int sysconf(int name) {
|
long sysconf(int name) {
|
||||||
switch (name) {
|
switch (name) {
|
||||||
case _SC_ARG_MAX: return _POSIX_ARG_MAX;
|
case _SC_ARG_MAX: return _POSIX_ARG_MAX;
|
||||||
case _SC_CHILD_MAX: return CHILD_MAX;
|
case _SC_CHILD_MAX: return CHILD_MAX;
|
||||||
|
@ -129,7 +129,7 @@ __BEGIN_DECLS
|
|||||||
#define _SC_AVPHYS_PAGES 0x0063
|
#define _SC_AVPHYS_PAGES 0x0063
|
||||||
#define _SC_MONOTONIC_CLOCK 0x0064
|
#define _SC_MONOTONIC_CLOCK 0x0064
|
||||||
|
|
||||||
extern int sysconf(int name);
|
long sysconf(int);
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
@ -202,7 +202,7 @@ extern int acct(const char* filepath);
|
|||||||
|
|
||||||
int getpagesize(void);
|
int getpagesize(void);
|
||||||
|
|
||||||
extern int sysconf(int name);
|
long sysconf(int);
|
||||||
|
|
||||||
extern int daemon(int, int);
|
extern int daemon(int, int);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user