OS
structureThe OS structure is a container for a collection of structures for interacting with the operating system's file system, directory paths, processes and I/O subsystem. The types and functions provided the OS substructures are meant to provide a largely operating system independent model for handling these resources.
The structure also declares the SysErr exception used to report operating system error conditions.
signature OS
structure OS
: OS
eqtype syserror
exception SysErr of (string * syserror option)
val errorMsg : syserror -> string
val errorName : syserror -> string
val syserror : string -> syserror option
structure FileSys : OS_FILE_SYS
structure Path : OS_PATH
structure Process : OS_PROCESS
structure IO : OS_IO
eqtype syserror
exception SysErr
errorMsg err
SysErr(s,SOME e)
, then we have errorMsg e = s
.
errorName err
syserror s
SOME e = syserror(errorName e)
structure FileSys
structure Path
structure Process
structure IO
OS.FileSys, OS.Path, OS.Process, OS.IO
Last Modified April 19, 1996
Comments to John Reppy.
Copyright © 1997 Bell Labs, Lucent Technologies