[CRIU] [PATCH 02/12] signalfd: define SFD_RAW, SFD_GROUP, SDF_PRIVATE
Andrey Vagin
avagin at openvz.org
Tue Dec 18 01:36:05 EST 2012
SFD_SHARED - read signals from a shared queue
SFD_PRIVATE - read signals from a private queue
SFD_RAW - report siginfo in a raw format
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
include/signalfd.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/signalfd.h b/include/signalfd.h
index 9721a4d..231a548 100644
--- a/include/signalfd.h
+++ b/include/signalfd.h
@@ -7,4 +7,11 @@ extern int is_signalfd_link(int lfd);
extern int dump_signalfd(struct fd_parms *p, int lfd, const struct cr_fdset *set);
extern void show_signalfd(int fd, struct cr_options *o);
extern int collect_signalfd(void);
+
+#ifndef SFD_RAW
+#define SFD_RAW O_DIRECT
+#define SFD_GROUP O_DIRECTORY
+#define SFD_PRIVATE O_EXCL
+#endif
+
#endif
--
1.7.11.7
More information about the CRIU
mailing list