signature MLTON_IO =
sig
type instream
type outstream
val inFd: instream -> Posix.IO.file_desc
val mkstemp: string -> string * outstream
val mkstemps: {prefix: string, suffix: string} -> string * outstream
val newIn: Posix.IO.file_desc * string -> instream
val newOut: Posix.IO.file_desc * string -> outstream
val outFd: outstream -> Posix.IO.file_desc
val tempPrefix: string -> string
end
-
inFd insreturns the file descriptor corresponding to
ins. -
mkstemp slike the C
mkstempfunction, generates and open a temporary file with prefixs. -
mkstemps {prefix, suffix}like
mkstemp, except it has both a prefix and suffix. -
newIn (fd, name)creates a new instream from file descriptor
fd, withnameused in anyIoexceptions later raised. -
newOut (fd, name)creates a new outstream from file descriptor
fd, withnameused in anyIoexceptions later raised. -
outFd outreturns the file descriptor corresponding to
out. -
tempPrefix sadds a suitable system or user specific prefix (directory) for temp files.