The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
paths.c
Go to the documentation of this file.
1 /*
2  * This library is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU Lesser General Public
4  * License as published by the Free Software Foundation; either
5  * version 2.1 of the License, or (at your option) any later version.
6  *
7  * This library is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10  * Lesser General Public License for more details.
11  *
12  * You should have received a copy of the GNU Lesser General Public
13  * License along with this library; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
15  */
16 
17 /** Default paths
18  *
19  * @file src/lib/util/paths.c
20  *
21  * @copyright 2020 The FreeRADIUS server project
22  */
23 RCSID("$Id: 92a343375561058251a555adab8b805b10bf68a5 $")
24 
25 #include <freeradius-devel/util/conf.h>
26 #include <freeradius-devel/util/paths.h>
27 
28 /** Return the default log dir
29  *
30  * This is set at build time from --prefix
31  * @return the value of LOGDIR
32  */
33 char const *fr_path_default_log_dir(void)
34 {
35  return LOGDIR;
36 }
37 
38 /** Return the default lib dir
39  *
40  * This is set at build time from --prefix
41  * @return the value of LIBDIR
42  */
43 char const *fr_path_default_lib_dir(void)
44 {
45  return LIBDIR;
46 }
47 
48 /** Return the default raddb dir
49  *
50  * This is set at build time from --prefix
51  * @return the value of RADDBDIR
52  */
53 char const *fr_path_default_raddb_dir(void)
54 {
55  return RADDBDIR;
56 }
57 
58 /** Return the default run dir
59  *
60  * This is set at build time from --prefix
61  * @return the value of RUNDIR
62  */
63 char const *fr_path_default_run_dir(void)
64 {
65  return RUNDIR;
66 }
67 
68 /** Return the default sbin dir
69  *
70  * This is set at build time from --prefix
71  * @return the value of SBINDIR
72  */
73 char const *fr_path_default_sbin_dir(void)
74 {
75  return SBINDIR;
76 }
77 
78 /** Return the default radacct dir
79  *
80  * This is set at build time from --prefix
81  * @return the value of RADIR
82  */
83 char const *fr_path_default_radacct_dir(void)
84 {
85  return RADIR;
86 }
#define RCSID(id)
Definition: build.h:481
char const * fr_path_default_radacct_dir(void)
Return the default radacct dir.
Definition: paths.c:83
char const * fr_path_default_raddb_dir(void)
Return the default raddb dir.
Definition: paths.c:53
char const * fr_path_default_run_dir(void)
Return the default run dir.
Definition: paths.c:63
char const * fr_path_default_log_dir(void)
Return the default log dir.
Definition: paths.c:33
char const * fr_path_default_lib_dir(void)
Return the default lib dir.
Definition: paths.c:43
char const * fr_path_default_sbin_dir(void)
Return the default sbin dir.
Definition: paths.c:73