(*signature TEXT_IO_GLOBAL = sig val print: string -> unit end*) signature BIN_IO = sig (*include TEXT_IO_GLOBAL*) structure StreamIO: STREAM_IO type vector (* = StreamIO.vector *) type elem (* = StreamIO.elem *) type instream val openIn: string -> instream val closeIn: instream -> unit val input: instream -> vector val input1: instream -> elem option val inputN: instream * int -> vector val inputAll: instream -> vector val canInput: instream * int -> int option val endOfStream: instream -> bool val lookahead: instream -> elem option type outstream val openOut: string -> outstream val openAppend: string -> outstream val output: outstream * vector -> unit val output1: outstream * elem -> unit val flushOut: outstream -> unit val closeOut: outstream -> unit (* val getPosOut: outstream -> StreamIO.out_pos * val setPosOut: outstream * StreamIO.out_pos -> unit *) val mkOutstream: StreamIO.outstream -> outstream val getOutstream: outstream -> StreamIO.outstream val setOutstream: outstream * StreamIO.outstream -> unit end (* signature TEXT_IO_EXTRA = sig include TEXT_IO val newIn: Posix.FileSys.file_desc -> instream val newOut: Posix.FileSys.file_desc -> outstream end *)