Go to the source code of this file.
|
| 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. Useful for logging, error messages, or user output.
|
| |
| integer function, public | get_os_type () |
| | Determine the current operating system type Returns one of the OS_* constants. Detection is performed only on the first call and cached in threadprivate storage for subsequent fast access.
|
| |
| 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.
|
| |
|
| 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 |
| | Microsoft Windows — explicitly 32-bit (x86) architecture.
|
| |