Skip to contentSkip to conversation

RfC: hpux-like sysconf variables in glibc, cpu affinity

parisc-linux Randolph Chung 1 participant 1 message Oct 25, 2001

lore
Share & tools
lore
#0 lore raw

While helping to port the hpux PI performance monitoring stuff to Linux, I came across several sysconf calls that appear to be supported by hpux but not under Linux. Would like to get your opinions on how best to support these:

variable: sample output
===================================================================
_SC_CPU_VERSION CPU_PA_RISC2_0
_SC_CPU_CHIP_TYPE bitfield describing cpu type and rev
_SC_PSET_SUPPORT 1/0, see more below

there's also a call to confstr(_CS_MACHINE_MODEL) which is also not supported by glibc.