diff options
| author | Andrii Nakryiko <[email protected]> | 2023-12-13 19:08:36 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-12-13 23:47:05 +0000 |
| commit | ab8fc393b27cd2d6dd1ced1ba2358ddcd123fc15 (patch) | |
| tree | 524a70762bbe40613a41701e3a1487d3b4f8f62c /tools/lib/bpf/str_error.h | |
| parent | libbpf: further decouple feature checking logic from bpf_object (diff) | |
| download | kernel-ab8fc393b27cd2d6dd1ced1ba2358ddcd123fc15.tar.gz kernel-ab8fc393b27cd2d6dd1ced1ba2358ddcd123fc15.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.
Acked-by: John Fastabend <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/str_error.h')
| -rw-r--r-- | tools/lib/bpf/str_error.h | 3 |
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 */ |
