Debian Codegraph @

upstream/debian-unstable/man3/sd-path.3

raw
1 '\" t
2 .TH "SD\-PATH" "3" "" "systemd 261~rc3" "sd-path"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 .ie \n(.g .ds Aq \(aq
11 .el .ds Aq '
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
16 .nh
17 .\" disable justification (adjust text to left margin only)
18 .ad l
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
22 .SH "NAME"
23 sd-path \- APIs to query file system paths
24 .SH "SYNOPSIS"
25 .sp
26 .ft B
27 .nf
28 #include <systemd/sd\-path\&.h>
29 .fi
30 .ft
31 .HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libsystemd\fR\ 'u
32 \fBpkg\-config \-\-cflags \-\-libs libsystemd\fR
33 .SH "DESCRIPTION"
34 .PP
35 sd\-path\&.h
36 is part of
37 \fBlibsystemd\fR(3)
38 and provides APIs to query file system paths\&. This functionality is similar to the command\-line functionality provided by
39 \fBsystemd-path\fR(1)\&.
40 .PP
41 See
42 \fBsd_path_lookup\fR(3)
43 for information about the functions available\&.
44 .SH "NOTES"
45 .PP
46 Functions described here are available as a shared library, which can be compiled against and linked to with the
47 \fBlibsystemd\fR\ \&\fBpkg-config\fR(1)
48 file\&.
49 .PP
50 The code described here uses
51 \fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call
52 \fBsetenv\fR(3)
53 from a parallel thread\&. It is recommended to only do calls to
54 \fBsetenv()\fR
55 from an early phase of the program when no other threads have been started\&.
56 .SH "SEE ALSO"
57 .PP
58 \fBsystemd\fR(1), \fBsystemd-path\fR(1), \fBpkg-config\fR(1)