BpfSyscallWrappers: remove mapRetrieve()
(spurious) Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I642104fb08ffb73f7f409ac868b029962dc31979
This commit is contained in:
parent
8b8cf5d8d4
commit
dfef229781
1 changed files with 3 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue