]> icculus.org git repositories - icculus/xz.git/commit
Updates to tuklib_physmem and tuklib_cpucores.
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 10 May 2010 16:54:15 +0000 (19:54 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 10 May 2010 16:54:15 +0000 (19:54 +0300)
commit6548e304657e77d3a972053db3c41c5daf591113
treec8ae4f8c278d244d9d4f17084b7095beea9ea9dc
parenta290cfee3e23f046889c022aa96b4eca2016fdda
Updates to tuklib_physmem and tuklib_cpucores.

Don't use #error to generate compile error, because some
compilers actually don't take it as an error. This fixes
tuklib_physmem on IRIX.

Fix incorrect error check for sysconf() return values.

Add AIX, HP-UX, and Tru64 specific code to detect the
amount RAM.

Add HP-UX specific code to detect the number of CPU cores.

Thanks a lot to Peter O'Gorman for initial patches,
testing, and debugging these fixes.
m4/tuklib_cpucores.m4
m4/tuklib_physmem.m4
src/common/tuklib_cpucores.c
src/common/tuklib_physmem.c