GLibUnix – 2.0
Description: Reference for GLibUnix-2.0

### Namespace

# GLibUnix – 2.0

Unix-specific APIs in GLib

Version | 2.85.3
Authors | GLib Development Team
License | LGPL-2.1-or-later
Website | https://www.gtk.org
Source | https://gitlab.gnome.org/GNOME/glib/

#### Build

C headers | `glib-unix.h, glib.h`
pkg-config files | `glib-2.0`

#### Dependencies

GLib—2.0 | The base utility library
| Browse documentation

#### Related libraries

GModule | Portable API for dynamically loading modules
| Browse documentation
GObject | The base type system library
| Browse documentation
GIO | GObject Interfaces and Objects, Networking, IPC, and I/O
| Browse documentation

#### Additional documentation

- Unix-specific Utilities
- Classes Hierarchy

#### Structs

Pipe | 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. since: 2.80

#### Enumerations

PipeEnd | Mnemonic constants for the ends of a Unix pipe. since: 2.80

#### Callbacks

FDSourceFunc | The type of functions to be called when a UNIX fd watch source triggers.

#### Functions

closefrom |
error_quark |
fd_add |
fd_add_full |
fd_source_new |
fdwalk_set_cloexec |
get_passwd_entry |
open_pipe |
set_fd_nonblocking |
signal_add |
signal_add_full |
signal_source_new |