BpfSyscallWrappers: remove mapRetrieve()

(spurious)

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I642104fb08ffb73f7f409ac868b029962dc31979
This commit is contained in:
Maciej Żenczykowski 2024-06-04 13:48:36 +00:00
commit dfef229781

View file

@ -128,20 +128,16 @@ inline int bpfFdGet(const char* pathname, uint32_t flag) {
});
}
inline int mapRetrieve(const char* pathname, uint32_t flag) {
return bpfFdGet(pathname, flag);
}
inline int mapRetrieveRW(const char* pathname) {
return mapRetrieve(pathname, 0);
return bpfFdGet(pathname, 0);
}
inline int mapRetrieveRO(const char* pathname) {
return mapRetrieve(pathname, BPF_F_RDONLY);
return bpfFdGet(pathname, BPF_F_RDONLY);
}
inline int mapRetrieveWO(const char* pathname) {
return mapRetrieve(pathname, BPF_F_WRONLY);
return bpfFdGet(pathname, BPF_F_WRONLY);
}
inline int retrieveProgram(const char* pathname) {