]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/xstrerror.h
66736c4369579dcbc51af18641bcf557c95cfe57
[thirdparty/squid.git] / compat / xstrerror.h
1 /*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #ifndef _SQUID_COMPAT_XSTRERROR_H
10 #define _SQUID_COMPAT_XSTRERROR_H
11
12 #if HAVE_ERRNO_H
13 #include <errno.h>
14 #endif
15
16 /** Provide the textual display of a system error number.
17 * A string is always returned.
18 * Where strerror() would have provided nullptr this will report the error as unknown.
19 * On MS Windows the native Win32 errors are also translated.
20 */
21 extern const char * xstrerr(int error);
22
23 #endif /* _SQUID_COMPAT_XSTRERROR_H */
24