[LTP] [PATCH 1/3] Added memfd_create lapi flags

Jakub Racek jracek@redhat.com
Tue Feb 28 12:59:54 CET 2017


Signed-off-by: Jakub Racek <jracek@redhat.com>
---
 include/lapi/memfd_create.h | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 include/lapi/memfd_create.h

diff --git a/include/lapi/memfd_create.h b/include/lapi/memfd_create.h
new file mode 100644
index 0000000..47c4cb8
--- /dev/null
+++ b/include/lapi/memfd_create.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2017  Red Hat, Inc.
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it would be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * Further, this software is distributed without any warranty that it
+ * is free of the rightful claim of any third person regarding
+ * infringement or the like.  Any license provided herein, whether
+ * implied or otherwise, applies only to this software file.  Patent
+ * licenses, if any, provided herein do not apply to combinations of
+ * this program with other software, or any other product whatsoever.
+ */
+
+#ifndef __LAPI_MEMFD_H__
+#define __LAPI_MEMFD_H__
+
+/* flags for memfd_create(2) (unsigned int) */
+#ifndef MFD_CLOEXEC
+# define MFD_CLOEXEC             0x0001U
+#endif
+#ifndef MFD_ALLOW_SEALING
+# define MFD_ALLOW_SEALING       0x0002U
+#endif
+
+#endif
-- 
1.8.3.1



More information about the ltp mailing list