Import Upstream version 20180207
[hcoop/debian/mlton.git] / lib / mlton / basic / file-desc.sig
1 (* Copyright (C) 1999-2005 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 *
4 * MLton is released under a BSD-style license.
5 * See the file MLton-LICENSE for details.
6 *)
7
8 signature FILE_DESC =
9 sig
10 type t = Posix.FileSys.file_desc
11
12 val close: t -> unit
13 val dup: t -> t
14 val dup2: {old: t, new: t} -> unit
15 val fluidLet: t * t * (unit -> 'a) -> 'a
16 val layout: t -> Layout.t
17 val move: {from: t, to: t} -> unit
18 val pipe: unit -> {infd: t, outfd: t}
19 val stderr: t
20 val stdin: t
21 val stdout: t
22 end