ebpf-for-windows/libs/api
Lorenz Bauer 30a6cf75f1
Return ENOENT from bpf_obj_get when no pinned object exists (#3899)
The current implementation of bpf_obj_get doesn't follow libbpf semantics,
because it always returns -1 on error, instead of returning the negative
error number.

This is especially noticeable when trying to open a non-existant object,
which should return -ENOENT.

See caa17bdcbf/src/bpf.c (L625-L626)
2024-10-09 19:23:31 +00:00
..
Verifier.cpp Bump external/ebpf-verifier from `df34181` to `2018df9` (#3600) 2024-06-03 19:10:39 +00:00
Verifier.h Update copyright to be eBPF for Windows contributors (#3508) 2024-05-04 19:55:56 +00:00
api.vcxproj Refactor common platform and config into Directory.Build.props (#3891) 2024-10-02 19:14:14 +00:00
api.vcxproj.filters Update copyright to be eBPF for Windows contributors (#3508) 2024-05-04 19:55:56 +00:00
api_internal.h Add support for multiple programs per section (#3557) 2024-05-29 15:30:20 +00:00
bpf_syscall.cpp Backwards compatible fixes to bpf() syscall emulation (#3870) 2024-10-04 15:01:20 +00:00
crab_verifier_wrapper.hpp Update copyright to be eBPF for Windows contributors (#3508) 2024-05-04 19:55:56 +00:00
ebpf_api.cpp Return EBADF for negative object fds (#3901) 2024-10-04 17:28:48 +00:00
ebpf_execution_context.h Update copyright to be eBPF for Windows contributors (#3508) 2024-05-04 19:55:56 +00:00
ebpfapi.vcxproj.filters Update copyright to be eBPF for Windows contributors (#3508) 2024-05-04 19:55:56 +00:00
libbpf_errno.cpp Update copyright to be eBPF for Windows contributors (#3508) 2024-05-04 19:55:56 +00:00
libbpf_internal.h Update copyright to be eBPF for Windows contributors (#3508) 2024-05-04 19:55:56 +00:00
libbpf_link.cpp Update copyright to be eBPF for Windows contributors (#3508) 2024-05-04 19:55:56 +00:00
libbpf_map.cpp Set errno for bpf_object__find_map_by_name (#3712) 2024-07-23 18:32:28 +00:00
libbpf_object.cpp Return ENOENT from bpf_obj_get when no pinned object exists (#3899) 2024-10-09 19:23:31 +00:00
libbpf_program.cpp Implement libbpf autoload APIs (#3592) 2024-06-03 15:28:04 +00:00
libbpf_system.cpp Update copyright to be eBPF for Windows contributors (#3508) 2024-05-04 19:55:56 +00:00
rpc_client.h Update copyright to be eBPF for Windows contributors (#3508) 2024-05-04 19:55:56 +00:00
windows_platform.cpp Update copyright to be eBPF for Windows contributors (#3508) 2024-05-04 19:55:56 +00:00
windows_platform.hpp Update copyright to be eBPF for Windows contributors (#3508) 2024-05-04 19:55:56 +00:00