mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-27 12:28:14 +00:00
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>
26 lines
430 B
C
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());
|
|
}
|