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