| Standard ML Basis Library |
structure OS_IO : OS_IO =
struct
structure Kind =
struct
val file : iodesc_kind
val dir : iodesc_kind
val symlink : iodesc_kind
val tty : iodesc_kind
val pipe : iodesc_kind
val socket : iodesc_kind
val device : iodesc_kind
end
type iodesc = OS.IO.iodesc
type poll_flags = {rd : bool, wr : bool, pri : bool}
datatype iodesc_kind = K of string
datatype poll_desc = PollDesc of iodesc * poll_flags
datatype poll_info = PollInfo of iodesc * poll_flags
exception Poll
val hash : iodesc -> word
val compare : iodesc * iodesc -> order
val kind : iodesc -> iodesc_kind
val pollDesc : iodesc -> poll_desc option
val pollToIODesc : poll_desc -> iodesc
val pollIn : poll_desc -> poll_desc
val pollOut : poll_desc -> poll_desc
val pollPri : poll_desc -> poll_desc
val poll : poll_desc list * Time.time option -> poll_info list
val isIn : poll_info -> bool
val isOut : poll_info -> bool
val isPri : poll_info -> bool
val infoToPollDesc : poll_info -> poll_desc
end
Type detail |
---|
type iodesc = OS.IO.iodesc
type poll_flags = {rd : bool, wr : bool, pri : bool}
Datatype detail |
---|
datatype iodesc_kind = K of string
datatype poll_desc = PollDesc of iodesc * poll_flags
datatype poll_info = PollInfo of iodesc * poll_flags
DataConstructor detail |
---|
constructor K : string -> iodesc_kind
constructor PollDesc : iodesc * poll_flags -> poll_desc
constructor PollInfo : iodesc * poll_flags -> poll_info
Value detail |
---|
val compare : iodesc * iodesc -> order
val kind : iodesc -> iodesc_kind
val pollDesc : iodesc -> poll_desc option
val pollToIODesc : poll_desc -> iodesc
val pollIn : poll_desc -> poll_desc
val pollOut : poll_desc -> poll_desc
val pollPri : poll_desc -> poll_desc
val poll : poll_desc list * Time.time option -> poll_info list
val isIn : poll_info -> bool
val isOut : poll_info -> bool
val isPri : poll_info -> bool
val infoToPollDesc : poll_info -> poll_desc
Exception detail |
---|
exception Poll
| 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). |