]>
git.ipfire.org Git - thirdparty/squid.git/blob - compat/xstrerror.h
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
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.
9 #ifndef _SQUID_COMPAT_XSTRERROR_H
10 #define _SQUID_COMPAT_XSTRERROR_H
16 /** strerror() wrapper replacement.
18 * Provides the guarantee that a string is always returned.
19 * Where strerror() would have provided NULL this will report the error as unknown.
21 #define xstrerror() xstrerr(errno)
23 /** Provide the textual display of a system error number.
24 * A string is always returned.
25 * On MS Windows the native Win32 errors are also translated.
27 extern const char * xstrerr(int error
);
29 #endif /* _SQUID_COMPAT_XSTRERROR_H */