[CRIU] [RFC 2/5] Introduce a separate file for signatures

Cyrill Gorcunov gorcunov at openvz.org
Sun May 26 17:12:39 EDT 2013


Instead of bloating restorer.h introduce own
small header which can be easily included in
other code of project without loading compiler
with needless code parsing.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 include/signatures.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 include/signatures.h

diff --git a/include/signatures.h b/include/signatures.h
new file mode 100644
index 0000000..5e182ec
--- /dev/null
+++ b/include/signatures.h
@@ -0,0 +1,14 @@
+#ifndef __CR_SIGNATURES_H__
+#define __CR_SIGNATURES_H__
+
+#include "compiler.h"
+#include "const.h"
+
+/*
+ * Constants are assumed to be in LE format and
+ * represent 8 byte ascii char sequence.
+ */
+
+#define CRIU_SIG_RESTORER	_AC(0x7274737275697263, ULL)	/* criurstr */
+
+#endif /* __CR_SIGNATURES_H__ */
-- 
1.8.1.4



More information about the CRIU mailing list