Overview  Index  Help 
Standard ML Basis Library

PosixBinPrimIO


structure PosixBinPrimIO : OS_PRIM_IO =
struct
  structure PrimIO = BinPrimIO
  structure Vec = Word8Vector
  structure PF = Posix.FileSys
  structure PIO = Posix.IO
  type file_desc = PF.file_desc
  val toFPI
  val announce
  val bufferSzB
  val isRegFile
  val posFns
  val mkReader
      : {fd : file_desc, name : string, initBlkMode : bool} -> PrimIO.reader
  val openRd : string -> PrimIO.reader
  val mkWriter
      : {
          fd : file_desc,
          name : string,
          appendMode : bool,
          initBlkMode : bool,
          chunkSize : int
        } ->
          PrimIO.writer
  val standardMode
  val createFile
  val openWr : string -> PrimIO.writer
  val openApp : string -> PrimIO.writer
end

 
Type detail

file_desc

type file_desc = PF.file_desc

     
Value detail

toFPI

val toFPI


announce

val announce


bufferSzB

val bufferSzB


isRegFile

val isRegFile


posFns

val posFns


mkReader

val mkReader
    : {fd : file_desc, name : string, initBlkMode : bool} -> PrimIO.reader


openRd

val openRd : string -> PrimIO.reader


mkWriter

val mkWriter
    : {
        fd : file_desc,
        name : string,
        appendMode : bool,
        initBlkMode : bool,
        chunkSize : int
      } ->
        PrimIO.writer


standardMode

val standardMode


createFile

val createFile


openWr

val openWr : string -> PrimIO.writer


openApp

val openApp : string -> PrimIO.writer

 


Overview  Index  Help 
Standard ML Basis Library

This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.

Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.

Permission is granted for internet users to make one paper copy for their own personal use. Further hardcopy reproduction is strictly prohibited. Permission to distribute the HTML document electronically on any medium other than the internet must be requested from the copyright holders by contacting the editors. Printed versions of the SML Basis Manual are available from Cambridge University Press. To order, please visit www.cup.org (North America) or www.cup.cam.ac.uk (outside North America).