| Standard ML Basis Library |
structure OS_FileSys : OS_FILE_SYS =
struct
open A
structure P_FSys = Posix.FileSys
structure P = OS_Path
structure A : sig datatype access_mode = A_READ | A_WRITE | A_EXEC end =
Posix.FileSys
type dirstream = P_FSys.dirstream
datatype file_id = FID of {dev : SysWord.word, ino : SysWord.word}
val sysWordToWord
val openDir : string -> dirstream
val readDir : dirstream -> string option
val rewindDir : dirstream -> unit
val closeDir : dirstream -> unit
val chDir : string -> unit
val getDir : unit -> string
val mkDir : string -> unit
val rmDir : string -> unit
val isDir : string -> bool
val isLink : string -> bool
val readLink : string -> string
val maxLinks
val fullPath : string -> string
val realPath : string -> string
val fileSize : string -> Position.int
val modTime : string -> Time.time
val setTime : string * Time.time option -> unit
val remove : string -> unit
val rename : {old : string, new : string} -> unit
val access : string * access_mode list -> bool
val tmpName : unit -> string
val fileId : string -> file_id
val hash : file_id -> word
val compare : file_id * file_id -> order
end
Type detail |
---|
type dirstream = P_FSys.dirstream
Datatype detail |
---|
datatype file_id = FID of {dev : SysWord.word, ino : SysWord.word}
DataConstructor detail |
---|
constructor FID : {dev : SysWord.word, ino : SysWord.word} -> file_id
Value detail |
---|
val sysWordToWord
val openDir : string -> dirstream
val readDir : dirstream -> string option
val rewindDir : dirstream -> unit
val closeDir : dirstream -> unit
val isDir : string -> bool
val isLink : string -> bool
val readLink : string -> string
val maxLinks
val fullPath : string -> string
val realPath : string -> string
val fileSize : string -> Position.int
val modTime : string -> Time.time
val setTime : string * Time.time option -> unit
val rename : {old : string, new : string} -> unit
val access : string * access_mode list -> bool
val fileId : string -> file_id
val compare : file_id * file_id -> order
| Standard ML Basis Library |
This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.
Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.
Permission is granted for internet users to make one paper copy for their
own personal use. Further hardcopy reproduction is strictly prohibited.
Permission to distribute the HTML document electronically on any medium
other than the internet must be requested from the copyright holders by
contacting the editors.
Printed versions of the SML Basis Manual are available from Cambridge
University Press.
To order, please visit
www.cup.org (North America) or
www.cup.cam.ac.uk (outside North America). |