1 (* Copyright (C) 2002-2007 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
4 * MLton is released under a BSD-style license.
5 * See the file MLton-LICENSE for details.
8 signature MLTON_IO_ARG =
13 val inFd: instream -> Posix.IO.file_desc
14 val newIn: Posix.IO.file_desc * string -> instream
15 val newOut: Posix.IO.file_desc * string -> outstream
16 val outFd: outstream -> Posix.IO.file_desc
23 (* mkstemp s creates and opens a new temp file with prefix s, returning
24 * the name of the temp file and the outstream to write to it.
26 val mkstemp: string -> string * outstream
27 (* mkstemps is like mkstemp, except it has both a prefix and suffix. *)
28 val mkstemps: {prefix: string, suffix: string} -> string * outstream
29 (* adds a suitable system or user specific prefix (dir) for temp files *)
30 val tempPrefix : string -> string