/* Shared general utility routines for GDB, the GNU debugger.
- Copyright (C) 1986-2019 Free Software Foundation, Inc.
+ Copyright (C) 1986-2020 Free Software Foundation, Inc.
This file is part of GDB.
/* The strerror() function can return NULL for errno values that are
out of range. Provide a "safe" version that always returns a
- printable string. */
+ printable string. This version is also thread-safe. */
-extern char *safe_strerror (int);
+extern const char *safe_strerror (int);
/* Return true if the start of STRING matches PATTERN, false otherwise. */