Go to the source code of this file.
Functions/Subroutines | |
| pure character(:) function, allocatable, public | os_name (os) |
| Return a human-readable string describing the OS type flag Converts any of the OS_* integer constants into its corresponding name. Accepted values include: | |
| integer function, public | get_os_type () |
| Determine the current operating system type Returns one of the OS_* constants. | |
| logical function, public | os_is_unix (os) |
| Return .true. if the current (or supplied) OS is Unix-like Convenience wrapper that returns .true. for any non-Windows platform. Useful for writing portable code that needs different handling on Windows. | |
Variables | |
| integer, parameter, public | os_unknown = 0 |
| Unknown / undetected operating system. | |
| integer, parameter, public | os_linux = 1 |
| Linux (any distribution, including GNU/Linux). | |
| integer, parameter, public | os_macos = 2 |
| macOS (Darwin-based Apple operating system) | |
| integer, parameter, public | os_windows = 3 |
| Microsoft Windows (native, 32-bit or 64-bit). | |
| integer, parameter, public | os_cygwin = 4 |
| Cygwin POSIX environment on Windows. | |
| integer, parameter, public | os_solaris = 5 |
| Oracle Solaris / OpenSolaris derivatives. | |
| integer, parameter, public | os_freebsd = 6 |
| FreeBSD and its direct derivatives. | |
| integer, parameter, public | os_openbsd = 7 |
| OpenBSD. | |
| integer, parameter, public | os_windowsx86 = 8 |
| Native Microsoft Windows running on 32-bit x86 architecture. | |