module Termisu::System::Readiness

Overview

poll(2) compatibility for Darwin devices such as /dev/tty. Only readiness is observed: neither select(2) nor this adapter reads input or changes fd flags.

Defined in:

termisu/system/readiness.cr

Class Method Summary

Class Method Detail

def self.poll(fds : Pointer(Poll::Pollfd), count : Poll::NfdsT, timeout_ms : Int32) : Int32 #

[View source]
def self.select_poll(fds : Pointer(Poll::Pollfd), count : Poll::NfdsT, timeout_ms : Int32) : Int32 #

Also exercised directly on other Unix hosts, without emulating Darwin's ABI.


[View source]