For Gauche 0.9.5


Next: , Previous: , Up: ライブラリモジュール - SRFI   [Contents][Index]

11.20 srfi-112 - 実行環境の問い合わせ

Module: srfi-112

This srfi provides a portable way to obtain runtime information.

Function: implementation-name

[SRFI-112] Returns a string "Gauche".

Function: implementation-version

[SRFI-112] Returns a string of Gauche’s version. The same as gauche-version (see 環境の問い合わせ).

Function: cpu-architecture

[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 システムへの問い合わせ).

Function: machine-name

[SRFI-112] Returns the host name. Same as the nodename field of the return value of sys-uname. (see システムへの問い合わせ).

Function: os-name

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

Function: os-version

[SRFI-112] Returns the OS version. Same as the release field of the return value of sys-uname.

Here’s an example of output:

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"

Next: , Previous: , Up: ライブラリモジュール - SRFI   [Contents][Index]