| 1 |
(* Copyright (C) 2022 Matthew Fluet. |
| 2 |
* Copyright (C) 2002-2007 Henry Cejtin, Matthew Fluet, Suresh |
| 3 |
* Jagannathan, and Stephen Weeks. |
| 4 |
* |
| 5 |
* MLton is released under a HPND-style license. |
| 6 |
* See the file MLton-LICENSE for details. |
| 7 |
*) |
| 8 |
|
| 9 |
signature MLTON_IO = |
| 10 |
sig |
| 11 |
type outstream |
| 12 |
|
| 13 |
(* mkstemp s creates and opens a new temp file with prefix s, returning |
| 14 |
* the name of the temp file and the outstream to write to it. |
| 15 |
*) |
| 16 |
val mkstemp: string -> string * outstream |
| 17 |
(* mkstemps is like mkstemp, except it has both a prefix and suffix. *) |
| 18 |
val mkstemps: {prefix: string, suffix: string} -> string * outstream |
| 19 |
(* adds a suitable system or user specific prefix (dir) for temp files *) |
| 20 |
val tempPrefix: string -> string |
| 21 |
end |