Method System.uname()
- Method
uname
mapping(string:string) uname()- Description
Get operating system information.
- Returns
The resulting mapping contains the following fields:
"sysname":stringOperating system name.
"nodename":stringHostname.
"release":stringOperating system release.
"version":stringOperating system version.
"machine":stringHardware architecture.
"architecture":stringBasic instruction set architecture.
"isalist":stringList of upported instruction set architectures. Usually space-separated.
"platform":stringSpecific model of hardware.
"hw provider":stringManufacturer of the hardware.
"hw serial":stringSerial number of the hardware.
"srpc domain":stringSecure RPC domain.
- Note
This function only exists on systems that have the uname(2) or sysinfo(2) system calls.
Only the first five elements are always available.