[uClibc-cvs] uClibc/libc/unistd sysconf.c,1.13,1.14
Erik Andersen
andersen at codepoet.org
Wed Dec 4 00:21:53 UTC 2002
Update of /var/cvs/uClibc/libc/unistd
In directory winder:/tmp/cvs-serv17516
Modified Files:
sysconf.c
Log Message:
For now, always claim we have exactly one cpu. It should
generally be the truth...
Index: sysconf.c
===================================================================
RCS file: /var/cvs/uClibc/libc/unistd/sysconf.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- sysconf.c 15 Jul 2002 16:26:46 -0000 1.13
+++ sysconf.c 4 Dec 2002 00:21:49 -0000 1.14
@@ -675,14 +675,16 @@
#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:
More information about the uClibc-cvs
mailing list