The unixplatform function

Description

The unixplatform function returns a value of type boolean, which indicates whether the program is running on a UNIX-like operating system (currently Linux, FreeBSD, Solaris/x86, or Solaris/Sparc). If the program is running on a UNIX-like operating system the value true is returned, otherwise the value false is returned.

This function doesn't actually test the operating system the program is running on, instead it tests the edition of the interpreter that is running the program. It is assumed for example that the Linux version of the interpreter is running under Linux, and the Windows version of the interpreter is running under Windows.

Parameter

None.

Portability

Operating Systems: All
Standard Pascal: No