diff options
| author | Your Name <you@example.com> | 2021-11-09 18:29:25 +0000 |
|---|---|---|
| committer | Your Name <you@example.com> | 2021-11-10 05:25:29 +0000 |
| commit | 02e8919cbc744064510f6cd99539f7662343073f (patch) | |
| tree | 9f9a8fc6346242b793ce7e671813168ccec72a8e /frida_mode/src/seccomp/seccomp_event.c | |
| parent | 8578b6b01c5f41d8a75ae83cb2c058fe89bf90df (diff) | |
| download | afl++-02e8919cbc744064510f6cd99539f7662343073f.tar.gz | |
Suppress spurious output
Diffstat (limited to 'frida_mode/src/seccomp/seccomp_event.c')
| -rw-r--r-- | frida_mode/src/seccomp/seccomp_event.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/frida_mode/src/seccomp/seccomp_event.c b/frida_mode/src/seccomp/seccomp_event.c index e2f592ca..aca0967a 100644 --- a/frida_mode/src/seccomp/seccomp_event.c +++ b/frida_mode/src/seccomp/seccomp_event.c @@ -5,14 +5,13 @@ #include <sys/syscall.h> #include <unistd.h> - #include "debug.h" - #include "seccomp.h" + #include "util.h" int seccomp_event_create(void) { int fd = syscall(SYS_eventfd, 0, 0); - if (fd < 0) { FATAL("seccomp_event_create"); } + if (fd < 0) { FFATAL("seccomp_event_create"); } return fd; } @@ -22,7 +21,7 @@ void seccomp_event_signal(int fd) { uint64_t val = 1; if (write(fd, &val, sizeof(uint64_t)) != sizeof(uint64_t)) { - FATAL("seccomp_event_signal"); + FFATAL("seccomp_event_signal"); } @@ -33,7 +32,7 @@ void seccomp_event_wait(int fd) { uint64_t val = 1; if (read(fd, &val, sizeof(uint64_t)) != sizeof(uint64_t)) { - FATAL("seccomp_event_wait"); + FFATAL("seccomp_event_wait"); } @@ -41,7 +40,7 @@ void seccomp_event_wait(int fd) { void seccomp_event_destroy(int fd) { - if (close(fd) < 0) { FATAL("seccomp_event_destroy"); } + if (close(fd) < 0) { FFATAL("seccomp_event_destroy"); } } |
