[PATCH] add get_nprocs, get_nprocs_conf

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Nov 11 16:23:00 GMT 2009


On Nov 11 10:11, Christopher Faylor wrote:
> On Wed, Nov 11, 2009 at 05:55:08AM -0700, Eric Blake wrote:
> >-----BEGIN PGP SIGNED MESSAGE-----
> >Hash: SHA1
> >
> >According to Yaakov (Cygwin/X) on 11/11/2009 3:22 AM:
> >> On 11/11/2009 03:41, Corinna Vinschen wrote:
> >>> Thanks, but, wouldn't it be simpler to implement them as macros in
> >>> sys/sysinfo.h?
> >> 
> >> Implementing them as macros won't help an autoconf AC_CHECK_FUNC or
> >> cmake CHECK_FUNCTION_EXISTS test.
> >
> >Also, the upcomining coreutils 8.1 will be adding nproc(1), to make
> >scripting for parallel jobs easier by exposing these functions to shell
> >users.  +1 on the concept from me, although why does sys/sysinfo.h have to
> >forward to cygwin/sysinfo.h, rather than directly declaring the two functions?
> 
> Ditto on the +1 and the question.

Indeed, Linux defines these functions directly in sys/sysinfo.h, too.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat



More information about the Cygwin-patches mailing list