Import std.os.system
std.os.system
System, what the program knows of the machine it runs on: the platform and architecture it was built for, how many threads can run at once, the memory, and the machine's and user's names.
std/os/system.fb
Types
Platform
enum
Public Enum Platform
The OSes a program is built for.
-
Windows.
-
Linux.
-
macOS.
Arch
enum
Public Enum Arch
The processors a program is built for, each 64-bit.
-
x86-64.
-
AArch64.
System
struct
Public Struct System
System's Static Properties.
-
The OS the program was built for, which it runs on.
-
The processor the program was built for, which it runs on, or emulates.
-
How many threads can run at once: the processors the OS lets the program use, 1 or more.
-
The machine's memory, in bytes.
-
The machine's name on its network, or Null when the OS doesn't say.
-
The name of the user the program runs as, or Null when the OS doesn't say.
Report an issue with this page or with FutureBlitz on GitHub.