G-Golf Glib UNIX-specific utilities and integration low level API.
UNIX-specific utilities and integration — pipes, signal handling.
Most of GLib is intended to be portable; in contrast, this set of functions is designed for programs which explicitly target UNIX, or are using it to build higher level abstractions which would be conditionally compiled if the platform matches G_OS_UNIX.
Note: in this section, the fd and condition arguments are [must be] respectively an integer (a ‘valid’ file descriptor) and a list of one or more %g-io-condition flags.
Returns a pointer.
Creates and returns a pointer to a new GSource
to watch for a
particular IO condition on fd.
The source will never close the file descriptor, you must do it yourself.