Node: System Informations, Next: , Previous: Environment, Up: System Procedures



System Informations

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
  • the first element is the time since the Epoch (that is 00:00:00 UTC, January 1, 1970), measured in seconds.
  • the second element is the number of microseconds in the given second.

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
  • second : 0 to 59 (but can be up to 61 to allow for leap seconds)
  • minute : 0 to 59
  • hour : 0 to 23
  • day : 1 to 31
  • month : 1 to 12
  • year : e.g., 2002
  • week-day : 0 (Sunday) to 6 (Saturday)
  • year-day : 0 to 365 (365 in leap years)
  • dst? : #t (daylight savings time) or #f
  • time-zone-offset : the difference between Coordinated Universal Time (UTC) and local standard time in seconds.

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.