Library
Module
Module type
Parameter
Class
Class type
Control the underlying device parameters of special files
val siocgifconf : sock:Unix.file_descr -> (string * string) list
siocgifconf sock
, where sock
is any socket, e.g. socket PF_INET SOCK_DGRAM 0
val crtscts : Unix.file_descr -> int
Enable RTS/CTS (hardware) flow control. See CRTSCTS in tcsetattr(3). FIXME this is likely to disappear when separate interface for tcsetattr
and tcgetattr
gets implemented
val tiocmget : Unix.file_descr -> int
Get the status of modem bits. See TIOCMGET in tty_ioctl(4).
val tiocmset : Unix.file_descr -> int -> unit
Set the status of modem bits. See TIOCMSET in tty_ioctl(4).
val tiocmbic : Unix.file_descr -> int -> unit
Clear the indicated modem bits. See TIOCMBIC in tty_ioctl(4).
val tiocmbis : Unix.file_descr -> int -> unit
Set the indicated modem bits. See TIOCMBIS in tty_ioctl(4).
val tiocgwinsz : Unix.file_descr -> int * int * int * int
tiocgwinsz fd
returns a tuple (cols, rows, xpixel, ypixel)
representing the size of the character device. cols
is the number of character columns, rows
is the number of character rows, xpixel
is width of the device in pixels, and ypixel
is the height of the device in pixels.