mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] sysconf(_SC_NPROCESSORS_CONF) broken.
@ 2022-07-27  6:28 Rob Landley
  2022-07-27  6:34 ` [musl] " Rob Landley
  0 siblings, 1 reply; 14+ messages in thread
From: Rob Landley @ 2022-07-27  6:28 UTC (permalink / raw)
  To: musl

NPROCESSORS_CONF is supposed to show total processors, NPROCESSORS_ONLN shows
available processors using the tasket mask sched_getaffinity()).

Musl is (uniquely) using the getaffinity() version for both. Neither glibc nor
bionic have that bug.

Test: my laptop has 4 processors:

$ taskset 7 nproc
3
$ taskset 7 nproc --all
4

With musl, both show 3.

Rob

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-07-29 19:40 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-27  6:28 [musl] sysconf(_SC_NPROCESSORS_CONF) broken Rob Landley
2022-07-27  6:34 ` [musl] " Rob Landley
2022-07-27 17:58   ` Szabolcs Nagy
2022-07-27 21:29     ` Jonathan Rajotte-Julien
2022-07-28 17:27       ` enh
2022-07-29 18:42         ` enh
2022-07-29 18:53           ` NRK
2022-07-29 19:39             ` enh
2022-07-27 18:05   ` enh
2022-07-27 23:06     ` [musl] dynamic linker is capturing "reserved" library names erroneously Christopher Sean Morrison
2022-07-28  9:18       ` Szabolcs Nagy
2022-07-28 20:39         ` Christopher Sean Morrison
2022-07-29  0:07           ` Rich Felker
2022-07-29  6:19             ` Christopher Sean Morrison

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).