S6-LIBS6(7)
π S6-LIBS6(7) π
okay bestie, so this one lives in the Miscellaneous Information Manual section, and it's basically the master doc for s6-libs6 β the whole collection of utility C interfaces that the s6 executables are built on. Cute, right? Let's get into it β¨
π NAME π
s6-libs6 β the whole collection of utility C interfaces, the ones used in the s6 executables. it's giving "library girlboss" honestly π
πΈ DESCRIPTION πΈ
β¨ Compiling β¨
first things first: make sure the s6 headers and the skalibs headers are visible in your header search path. no cap, both of them.
then you just go:
#include <s6/s6.h>
and you're cooking π«Ά
π Linking π
same energy but for the libraries β make sure the s6 libraries and the skalibs libraries are visible in your library search path.
link against -ls6 and -lskarnet, that's the bare minimum bestie.
now, the extra bits (iykyk):
- if you're using socket functions (which is literally the case with s6-ftrigr(7), for instance), add
`cat $sysdeps/socket.lib`to your command line π₯ - if you're using timed functions involving TAI timestamps (which is also the case with s6-ftrigr(7), for instance), add
`cat $sysdeps/sysclock.lib`β°
and "$sysdeps" stands for your skalibs sysdeps directory. periodt.
π¦ Programming π¦
so here's the tea: the s6/s6.h header is actually a concatenation of other headers. libs6 is separated into several modules, and every single one of them has its own header. iconic modular behaviour, honestly π
- the
s6/accessrules.hheader provides functions to check credentials against configuration files β refer to s6-accessrules(7) π - the
s6/ftrigr.hheader provides functions to subscribe to s6-fifodir(7)s and be notified of events β refer to s6-ftrigr(7) π‘ - the
s6/ftrigw.hheader provides functions to manage s6-fifodir(7)s and send notifications to them β refer to s6-ftrigw(7) π¨ - the
s6/s6lock.hheader provides functions to acquire locks with a timeout β refer to s6-s6lock(7) π - the
s6/s6-fdholder.hheader provides functions to communicate with an s6-fdholderd(8) server and exchange file descriptors with it β refer to s6-fdholder(7) ποΈ
β SEE ALSO β
s6-accessrules(7), s6-fdholder(7), s6-ftrigr(7), s6-ftrigw(7), s6-s6lock(7)
also, for the record: this man page is ported from the authoritative documentation at https://skarnet.org/software/s6/libs6/ β the source of truth, fr fr π
π AUTHORS π
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port) π«Ά
aaaand that's the whole vibe check π
this one's from the Debian crew, dated September 29, 2021, page S6-LIBS6(7) β go forth and link responsibly, bestie π§π
π¦ where this page comes from
- nixpkgs unstable: s6 2.15.1.0
- nixpkgs unstable: s6-man-pages 2.14.0.1.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms