xref: /spdk/lib/util/strerror_tls.c (revision 488570ebd418ba07c9e69e65106dcc964f3bb41b)
1 /*   SPDX-License-Identifier: BSD-3-Clause
2  *   Copyright (c) Intel Corporation.
3  *   All rights reserved.
4  */
5 
6 #include "spdk/string.h"
7 
8 static __thread char strerror_message[64];
9 
10 const char *
11 spdk_strerror(int errnum)
12 {
13 	spdk_strerror_r(errnum, strerror_message, sizeof(strerror_message));
14 	return strerror_message;
15 }
16