<?xml version="1.0" encoding="UTF-8"?>
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="getos">
    <refnamediv>
        <refname>getos</refname>
        <refpurpose>オペレーティングシステムの名前とバージョンを返す</refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>呼出し手順</title>
        <synopsis>
            [OS, Version] = getos()
        </synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>説明</title>
        <para>
            <literal>[OS,Version]=getos()</literal>は,
            オペレーティングシステムの名前とバージョンを返します.
        </para>
    </refsection>
    <refsection>
        <title>例</title>
        <programlisting role="example"><![CDATA[
OS = getos()
[OS, version] = getos()
     ]]></programlisting>
        <screen><![CDATA[
--> OS = getos()
 OS  =
  "Windows"

--> [OS, version] = getos()
 OS  =
  "Windows"

 version  =
  "8 x64"
]]></screen>
        <programlisting role="example"><![CDATA[
if (getos() == "Windows") then
   disp("Scilab on Windows");
end
if (getos() == "Linux") then
   disp("Scilab on Linux");
end
if (getos() == "SunOS") then
   disp("Scilab on Solaris");
end
if (getos() == "Darwin") then
   disp("Scilab on MacOs");
end
     ]]></programlisting>
    </refsection>
</refentry>
