mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-29 13:00:45 +00:00
This plugin is all about sending scm-s over unix sockets, so having this stuff there is helpful. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
17 lines
349 B
C
17 lines
349 B
C
/*
|
|
* plugin-fds.h -- API for fds compel plugin
|
|
*/
|
|
|
|
#ifndef __COMPEL_PLUGIN_FDS_H__
|
|
#define __COMPEL_PLUGIN_FDS_H__
|
|
|
|
#include <sys/un.h>
|
|
|
|
#include "common/scm.h"
|
|
|
|
static inline int send_fd(int sock, struct sockaddr_un *saddr, int saddr_len, int fd)
|
|
{
|
|
return send_fds(sock, saddr, saddr_len, &fd, 1, false);
|
|
}
|
|
|
|
#endif /* __COMPEL_PLUGIN_FDS_H__ */
|