diff options
author | Edward Liaw <edliaw@google.com> | 2024-02-29 06:49:10 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2024-02-29 06:49:10 +0000 |
commit | d8c0631864f6f26ad86376a15f906d96ee213604 (patch) | |
tree | bed7e68b13373f89a7ffd8feb37b0cc557e9da5b | |
parent | 708c955922265042c9d52fe78447afd40bbbecb4 (diff) | |
parent | 90164cf586a337bcb89a75f9dd92b9803e278dc1 (diff) | |
download | ltp-d8c0631864f6f26ad86376a15f906d96ee213604.tar.gz |
tst_fd: Use raw syscall for fanotify_init() am: 90164cf586
Original change: https://android-review.googlesource.com/c/platform/external/ltp/+/2983200
Change-Id: Id5fc92abaa56664122b899bcee30ecfefe12ce99
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | lib/tst_fd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tst_fd.c b/lib/tst_fd.c index b3d43a7c3..6538a098c 100644 --- a/lib/tst_fd.c +++ b/lib/tst_fd.c @@ -10,9 +10,9 @@ #include <sys/eventfd.h> #include <sys/signalfd.h> #include <sys/timerfd.h> -#include <sys/fanotify.h> #include <sys/inotify.h> #include <linux/perf_event.h> +#include <linux/fanotify.h> #include "tst_test.h" #include "tst_safe_macros.h" @@ -146,7 +146,7 @@ static void open_pidfd(struct tst_fd *fd) static void open_fanotify(struct tst_fd *fd) { - fd->fd = fanotify_init(FAN_CLASS_NOTIF, O_RDONLY); + fd->fd = syscall(__NR_fanotify_init, FAN_CLASS_NOTIF, O_RDONLY); if (fd->fd < 0) { tst_res(TCONF | TERRNO, "Skipping %s", tst_fd_desc(fd)); |