GLib.Unix – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
Unix
SignalSource
open_pipe
set_fd_nonblocking
signal_add
GLib.Unix
Description:
Content:
Classes:
SignalSource
-
Functions:
public
uint
signal_add
(
int
signum,
owned
SourceFunc
handler,
int
priority =
DEFAULT
)
A convenience function for
SignalSource
, which attaches to the default
MainContext
.
public
bool
open_pipe
(
int
fds,
int
flags)
throws
Error
Similar to the UNIX
pipe
call, but on modern systems like Linux uses the
pipe2
system call, which atomically creates a pipe with the configured flags.
public
bool
set_fd_nonblocking
(
int
fd,
bool
nonblock)
throws
Error
Control the non-blocking state of the given file descriptor, according to
nonblock
.