OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be4e6bb
)
For now, always claim we have exactly one cpu. It should
author
Eric Andersen
<andersen@codepoet.org>
Wed, 4 Dec 2002 00:21:49 +0000
(
00:21
-0000)
committer
Eric Andersen
<andersen@codepoet.org>
Wed, 4 Dec 2002 00:21:49 +0000
(
00:21
-0000)
generally be the truth...
libc/unistd/sysconf.c
patch
|
blob
|
history
diff --git
a/libc/unistd/sysconf.c
b/libc/unistd/sysconf.c
index
89f1e75
..
3aa03ea
100644
(file)
--- 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: