[PATCH] add get_nprocs, get_nprocs_conf

Eric Blake ebb9@byu.net
Wed Nov 11 12:55:00 GMT 2009


-----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?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkr6tCwACgkQ84KuGfSFAYBciACfS1e4O0xVJkoN2n/6aVFb4yB0
y38AoLL2u+5iI/UXEfumS6w/XLyyU2KU
=JFbr
-----END PGP SIGNATURE-----



More information about the Cygwin-patches mailing list