Merge "sysconf(3) returns long."

This commit is contained in:
Elliott Hughes 2014-11-14 23:33:20 +00:00 committed by Gerrit Code Review
commit 4cf942d318
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -129,7 +129,7 @@ __BEGIN_DECLS
#define _SC_AVPHYS_PAGES 0x0063
#define _SC_MONOTONIC_CLOCK 0x0064
extern int sysconf(int name);
long sysconf(int);
__END_DECLS

View File

@ -202,7 +202,7 @@ extern int acct(const char* filepath);
int getpagesize(void);
extern int sysconf(int name);
long sysconf(int);
extern int daemon(int, int);