mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-10 03:49:50 +00:00
libbpf_strerror_r() is not exposed as public API and neither is it used inside libbpf itself. Remove it altogether. Same for STRERR_BUFSIZE, it's just an orphaned leftover constant which we missed to clean up some time earlier. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/r/20251001171326.3883055-3-andrii@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Eduard Zingerman <eddyz87@gmail.com>
16 lines
450 B
C
16 lines
450 B
C
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
|
|
#ifndef __LIBBPF_STR_ERROR_H
|
|
#define __LIBBPF_STR_ERROR_H
|
|
|
|
/**
|
|
* @brief **libbpf_errstr()** returns string corresponding to numeric errno
|
|
* @param err negative numeric errno
|
|
* @return pointer to string representation of the errno, that is invalidated
|
|
* upon the next call.
|
|
*/
|
|
const char *libbpf_errstr(int err);
|
|
|
|
#define errstr(err) libbpf_errstr(err)
|
|
|
|
#endif /* __LIBBPF_STR_ERROR_H */
|