srfi.112
- Environment inquiry ¶This srfi provides a portable way to obtain runtime information.
[SRFI-112]{srfi.112
}
The name of the implementation.
Returns a string "Gauche"
.
[SRFI-112]{srfi.112
}
Returns a string of Gauche’s version. The same as gauche-version
(see Environment inquiry).
[SRFI-112]{srfi.112
}
Returns a string of CPU architecture info, such as "x86_64"
.
Same as the machine
field of the return value of sys-uname
(see System inquiry).
[SRFI-112]{srfi.112
}
Returns the host name. Same as the nodename
field of
the return value of sys-uname
.
(see System inquiry).
[SRFI-112]{srfi.112
}
Returns the OS name. Same as the sysname
field
of the return value of sys-uname
.
[SRFI-112]{srfi.112
}
Returns the OS version. Same as the release
field
of the return value of sys-uname
.
Here’s an example of output. It is likely to differ on your environment.
gosh> (implementation-name) "Gauche" gosh> (implementation-version) "0.9.5" gosh> (cpu-architecture) "x86_64" gosh> (machine-name) "scherzo" gosh> (os-name) "Linux" gosh> (os-version) "3.2.0-89-generic"