2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-27 12:28:14 +00:00
Pavel Emelyanov 6794c8c2a9 compel: Add fds plugin (v2)
This is just export by reasonable name of the existing
code, that sends and receives FDs via compel RPC socket.

v2:
 Rebase on recent criu-dev
 Fix parallel build

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-15 09:36:09 +03:00

26 lines
430 B
C

#include <errno.h>
#include "uapi/plugins.h"
#include "uapi/plugins/std.h"
#include <compel/plugins/std/infect.h>
#define pr_err(fmt, ...)
#include "common/compiler.h"
#include "common/bug.h"
#define __sys(foo) sys_##foo
#define __sys_err(ret) ret
#include "common/scm.h"
int fds_send_fd(int fd)
{
return send_fd(parasite_get_rpc_sock(), NULL, 0, fd);
}
int fds_recv_fd(void)
{
return recv_fd(parasite_get_rpc_sock());
}