1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00
xz-archive/src
Lasse Collin df8f446e3a tuklib_cpucores: Add support for sched_getaffinity().
It's available in glibc (GNU/Linux, GNU/kFreeBSD). It's better
than sysconf(_SC_NPROCESSORS_ONLN) because sched_getaffinity()
gives the number of cores available to the process instead of
the total number of cores online.

As a side effect, this commit fixes a bug on GNU/kFreeBSD where
configure would detect the FreeBSD-specific cpuset_getaffinity()
but it wouldn't actually work because on GNU/kFreeBSD it requires
using -lfreebsd-glue when linking. Now the glibc-specific function
will be used instead.

Thanks to Sebastian Andrzej Siewior for the original patch
and testing.
2016-10-24 18:51:36 +03:00
..
common tuklib_cpucores: Add support for sched_getaffinity(). 2016-10-24 18:51:36 +03:00
liblzma liblzma: Disable external SHA-256 by default. 2016-03-13 20:21:49 +02:00
lzmainfo Build: Prepare to support Automake's subdir-objects. 2014-10-29 21:15:35 +02:00
scripts xzdiff: Make the mktemp usage compatible with FreeBSD's mktemp. 2015-02-09 22:08:37 +02:00
xz xz: Fix copying of timestamps on Windows. 2016-06-30 20:27:36 +03:00
xzdec Build: Prepare to support Automake's subdir-objects. 2014-10-29 21:15:35 +02:00
Makefile.am Build: Prepare to support Automake's subdir-objects. 2014-10-29 21:15:35 +02:00