From 4487b749d54308e720bd4474b826057e5ee8bbcb Mon Sep 17 00:00:00 2001
From: Michael Tuexen <tuexen@fh-muenster.de>
Date: Sat, 9 Jul 2016 21:09:32 +0200
Subject: [PATCH] Add O_ constants for the open() syscall.

---
 gtests/net/packetdrill/script.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gtests/net/packetdrill/script.c b/gtests/net/packetdrill/script.c
index 3b8c373a..6e0d3c15 100644
--- a/gtests/net/packetdrill/script.c
+++ b/gtests/net/packetdrill/script.c
@@ -25,6 +25,7 @@
 #include "script.h"
 
 #include <assert.h>
+#include <fcntl.h>
 #include <poll.h>
 #include <stdlib.h>
 
@@ -149,6 +150,13 @@ struct int_symbol cross_platform_symbols[] = {
 	{ SHUT_WR,                          "SHUT_WR"                         },
 	{ SHUT_RDWR,                        "SHUT_RDWR"                       },
 
+	{ O_RDONLY,                         "O_RDONLY"                        },
+	{ O_WRONLY,                         "O_WRONLY"                        },
+	{ O_RDWR,                           "O_RDWR"                          },
+	{ O_APPEND,                         "O_APPEND"                        },
+	{ O_CREAT,                          "O_CREAT"                         },
+	{ O_EXCL,                           "O_EXCL"                          },
+	{ O_TRUNC,                          "O_TRUNC"                         },
 	{ SOL_SOCKET,                       "SOL_SOCKET"                      },
 
 	/* Sentinel marking the end of the table. */
-- 
GitLab