diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-12-04 00:21:49 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-12-04 00:21:49 +0000 |
commit | d6cb9955d12e5c28ba7ae03bb01b47df4dabd44c (patch) | |
tree | 24b7f44420114849bac1b670d6362030637a5936 /libc/unistd/sysconf.c | |
parent | be4e6bbed0ccd09c605bff2671cd9c79b9c82217 (diff) |
For now, always claim we have exactly one cpu. It should
generally be the truth...
Diffstat (limited to 'libc/unistd/sysconf.c')
-rw-r--r-- | libc/unistd/sysconf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c index 89f1e7573..3aa03ea49 100644 --- a/libc/unistd/sysconf.c +++ b/libc/unistd/sysconf.c @@ -675,14 +675,16 @@ long int __sysconf(int name) #if 0 RETURN_FUNCTION(get_nprocs_conf()); #else - RETURN_NEG_1; + /* this is a hack. for now always claim we have exactly one cpu */ + return 1; #endif case _SC_NPROCESSORS_ONLN: #if 0 RETURN_FUNCTION(get_nprocs()); #else - RETURN_NEG_1; + /* this is a hack. for now always claim we have exactly one cpu */ + return 1; #endif case _SC_PHYS_PAGES: |