[PATCH] nproc: new applet

Laszlo Papp lpapp at kde.org
Mon Aug 4 20:51:50 UTC 2014


On Mon, Aug 4, 2014 at 9:45 PM, Bernhard Reutner-Fischer <
rep.dot.nop at gmail.com> wrote:

> On 4 August 2014 21:44:09 CEST, Isaac Dunham <ibid.ag at gmail.com> wrote:
> >On Mon, Aug 04, 2014 at 06:13:02PM +0100, Laszlo Papp wrote:
> >> On Mon, Aug 4, 2014 at 6:10 PM, Steven Honeyman
> ><stevenhoneyman at gmail.com>
> >> wrote:
> >>
> >> > On 4 August 2014 07:38, Bernhard Reutner-Fischer
> ><rep.dot.nop at gmail.com>
> >> > wrote:
> >> > > On 3 August 2014 02:20:47 CEST, Steven Honeyman <
> >> > stevenhoneyman at gmail.com> wrote:
> >> > >>I needed this little program recently, and was quite surprised it
> >> > >>wasn't already a part of busybox... so here is a simple
> >implementation
> >> > >>that I hope can be included.
> >> > >
> >> > > alias nproc="getconf _NPROCESSORS_ONLN"
> >> > >
> >> > > In your sh profile.
> >> > > HTH
> >> > >
> >> >
> >> > Interesting idea... but getconf doesn't seem to be part of busybox.
> >I
> >> > just did a 'grep -r getconf' on the latest git source, and the only
> >> > place it's mentionned is in docs/posix_conformance.txt, under the
> >"not
> >> > supported" section!
> >> >
> >>
> >> Seems to be correct. I only have it as part of glibc on desktop.
> >glibc
> >> would be too big on embedded...
> >
> >Alpine Linux builds their own based on the NetBSD getconf; if you have
> >an
> >aports tree, it's main/musl/getconf.c
>
> Glibc ships one, uClibc does and musl seems to do, too. IIRC *BSD all have
> it, did not look at bionic. All in all should work just fine everywhere.
>

BSD is hardly common on embedded. uClibc is pretty dead. Glibc is out of
the question, naturally. What would matter is eglibc if one can verify it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140804/69704c93/attachment.html>


More information about the busybox mailing list