package extunix

  1. Overview
  2. Docs
Collection of thin bindings to various low-level system API

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-extunix-0.3.2.tar.gz
md5=c2706a62e14f64dbc347d986a38d7b1c
sha256=3ad5c6bfef5d87273f7ba91bf14c4cebee9171439cfacdb06b294427cf034bed
sha512=cccc4808a901284c26e6b268b8536d5dbfe24ccc83bf090fe38e20698647f054573fdfcd1c5709d3aedbe49c6bd45927b317e8b94bb1e8d91d6c22765915bbcb

doc/extunix/ExtUnixSpecific/Ioctl/index.html

Module ExtUnixSpecific.Ioctl

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

  • returns

    the list of interfaces and corresponding addresses (FIXME max 32) (may change)

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).

OCaml

Innovation. Community. Security.