[CRIU] [PATCH 02/11] images: export cr_fdset_open
Andrey Vagin
avagin at openvz.org
Mon Sep 30 06:16:44 PDT 2013
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
image.c | 2 +-
include/crtools.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/image.c b/image.c
index 1d12b4a..9eb8206 100644
--- a/image.c
+++ b/image.c
@@ -143,7 +143,7 @@ void close_cr_fdset(struct cr_fdset **cr_fdset)
*cr_fdset = NULL;
}
-static struct cr_fdset *cr_fdset_open(int pid, int from, int to,
+struct cr_fdset *cr_fdset_open(int pid, int from, int to,
unsigned long flags)
{
struct cr_fdset *fdset;
diff --git a/include/crtools.h b/include/crtools.h
index 02c6bd3..6bd856d 100644
--- a/include/crtools.h
+++ b/include/crtools.h
@@ -126,6 +126,8 @@ int cr_exec(int pid, char **opts);
struct cr_fdset *cr_task_fdset_open(int pid, int mode);
struct cr_fdset *cr_ns_fdset_open(int pid, int mode);
+struct cr_fdset *cr_fdset_open(int pid, int from, int to,
+ unsigned long flags);
struct cr_fdset *cr_glob_fdset_open(int mode);
void close_cr_fdset(struct cr_fdset **cr_fdset);
--
1.8.3.1
More information about the CRIU
mailing list