Node: Operating System Definitions, Previous: Command Line, Up: Operating System



Operating System Definitions

GET-DECODED-TIME () Function
Package:LISP

Returns the current time in decoded time format. Returns nine values: second, minute, hour, date, month, year, day-of-week, daylight-saving-time-p, and time-zone.

HOST-NAMESTRING (pathname) Function
Package:LISP

Returns the host part of PATHNAME as a string.

RENAME-FILE (file new-name) Function
Package:LISP

Renames the file FILE to NEW-NAME. FILE may be a string, a pathname, or a stream.

FILE-AUTHOR (file) Function
Package:LISP

Returns the author name of the specified file, as a string. FILE may be a string or a stream

PATHNAME-HOST (pathname) Function
Package:LISP

Returns the host slot of PATHNAME.

FILE-POSITION (file-stream &optional position) Function
Package:LISP

Sets the file pointer of the specified file to POSITION, if POSITION is given. Otherwise, returns the current file position of the specified file.

DECODE-UNIVERSAL-TIME (universal-time &optional (timezone -9)) Function
Package:LISP

Converts UNIVERSAL-TIME into a decoded time at the TIMEZONE. Returns nine values: second, minute, hour, date, month (1 - 12), year, day-of-week (0 - 6), daylight-saving-time-p, and time-zone. TIMEZONE in GCL defaults to 6, the time zone of Austin, Texas.

USER-HOMEDIR-PATHNAME (&optional host) Function
Package:LISP

Returns the home directory of the logged in user as a pathname. HOST is ignored.

*MODULES* Variable
Package:LISP A list of names of the modules that have been loaded into GCL.

SHORT-SITE-NAME () Function
Package:LISP

Returns a string that identifies the physical location of the current GCL.

DIRECTORY (name) Function
Package:LISP

Returns a list of files that match NAME. NAME may be a string, a pathname, or a file stream.

SOFTWARE-VERSION () Function
Package:LISP

Returns a string that identifies the software version of the software under which GCL is currently running.

INTERNAL-TIME-UNITS-PER-SECOND Constant
Package:LISP The number of internal time units that fit into a second.

ENOUGH-NAMESTRING (pathname &optional (defaults *default-pathname-defaults*)) Function
Package:LISP

Returns a string which uniquely identifies PATHNAME with respect to DEFAULTS.

REQUIRE (module-name &optional (pathname)) Function
Package:LISP

If the specified module is not present, then loads the appropriate file(s). PATHNAME may be a single pathname or it may be a list of pathnames.

ENCODE-UNIVERSAL-TIME (second minute hour date month year &optional (timezone )) Function
Package:LISP

Does the inverse operation of DECODE-UNIVERSAL-TIME.

LISP-IMPLEMENTATION-VERSION () Function
Package:LISP

Returns a string that tells you when the current GCL implementation is brought up.

MACHINE-INSTANCE () Function
Package:LISP

Returns a string that identifies the machine instance of the machine on which GCL is currently running.

ROOM (&optional (x t)) Function
Package:LISP

Displays information about storage allocation in the following format.

  • for each type class
    • the number of pages so-far allocated for the type class
    • the maximum number of pages for the type class
    • the percentage of used cells to cells so-far allocated
    • the number of times the garbage collector has been called to collect cells of the type class
    • the implementation types that belongs to the type class
  • the number of pages actually allocated for contiguous blocks
  • the maximum number of pages for contiguous blocks
  • the number of times the garbage collector has been called to collect contiguous blocks
  • the number of pages in the hole
  • the maximum number of pages for relocatable blocks
  • the number of times the garbage collector has been called to collect relocatable blocks
  • the total number of pages allocated for cells
  • the total number of pages allocated
  • the number of available pages
  • the number of pages GCL can use.

    The number of times the garbage collector has been called is not shown, if the number is zero. The optional X is ignored.

GET-UNIVERSAL-TIME () Function
Package:LISP

Returns the current time as a single integer in universal time format.

GET-INTERNAL-RUN-TIME () Function
Package:LISP

Returns the run time in the internal time format. This is useful for finding CPU usage. If the operating system allows, a second value containing CPU usage of child processes is returned.

*DEFAULT-PATHNAME-DEFAULTS* Variable
Package:LISP The default pathname-defaults pathname.

LONG-SITE-NAME () Function
Package:LISP

Returns a string that identifies the physical location of the current GCL.

DELETE-FILE (file) Function
Package:LISP Deletes FILE.

GET-INTERNAL-REAL-TIME () Function
Package:LISP

Returns the real time in the internal time format. This is useful for finding elapsed time.

MACHINE-TYPE () Function
Package:LISP

Returns a string that identifies the machine type of the machine on which GCL is currently running.

TIME Macro
Package:LISP

Syntax:

          (time form)
          

Evaluates FORM and outputs timing statistics on *TRACE-OUTPUT*.

SOFTWARE-TYPE () Function
Package:LISP

Returns a string that identifies the software type of the software under which GCL is currently running.

LISP-IMPLEMENTATION-TYPE () Function
Package:LISP

Returns a string that tells you that you are using a version of GCL.

SLEEP (n) Function
Package:LISP

This function causes execution to be suspended for N seconds. N may be any non-negative, non-complex number.