about summary refs log tree commit diff
path: root/custom_mutators/radamsa/libradamsa.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-12-13 12:58:57 +0100
committerGitHub <noreply@github.com>2021-12-13 12:58:57 +0100
commite41ac9564b3e00131dd30ee55d853c121e0ae95f (patch)
treede925b106b4dcb71a573d680eca6e1ec538f020b /custom_mutators/radamsa/libradamsa.c
parent9f6394242bdf20c2083eca2d74d3eb60307fbba2 (diff)
parent6eb752a65cd340a8cf2234d48e32770113ce2416 (diff)
downloadafl++-e41ac9564b3e00131dd30ee55d853c121e0ae95f.tar.gz
Merge pull request #1212 from devnexen/libradmsa_fbsd_upd
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,