From 674651995f2a8dafb4aebf02a86c3a2a3a57ec2d Mon Sep 17 00:00:00 2001 From: Kirill Tkhai Date: Thu, 1 Jun 2017 14:34:50 +0300 Subject: [PATCH] files: Export collect_fd() Declare it extern and allow to use outside files.c. Signed-off-by: Kirill Tkhai Signed-off-by: Andrei Vagin --- criu/files.c | 2 +- criu/include/files.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/criu/files.c b/criu/files.c index 5d6b1139d..3a57682c8 100644 --- a/criu/files.c +++ b/criu/files.c @@ -708,7 +708,7 @@ static struct fdinfo_list_entry *alloc_fle(int pid, FdinfoEntry *fe) return fle; } -static int collect_fd(int pid, FdinfoEntry *e, struct rst_info *rst_info) +int collect_fd(int pid, FdinfoEntry *e, struct rst_info *rst_info) { struct fdinfo_list_entry *le, *new_le; struct file_desc *fdesc; diff --git a/criu/include/files.h b/criu/include/files.h index 275b36e2d..0d711b75c 100644 --- a/criu/include/files.h +++ b/criu/include/files.h @@ -116,6 +116,7 @@ struct file_desc_ops { char * (*name)(struct file_desc *, char *b, size_t s); }; +int collect_fd(int pid, FdinfoEntry *e, struct rst_info *rst_info); void collect_task_fd(struct fdinfo_list_entry *new_fle, struct rst_info *ri); unsigned int find_unused_fd(struct pstree_item *, int hint_fd);