sysname -- the name of the
operating system
Introductionsysname() returns information on the
operating system on which MuPAD is currently executed.
Call(s)sysname( <Arch>)
OptionsArch |
- | makes sysname return more specific
information on the architecture |
Returns
Related
Functions
Detailssysname() returns one of the following
strings:
"UNIX" for UNIX and Linux operating systems,"MSDOS" for MSDOS operating systems including
MS-Windows,"MACOS" for Apple Macintosh operating systems.sysname(Arch)
returns a more specific name of the operating system as a character
string. On some architectures, this information is not available and
the same string is returned as by
sysname().sysname is a function of the system kernel.
Example
1On an MS-DOS or MS-Windows operating system (Microsoft),
sysname returns the following values:
>> sysname(), sysname(Arch)
"MSDOS", "MSDOS"
Example
2On a current Linux operating system such as Linux 2.0
using libc-6.0, sysname returns the following values:
>> sysname(), sysname(Arch)
"UNIX", "linux"
Example
3On a Solaris operating system (SunOS, Sun Microsystems),
sysname returns the following values:
>> sysname(), sysname(Arch)
"UNIX", "Solaris"
Example
4On an Apple Macintosh operating system,
sysname returns the following values:
>> sysname(), sysname(Arch)
"MACOS", "MACOS"