Files
RedBear-OS/recipes/libs/glib/source/docs/reference/glib/unix.md
T
vasilito facf0c92e0 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

1.2 KiB

Title: Unix-specific Utilities SPDX-License-Identifier: LGPL-2.1-or-later SPDX-FileCopyrightText: 2011 Colin Walters

Unix-specific Utilities

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.

To use these functions, you must explicitly include the glib-unix.h header.

File Descriptors

  • [func@GLibUnix.open_pipe]
  • [func@GLibUnix.set_fd_nonblocking]

Pipes

The [struct@GLibUnix.Pipe] structure can be used to conveniently open and manipulate a Unix pipe.

The methods for it are all static inline for efficiency. They are:

  • g_unix_pipe_open()
  • g_unix_pipe_get()
  • g_unix_pipe_steal()
  • g_unix_pipe_close()
  • g_unix_pipe_clear()

Signals

  • [func@GLibUnix.signal_add]
  • [func@GLibUnix.signal_add_full]
  • [func@GLibUnix.signal_source_new]

Polling

  • [func@GLibUnix.fd_add]
  • [func@GLibUnix.fd_add_full]
  • [func@GLibUnix.fd_source_new]

User Database

  • [func@GLibUnix.get_passwd_entry]