]> git.ipfire.org Git - thirdparty/squid.git/blame - compat/xstrerror.h
Make mk-globals-c.awk more permissive on the input it accepts
[thirdparty/squid.git] / compat / xstrerror.h
CommitLineData
25f98340
AJ
1#ifndef _SQUID_COMPAT_XSTRERROR_H
2#define _SQUID_COMPAT_XSTRERROR_H
3
4/** strerror() wrapper replacement.
5 *
6 * Provides the guarantee that a string is always returned.
7 * Where strerror() would have provided NULL this will report the error as unknown.
8 */
9#define xstrerror() xstrerr(errno)
10
11/** Provide the textual display of a system error number.
12 * A string is always returned.
979f3ae6 13 * On MS Windows the native Win32 errors are also translated.
25f98340
AJ
14 */
15extern const char * xstrerr(int error);
16
17#endif /* _SQUID_COMPAT_XSTRERROR_H */