S6-LIBS6(7)

NAME
s6-libs6 - collection of utility C interfaces, used in the s6 executables

DESCRIPTION

  Compiling
Make sure the s6 headers, as well as the skalibs headers, are visible in your header search path.

Use ‘#include <s6/s6.h>’.

  Linking
Make sure the s6 libraries, as well as the skalibs libraries, are visible in your library search path.

Link against ‘-ls6’ and ‘-lskarnet’. If you're using socket functions (which is 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`’. "$sysdeps" stands for your skalibs sysdeps directory.

  Programming
The s6/s6.h header is actually a concatenation of other headers: libs6 is separated into several modules, each of them with its own header.

•   The s6/accessrules.h header provides functions to check credentials against configuration files. Refer to s6-accessrules(7).

•   The s6/ftrigr.h header provides functions to subscribe to s6-fifodir(7)s and be notified of events. Refer to s6-ftrigr(7).

•   The s6/ftrigw.h header provides functions to manage s6-fifodir(7)s and send notifications to them. Refer to s6-ftrigw(7).

•   The s6/s6lock.h header provides functions to acquire locks with a timeout. Refer to s6-s6lock(7).

•   The s6/s6-fdholder.h header 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)

This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6/libs6/

AUTHORS
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)