Commit 3c982617 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

compel: plugins,fds -- Unify prototypes

 - Declare send_fds, recv_fds in sch.h, these
   are prototypes used in both compel and criu
 - Drop old protos from plugin-fds.h uapi file
 - Drop old code from fds.c source
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent a1f674e3
......@@ -2,6 +2,8 @@
#define __COMMON_SCM_H__
#include <stdint.h>
#include <stdbool.h>
#include <sys/un.h>
/*
* Because of kernel doing kmalloc for user data passed
......@@ -41,4 +43,13 @@ struct scm_fdset {
#define F_GETOWNER_UIDS 17
#endif
extern int send_fds(int sock, struct sockaddr_un *saddr, int len,
int *fds, int nr_fds, bool with_flags);
#ifdef SCM_FDSET_HAS_OPTS
extern int recv_fds(int sock, int *fds, int nr_fds, struct fd_opts *opts);
#else
extern int recv_fds(int sock, int *fds, int nr_fds, char *opts);
#endif
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment