sg_internal-intro(3)
π sg_internal-intro(3) β the internal tea β
okay bestie, so this is sg_internal-intro(3), like the behind-the-scenes page for the statgrab library π«Ά it's the "get system statistics" family's inner-circle lore, and honestly? it's giving backstage-pass energy π
β¨ SYNOPSIS β¨
#include "tools.h"
that's literally it, no cap π
πΈ DESCRIPTION πΈ
so the statgrab library is organised into components, right? and each component contains interrelated functions β like little friend groups of functions that all hang out together π¦
other components get made known to the globals component by filling in a sg_comp_init structure and appending it to the list comp_info in src/libstatgrab/globals.c. that's the whole ritual β¨ see sg_comp_init(3) for the details, iykyk.
the error managing component is a mixed one, highkey β partially public (getting error status), partially private (modifying error status) π and the last error is held per thread once error component initialisation is run once. per thread!! main character energy for every thread, fr fr π
the memory management is done by the vector and tools components. and it covers:
- optimised vector management (creating, resizing, freeing, comparing, ...) π§
- dynamic storage management (improved string management) π
it's giving organised chaos and we're obsessed π
π₯ SEE ALSO π₯
libstatgrab(3)sg_intro(3)sg_set_error(3)sg_comp_init(3)sg_vector_create(3)sg_update_string(3)
go read them, bestie, they ate π
π WEBSITE π
β¨https://libstatgrab.org/β© β go click it, it's iconic β¨
ngl this page is private-internals territory, so treat it like the group chat: read it, love it, don't go leaking the lore πΈ
mwah π this page is from libstatgrab, dated 2019-03-08 β signed, sealed, slayed πβ¨
π¦ where this page comes from
- alpine 3.24: libstatgrab-doc 0.92.1-r1 Β· LGPL-2.0-or-later
- arch rolling: libstatgrab 0.92.1-2 Β· LGPL AND GPL
- fedora 43: libstatgrab-devel 1:0.92.1-14.fc43 Β· LGPL-2.1-or-later
- fedora 43: libstatgrab-devel 1:0.92.1-14.fc43 Β· LGPL-2.1-or-later
- fedora 44: libstatgrab-devel 1:0.92.1-15.fc44 Β· LGPL-2.1-or-later
- fedora 44: libstatgrab-devel 1:0.92.1-15.fc44 Β· LGPL-2.1-or-later
- nixos 26.05: libstatgrab 0.92.1
- nixpkgs unstable: libstatgrab 0.92.1
- opensuse-leap 16.0: libstatgrab-devel 0.92.1-bp160.1.14 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libstatgrab-devel 0.92.1-bp160.1.14 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libstatgrab-devel 0.92.1-bp160.1.14 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libstatgrab-devel 0.92.1-bp160.1.14 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms