Flavor for usual OS on unusal processor
When we have Linux on PowerPC, or Solaris on Intel, etc. using a flavor
of Linux or SunOS will be wrong, because the binaries won't be compatable.
So we've added a list of strings to match for each platform in the machine type
(uname -m) string, which is the known, default type. If we don't see that type,
then it is an unfamiliar CPU type for that flavor, and we add the machine type.
So for Linux on i386 or i686 we get "Linux", but for Linux on ppc, we get "Linuxppc";
and for Solaris on sun4u we get "SunOS", but for Solaris on i386 we get "SunOSi386".
#1 Updated by Marc Mengel almost 11 years ago
- % Done changed from 0 to 80
Put a rough draft of the changes for this in r2629 in upsuname.c (there are some -. changes in some of the other files, didn't commit them separately (sigh))...
We have a table of known OS names and machine name substrings to match.
This needs more testing, esp. on Solaris and possibly Irix if we have any left anywhere.