import public Data.C.Ptr
import public System.Linux.Signalfd.Flags
import public System.Linux.Signalfd.Struct
import public System.Posix.File
import public System.Posix.Signalsignalfd_ : Has Errno es => EIO1 f => SigsetT -> SignalfdFlags -> f es SignalfdOpens a new `signalfd` file descriptor for observing the
signals specified in the given `SigsetT`.
Notes:
* Usually, the signals in `set` should first be blocked via `sigprocmask`.
* A `signalfd` should be closed using `close` just like other file
descriptors.
* In general, use `readSignalfd` instead of the `read` functions
from `System.Posix.File` to read from a `signalfd`.
signalfd : Has Errno es => EIO1 f => List Signal -> SignalfdFlags -> f es SignalfdConvenience alias for `signalfd_`.
readSignalfd : Has Errno es => EIO1 f => Signalfd -> Nat -> f es (List Siginfo)Reads data from a `signalfd` into a pre-allocated array.
Note: This will overwrite the data stored in `arr` and the
result is a wrapper around the same pointer.