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

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

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

Module: srfi.112

このsrfiは実行時の情報を問い合わせるポータブルな方法を提供します。

Function: implementation-name

[SRFI-112]{srfi.112} 実装の名前。文字列"Gauche"が返ります。

Function: implementation-version

[SRFI-112]{srfi.112} Gaucheのバージョンを示す文字列が返ります。 gauche-versionと同じです (環境の問い合わせ参照)。

Function: cpu-architecture

[SRFI-112]{srfi.112} CPUアーキテクチャの情報("x86_64"など)を文字列で返します。 sys-unamemachineフィールドと同じです(システムへの問い合わせ参照)。

Function: machine-name

[SRFI-112]{srfi.112} ホスト名を返します。sys-unamenodenameフィールドと同じです (システムへの問い合わせ参照)。

Function: os-name

[SRFI-112]{srfi.112} OSの名前を返します。sys-unamesysnameフィールドと同じです (システムへの問い合わせ参照)。

Function: os-version

[SRFI-112]{srfi.112} OSのバージョンを返します。sys-unamereleaseフィールドと同じです (システムへの問い合わせ参照)。

出力の例を示します。あなたの実行環境では多分違った値になるでしょう。

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]


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