2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

files: Export collect_fd()

Declare it extern and allow to use outside files.c.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Kirill Tkhai
2017-06-01 14:34:50 +03:00
committed by Pavel Emelyanov
parent 107f2e40fe
commit 674651995f
2 changed files with 2 additions and 1 deletions

View File

@@ -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;

View File

@@ -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);