<?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="en" xml:id="getos">
    <refnamediv>
        <refname>getos</refname>
        <refpurpose>
            return Operating System name and version
        </refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>
            [OS, Version] = getos()
        </synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Description</title>
        <para>
            <literal>[OS,Version]=getos()</literal> returns Operating System name and version.
        </para>
    </refsection>
    <refsection>
        <title>Examples</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>
