criu/compel/plugins/fds/fds.c
Cyrill Gorcunov a714fff5a3 compel: Use common's compiler.h
And drop compel/include symlink.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-15 00:06:02 +03:00

26 lines
472 B
C

#include "uapi/plugins.h"
#include "uapi/std/syscall.h"
#include "uapi/std/string.h"
#include "uapi/plugin-fds.h"
#include "std-priv.h"
#include "common/compiler.h"
#define __sys(foo) sys_##foo
#define __std(foo) std_##foo
#include "../../src/shared/fds.c"
int fds_send(int *fds, int nr_fds)
{
return fds_send_via(std_ctl_sock(), fds, nr_fds);
}
int fds_recv(int *fds, int nr_fds)
{
return fds_recv_via(std_ctl_sock(), fds, nr_fds);
}
PLUGIN_REGISTER_DUMMY(fds)