The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
syserror.h
Go to the documentation of this file.
1#pragma once
2/*
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16 */
17
18/** Support functions to allow libraries to get system errors in a threadsafe and easily debuggable way
19 *
20 * @file src/lib/util/syserror.c
21 *
22 * @copyright 2017 The FreeRADIUS server project
23 * @copyright 2017 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
24 */
25RCSIDH(syserror_h, "$Id: 76225ddb4909ef96455800c6d937d32494436293 $")
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#include <freeradius-devel/build.h>
32#include <freeradius-devel/missing.h>
33
34#include <errno.h>
35#include <stdint.h>
36#include <string.h>
37
38/** @hidecallergraph */
39char const *fr_syserror(int num);
40
41/** @hidecallergraph */
42char const *fr_syserror_simple(int num);
43
44#ifdef __cplusplus
45}
46#endif
#define RCSIDH(h, id)
Definition build.h:484
char const * fr_syserror_simple(int num)
Guaranteed to be thread-safe version of strerror.
Definition syserror.c:291
char const * fr_syserror(int num)
Guaranteed to be thread-safe version of strerror.
Definition syserror.c:243