SIMPOL Documentation

!osinfo()

Prototype

!osinfo( string <ostype>, integer <architecture>)

Return value

.nul

Description

Both parameters must be initialized to the empty string. The first parameter will be filled with the name of the operating system and the second with the architecture of the operating system. Currently these support "windows" and "linux" for the first parameter. The second parameter will currently return "x86" since we only provide a 32-bit implementation. The architecture value does not tell you if you are running on a 64-bit system, but rather for which type of system the program was compiled for. This becomes important when you need to make a call to an external library, since the library must have been compiled for the correct architecture. This information would also affect the parameter and return value entries in any declaration of an external function call.

Parameters

NameDefaultTypeDescription
ostype.nulstring This must be a pre-initalized string object and will contain the operating system for which the SIMPOL runtime system was compiled when the function returns. Currently this will be either "windows" or "linux".
architecture.nulstring This must be a pre-initalized string object and will contain the architecture of the operating system for which the SIMPOL runtime system was compiled when the function returns. Currently this will only be "x86" until we release a 64-bit version.