Node: System Informations, Next: Program Arguments Parsing, Previous: Environment, Up: System Procedures
| running-os | STKLOS Procedure |
Returns the name of the underlying Operating System which is running
the program.
The value returned by runnin-os is a symbol. For now, this procedure
returns either unix or windows.
|
| hostname | STKLOS Procedure |
| Return the host name of the current processor as a string. |
| argc | STKLOS Procedure |
| Returns the number of argument present on the command line |
| argv | STKLOS Procedure |
| Returns a list of the arguments given on the shell command line. The interpreter options are no included in the result |
| program-name | STKLOS Procedure |
| Returns the invocation name of the current program as a string. |
| version | STKLOS Procedure |
| Returns a string identifying the current version of the system. A version is constituted of three numbers separated by a point: the version, the release and sub-release numbers. |
| machine-type | STKLOS Procedure |
Returns a string identifying the kind of machine which is running the
program. The result string is of the form
[os-name]-[os-version]-[processor-type].
|
| clock | STKLOS Procedure |
| Returns an approximation of processor time, in milliseconds, used so far by the program. |
| date | STKLOS Procedure |
| Returns the current date in a string |
| current-time | STKLOS Procedure |
| Returns the time since the Epoch (that is 00:00:00 UTC, January 1, 1970), measured in seconds. |
| full-current-time | STKLOS Procedure |
Returns the time of the day as a pair where
|
| seconds->date sec | STKLOS Procedure |
Returns a keyword list for the date given by sec (a date based on the
Epoch). The keyed values returned are
Example: (seconds->date (current-time)) => (:second 49 :minute 32 :hour 23
:day 2 :month 4 :year 2002
:week-day 2 :year-day 91
:dst #t :time-zone-offset -3600)
|
| time expr1 expr2 ... | STKLOS Syntax |
Evaluates the expressions expr1, expr2, ... and returns the
result of the last expression. This form prints also the time spent
for this evaluation on the current error port.
|
| getpid | STKLOS Procedure |
| Returns the system process number of the current program (i.e. the Unix pid) as an integer. |