The following procedures accept an object as returned by uname
and return a selected component.
utsname:sysname
utsname:nodename
utsname:release
utsname:version
utsname:machine
Note that most varieties of Unix are considered to be simply "UNIX".
That is because when a program depends on features that are not present
on every operating system, it is usually better to test for the presence
or absence of that specific feature. The return value of
software-type
should only be used for this purpose when there is
no other easy or unambiguous way of detecting such features.
Go to the first, previous, next, last section, table of contents.