[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DLD-FUNCTIONS/nprocs.cc:29:25: error: sys/sysinfo.h: No such file or
Re: DLD-FUNCTIONS/nprocs.cc:29:25: error: sys/sysinfo.h: No such file or directory
Thu, 17 Mar 2011 08:25:01 -0400
On Thu, Mar 17, 2011 at 04:17:27AM -0400, Ben Abbott wrote:
> On Mar 16, 2011, at 10:19 PM, Rik wrote:
> > On 03/16/2011 06:12 PM, Ben Abbott wrote:
> >> After the changset below ...
> >> http://hg.savannah.gnu.org/hgweb/octave/rev/a1b2da4967ac
> >> ... I encounter an error ...
> > This is sort of a drag as the whole point was to have access to the
> > underlying gnulib module which should be portable.
> I'm not familiar with this either, but I infer that we should be using the
> gnulib nproc module.
> I assume there is some problem with that?
No, I just messed up. Sorry. I had misread the gnulib manual and thought
that it magically provided drop-in replacements of nprocs and
nprocs_conf. In fact, as I think Ben already knew, its nproc module
provides similar functionality through its function called
I have updated nprocs.cc. It no longer provides `nprocs' and
`nprocs_conf', as we can't actually call native system routines of these
names across different platforms. Instead it provides `nproc', which
like the newish coreutils program of the same name, uses gnulib's
`num_processors' function. The new function takes an optional argument
to access the functionality available in the underlying gnulib routine.
An hg changeset is attached to this email. I don't know if that makes it
through the mailing list, so I'll attach it to the patch queue item at:
If Ben could see if this works in Mac OS that would be great. I only
have access to GNU/Linux here.
Description: Text Data