get_nprocs and get_nprocs_conf do not seem to be complete... in /usr/include/sys/sysinfo.h there are void stubs which throw a warning/error maybe sysconf(_SC_NPROCESSORS_CONF) and sysconf(_SC_NPROCESSORS_ONLN) could be used for get_nprocs_conf and get_nprocs respectively
ehh i think i was wrong in my last post, num_online_cpus() and int num_present_cpus() in include/linux/cpumask.h is what needs to be used probably
I do not understand this bug report. What are you trying to do? Do you have a code example which works with e.g. glibc but fails with uclibc?
(In reply to comment #2) > I do not understand this bug report. > > What are you trying to do? Do you have a code example which works with e.g. > glibc but fails with uclibc? > I think it was boost that I was trying to compile when I got this error... ./libs/thread/src/pthread/thread.cpp
I didn't find the time yet but i fear that this hunk is not adequate, is it? Thanks in advance for checking and reporting back!
[patch *] shot-in-the-dark.00: http://repo.or.cz/w/buildroot.git?a=blob_plain;f=toolchain/uClibc/uClibc.075-sysconf-cpus.patch;hb=HEAD
this is a bug in boost. it uses glibc-specific stuff instead of the POSIX compliant method. punt this bug as invalid. https://svn.boost.org/trac/boost/ticket/2053
which is not to say that the patch referenced by Bernhand shouldnt be added (it should be). just that adding the symbols get_nprocs/get_nprocs_conf is incorrect.
CFT patch: http://lists.uclibc.org/pipermail/uclibc/2010-April/043814.html