mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-08 22:50:06 +02:00
.gitlab-ci
.reuse
LICENSES
docs
reference
gio
girepository
glib
Sorted_binary_tree_breadth-first_traversal-dark.svg
Sorted_binary_tree_breadth-first_traversal.svg
Sorted_binary_tree_inorder-dark.svg
Sorted_binary_tree_inorder.svg
Sorted_binary_tree_postorder-dark.svg
Sorted_binary_tree_postorder.svg
Sorted_binary_tree_preorder-dark.svg
Sorted_binary_tree_preorder.svg
atomic.md
auto-cleanup.md
base64.md
building.md
character-set.md
checked-math.md
compiling.md
conversion-macros.md
cross-compiling.md
data-structures.md
datalist-and-dataset.md
error-reporting.md
file-name-encodings.png
file-name-encodings.sxd
file-utils.md
glib-gettextize.rst
glib-unix.toml.in
glib-win32.toml.in
glib.toml.in
goption.md
gtester-report.rst
gtester.rst
gvariant-byte-boundaries.svg
gvariant-format-strings.md
gvariant-integer-and-string-structure.svg
gvariant-integer-array.svg
gvariant-specification-1.0.rst
gvariant-string-array.svg
gvariant-text-format.md
host-utils.md
i18n.md
logging.md
macros.md
main-loop.md
mainloop-states.eps
mainloop-states.fig
mainloop-states.gif
mainloop-states.png
markup.md
memory-slices.md
memory.md
meson.build
misc-utils.md
numerical.md
programming.md
random.md
reference-counting.md
resources.md
running.md
shell.md
spawn.md
string-utils.md
testing.md
threads-deprecated.md
threads.md
types.md
unicode.md
unix.md
uuid.md
version.md
warnings.md
windows.md
gmodule
gobject
AUTHORS
COPYING
NEWS
meson.build
urlmap.js
CODEOWNERS
backports.md
issue-and-merge-request-management.md
macros.md
meson-version.md
rationales.md
releasing.md
roadmap.md
supported-platforms.md
testing.md
toolchain-requirements.md
win32-build.md
fuzzing
gio
girepository
glib
gmodule
gobject
gthread
m4macros
po
subprojects
tests
tools
.clang-format
.dir-locals.el
.editorconfig
.gitignore
.gitlab-ci.yml
.gitmodules
.lcovrc
CODE_OF_CONDUCT.md
CONTRIBUTING.md
COPYING
INSTALL.md
NEWS
README.md
SECURITY.md
glib.doap
meson.build
meson.options
Move it to a separate page, with a massive great list of all the misc utils. Not a great documentation page, but equivalent to what we had before, and it can be improved in future. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3037
114 lines
2.4 KiB
Markdown
114 lines
2.4 KiB
Markdown
Title: Miscellaneous Utilities
|
|
SPDX-License-Identifier: LGPL-2.1-or-later
|
|
SPDX-FileCopyrightText: 2000 Red Hat, Inc.
|
|
|
|
# Miscellaneous Utilities
|
|
|
|
These are portable utility functions.
|
|
|
|
## Application Name and Environment
|
|
|
|
* [func@GLib.get_application_name]
|
|
* [func@GLib.set_application_name]
|
|
* [func@GLib.get_prgname]
|
|
* [func@GLib.set_prgname]
|
|
* [func@GLib.get_environ]
|
|
* [func@GLib.environ_getenv]
|
|
* [func@GLib.environ_setenv]
|
|
* [func@GLib.environ_unsetenv]
|
|
* [func@GLib.getenv]
|
|
* [func@GLib.setenv]
|
|
* [func@GLib.unsetenv]
|
|
* [func@GLib.listenv]
|
|
* [func@GLib.get_user_name]
|
|
* [func@GLib.get_real_name]
|
|
|
|
## System Directories
|
|
|
|
* [func@GLib.get_user_cache_dir]
|
|
* [func@GLib.get_user_data_dir]
|
|
* [func@GLib.get_user_config_dir]
|
|
* [func@GLib.get_user_state_dir]
|
|
* [func@GLib.get_user_runtime_dir]
|
|
* [func@GLib.get_user_special_dir]
|
|
* [func@GLib.get_system_data_dirs]
|
|
* [func@GLib.get_system_config_dirs]
|
|
* [func@GLib.reload_user_special_dirs_cache]
|
|
|
|
## OS Info
|
|
|
|
Information about the current OS can be retrieved by calling
|
|
[func@GLib.get_os_info] and passing it one of the following keys (this list may
|
|
grow in future):
|
|
|
|
* `G_OS_INFO_KEY_NAME`
|
|
* `G_OS_INFO_KEY_PRETTY_NAME`
|
|
* `G_OS_INFO_KEY_VERSION`
|
|
* `G_OS_INFO_KEY_VERSION_CODENAME`
|
|
* `G_OS_INFO_KEY_VERSION_ID`
|
|
* `G_OS_INFO_KEY_ID`
|
|
* `G_OS_INFO_KEY_HOME_URL`
|
|
* `G_OS_INFO_KEY_DOCUMENTATION_URL`
|
|
* `G_OS_INFO_KEY_SUPPORT_URL`
|
|
* `G_OS_INFO_KEY_BUG_REPORT_URL`
|
|
* `G_OS_INFO_KEY_PRIVACY_POLICY_URL`
|
|
|
|
## Paths
|
|
|
|
* [func@GLib.get_host_name]
|
|
* [func@GLib.get_home_dir]
|
|
* [func@GLib.get_tmp_dir]
|
|
* [func@GLib.get_current_dir]
|
|
* [func@GLib.canonicalize_filename]
|
|
* [func@GLib.path_is_absolute]
|
|
* [func@GLib.path_skip_root]
|
|
* [func@GLib.path_get_basename]
|
|
* [func@GLib.path_get_dirname]
|
|
* [func@GLib.build_filename]
|
|
* [func@GLib.build_filenamev]
|
|
* [func@GLib.build_filename_valist]
|
|
* [func@GLib.build_path]
|
|
* [func@GLib.build_pathv]
|
|
|
|
## Size Formatting
|
|
|
|
* [func@GLib.format_size]
|
|
* [func@GLib.format_size_full]
|
|
* [func@GLib.format_size_for_display]
|
|
|
|
## Executables
|
|
|
|
* [func@GLib.find_program_in_path]
|
|
|
|
## Bit Manipulation
|
|
|
|
* [func@GLib.bit_nth_lsf]
|
|
* [func@GLib.bit_nth_msf]
|
|
* [func@GLib.bit_storage]
|
|
|
|
## Primes
|
|
|
|
* [func@GLib.spaced_primes_closest]
|
|
|
|
## Process Lifetime
|
|
|
|
* [func@GLib.abort]
|
|
|
|
## Debug
|
|
|
|
* [func@GLib.parse_debug_string]
|
|
|
|
## Sorting
|
|
|
|
* [func@GLib.qsort_with_data]
|
|
|
|
## Pointers
|
|
|
|
* [func@GLib.nullify_pointer]
|
|
|
|
## Deprecated API
|
|
|
|
* [type@GLib.VoidFunc]
|
|
* [type@GLib.FreeFunc]
|
|
* [func@GLib.atexit]
|