> Linux has /proc/cpuinfo, while Haiku has something similar in > sysinfo. > Sometimes I come across ports that are looking for /proc/cpuinfo, I > was wondering if there was a way we could fake this out, or perhaps > have a command line option for sysinfo that could generate a temp > /proc/cpuinfo file, or at least spit out info that matches the format > of /proc/cpuinfo and could be ifdef'd into the port in place of > /proc/cpuinfo. Better fix these apps so they use portable code instead. Like sysconf(), confstr(), pathconf(), fpathconf(), ... http://linux.die.net/man/3/sysconf http://www.opengroup.org/onlinepubs/009695399/functions/sysconf.html As well as getrusage()... (even though Haiku has a minimalist version, patches welcome). http://linux.die.net/man/2/getrusage Sure We could emulate procfs, but then we'd have to emulate all of it... (I actually started writing one long ago, but there is not much point, except for <pid>/fd/* maybe.) François.