about summary refs log tree commit diff
path: root/custom_mutators/radamsa/libradamsa.c
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2021-12-12 20:32:18 +0000
committerDavid CARLIER <devnexen@gmail.com>2021-12-12 20:32:18 +0000
commit6eb752a65cd340a8cf2234d48e32770113ce2416 (patch)
tree2e1ce01f1872773ce8458299418aef08f2f38004 /custom_mutators/radamsa/libradamsa.c
parent4bcd96ce6839033228faa277c8d58b28723128d6 (diff)
downloadafl++-6eb752a65cd340a8cf2234d48e32770113ce2416.tar.gz
radamsa mutator adding freebsd specific fcntl flags.
Diffstat (limited to 'custom_mutators/radamsa/libradamsa.c')
-rw-r--r--custom_mutators/radamsa/libradamsa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/custom_mutators/radamsa/libradamsa.c b/custom_mutators/radamsa/libradamsa.c
index 792eea35..e6838752 100644
--- a/custom_mutators/radamsa/libradamsa.c
+++ b/custom_mutators/radamsa/libradamsa.c
@@ -4473,6 +4473,10 @@ static word prim_sys(word op, word a, word b, word c) {
         FD_CLOEXEC,
         F_DUPFD,
         F_DUPFD_CLOEXEC,
+#if defined(F_DUP2FD)
+        F_DUP2FD,
+        F_DUP2FD_CLOEXEC,
+#endif
         F_GETFD,
         F_SETFD,
         F_GETFL,