GUnixPipe

A Unix pipe. The advantage of this type over int[2] is that it can be closed automatically when it goes out of scope, using g_auto(GUnixPipe), on compilers that support that feature.

struct GUnixPipe {}

Members

Variables

fds
int[2] fds;

A pair of file descriptors, each negative if closed or not yet opened. The file descriptor with index G_UNIX_PIPE_END_READ is readable. The file descriptor with index G_UNIX_PIPE_END_WRITE is writable.