[CRIU] [PATCH 1/8] cr-errno: initial commit

Ruslan Kuprieiev kupruser at gmail.com
Mon Dec 1 14:52:36 PST 2014


Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
 Makefile.crtools   | 1 +
 cr-errno.c         | 1 +
 include/cr-errno.h | 4 ++++
 3 files changed, 6 insertions(+)
 create mode 100644 cr-errno.c
 create mode 100644 include/cr-errno.h

diff --git a/Makefile.crtools b/Makefile.crtools
index 7f21d25..9156fe5 100644
--- a/Makefile.crtools
+++ b/Makefile.crtools
@@ -69,6 +69,7 @@ endif
 obj-y	+= cr-service.o
 obj-y	+= sd-daemon.o
 obj-y	+= plugin.o
+obj-y	+= cr-errno.o
 
 ifneq ($(MAKECMDGOALS),clean)
 incdeps := y
diff --git a/cr-errno.c b/cr-errno.c
new file mode 100644
index 0000000..9b1fe96
--- /dev/null
+++ b/cr-errno.c
@@ -0,0 +1 @@
+int cr_errno;
diff --git a/include/cr-errno.h b/include/cr-errno.h
new file mode 100644
index 0000000..6ca6c68
--- /dev/null
+++ b/include/cr-errno.h
@@ -0,0 +1,4 @@
+#ifndef __CR_ERRNO_H__
+#define __CR_ERRNO_H__
+extern int cr_errno;
+#endif /* __CR_ERRNO_H__ */
-- 
1.9.3



More information about the CRIU mailing list