mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 22:35:33 +00:00
fdset: Beautify fdset opening
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -124,8 +124,10 @@ int cr_exec(int pid, char **opts);
|
||||
#define O_RSTR (O_RDONLY)
|
||||
|
||||
struct cr_fdset *cr_task_fdset_open(int pid, int mode);
|
||||
struct cr_fdset *cr_fdset_open(int pid, int from, int to,
|
||||
struct cr_fdset *cr_fdset_open_range(int pid, int from, int to,
|
||||
unsigned long flags);
|
||||
#define cr_fdset_open(pid, type, flags) cr_fdset_open_range(pid, \
|
||||
_CR_FD_##type##_FROM, _CR_FD_##type##_TO, flags)
|
||||
struct cr_fdset *cr_glob_fdset_open(int mode);
|
||||
|
||||
void close_cr_fdset(struct cr_fdset **cr_fdset);
|
||||
|
Reference in New Issue
Block a user