[CRIU] [PATCH 15/22] compel: Add fds helpers

Cyrill Gorcunov gorcunov at openvz.org
Wed Oct 19 12:21:30 PDT 2016


We already have fds plugin but compel itself will need
these helpers for parasite engine, thus lets introduce it.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 compel/Makefile      | 1 +
 compel/src/lib/fds.c | 4 ++++
 2 files changed, 5 insertions(+)
 create mode 100644 compel/src/lib/fds.c

diff --git a/compel/Makefile b/compel/Makefile
index e2fca725175c..2eb86ce90c89 100644
--- a/compel/Makefile
+++ b/compel/Makefile
@@ -22,6 +22,7 @@ host-lib-y		+= arch/$(ARCH)/src/lib/handle-elf.o
 lib-y			+= src/lib/handle-elf.o
 host-lib-y		+= src/lib/handle-elf.o
 
+lib-y			+= src/lib/fds.o
 lib-y			+= src/lib/argv.o
 lib-y			+= src/lib/compel.o
 
diff --git a/compel/src/lib/fds.c b/compel/src/lib/fds.c
new file mode 100644
index 000000000000..41f6d23193a4
--- /dev/null
+++ b/compel/src/lib/fds.c
@@ -0,0 +1,4 @@
+#define __sys(foo)	foo
+#define __std(foo)	foo
+
+#include "../../src/shared/fds.c"
-- 
2.7.4



More information about the CRIU mailing list