## `sysname` -- the name of the operating system

#### Introduction

`sysname``()` returns information on the operating system on which MuPAD is currently executed.

#### Call(s)

`sysname( <Arch>)`

#### Options

`Arch` | - | makes `sysname` return more specific information on the architecture

#### Returns

a character string.

#### Related Functions

`system`

#### Details

- `sysname``()` 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 1

On an MS-DOS or MS-Windows operating system (Microsoft), `sysname` returns the following values:

    >> sysname(), sysname(Arch)

                                  "MSDOS", "MSDOS"

#### Example 2

On 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 3

On a Solaris operating system (SunOS, Sun Microsystems), `sysname` returns the following values:

    >> sysname(), sysname(Arch)

                                 "UNIX", "Solaris"

#### Example 4

On an Apple Macintosh operating system, `sysname` returns the following values:

    >> sysname(), sysname(Arch)

                                 "MACOS", "MACOS"

#### Changes

- no changes

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000