John Martin wrote: > C. Bergstr?m wrote: >> >> >> 1) Best way to replace /proc/cpuinfo for OpenSolaris? >> >> opencc -v >> opencc WARNING: cannot read /proc/cpuinfo, defaulting to basic 32-bit >> x86. > This code is looking for the plain text processor description, e.g. > "Intel(R) Core(TM) i7". On Solaris this can be fetched with smbios. > I don't know the stability of the interfaces in libsmbios.so.1. I can > investigate this later this week. If you would be so kind I think that may be the cleanest solution.. Otherwise, I see two quick choices.
1) http://svn.mplayerhq.hu/mplayer/trunk/cpuinfo.c?view=markup 2) parse the output from psrinfo and isainfo The problems #1 we'll have to sync it from upstream #2 the compiler then depends on those to be present.. Thanks ./C