This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] add get_nprocs, get_nprocs_conf


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.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]