aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/str_error.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2024-01-24 02:21:20 +0000
committerAlexei Starovoitov <[email protected]>2024-01-25 00:21:02 +0000
commit05f9cdd55d61cf9c6283fd3dc0edc7cad09bd7fe (patch)
treebeee721bec04ba2a6e3e9a21adfd8183827ca4d3 /tools/lib/bpf/str_error.h
parentlibbpf: Further decouple feature checking logic from bpf_object (diff)
downloadkernel-05f9cdd55d61cf9c6283fd3dc0edc7cad09bd7fe.tar.gz
kernel-05f9cdd55d61cf9c6283fd3dc0edc7cad09bd7fe.zip
libbpf: Move feature detection code into its own file
It's quite a lot of well isolated code, so it seems like a good candidate to move it out of libbpf.c to reduce its size. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: John Fastabend <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/str_error.h')
-rw-r--r--tools/lib/bpf/str_error.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lib/bpf/str_error.h b/tools/lib/bpf/str_error.h
index a139334d57b6..626d7ffb03d6 100644
--- a/tools/lib/bpf/str_error.h
+++ b/tools/lib/bpf/str_error.h
@@ -2,5 +2,8 @@
#ifndef __LIBBPF_STR_ERROR_H
#define __LIBBPF_STR_ERROR_H
+#define STRERR_BUFSIZE 128
+
char *libbpf_strerror_r(int err, char *dst, int len);
+
#endif /* __LIBBPF_STR_ERROR_H */