]>
Commit | Line | Data |
---|---|---|
37be9888 | 1 | /* |
5b74111a | 2 | * Copyright (C) 1996-2018 The Squid Software Foundation and contributors |
37be9888 AJ |
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 | ||
25f98340 AJ |
9 | #ifndef _SQUID_COMPAT_XSTRERROR_H |
10 | #define _SQUID_COMPAT_XSTRERROR_H | |
11 | ||
21d845b1 FC |
12 | #if HAVE_ERRNO_H |
13 | #include <errno.h> | |
14 | #endif | |
15 | ||
25f98340 AJ |
16 | /** Provide the textual display of a system error number. |
17 | * A string is always returned. | |
b69e9ffa | 18 | * Where strerror() would have provided NULL this will report the error as unknown. |
979f3ae6 | 19 | * On MS Windows the native Win32 errors are also translated. |
25f98340 AJ |
20 | */ |
21 | extern const char * xstrerr(int error); | |
22 | ||
23 | #endif /* _SQUID_COMPAT_XSTRERROR_H */ | |
f53969cc | 24 |