UNIX-specific utilities and integration

G-Golf Glib UNIX-specific utilities and integration low level API.
UNIX-specific utilities and integration — pipes, signal handling.

Procedures

g-unix-fd-source-new

Description

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.

Procedures

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.

Procedure: g-unix-fd-source-new fd condition

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.