For Development HEAD DRAFTSearch (procedure/syntax/module):

11.23 srfi.112 - Environment inquiry

Module: srfi.112

This srfi provides a portable way to obtain runtime information.

Function: implementation-name

[SRFI-112]{srfi.112} The name of the implementation. Returns a string "Gauche".

Function: implementation-version

[SRFI-112]{srfi.112} Returns a string of Gauche’s version. The same as gauche-version (see Environment inquiry).

Function: cpu-architecture

[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).

Function: machine-name

[SRFI-112]{srfi.112} Returns the host name. Same as the nodename field of the return value of sys-uname. (see System inquiry).

Function: os-name

[SRFI-112]{srfi.112} Returns the OS name. Same as the sysname field of the return value of sys-uname.

Function: os-version

[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"


For Development HEAD DRAFTSearch (procedure/syntax/module):
DRAFT