Io module

sys_peek

procedureextensionexperimental2 overloadssince 0.31.0Source

Whether a sys_recv would not wait, without taking anything: 0 if a byte, the end of the stream or an error is there (the receive reports which), -E_AGAIN if not.

sys_peek :: (fd: s64) -> s64

Parameters

fd: s64

Returns

s64
sys_peek :: (fd: s64) -> s64

Parameters

fd: s64

Returns

s64

See also