2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 22:35:33 +00:00

util: move recv_fd and send_fd in a separate file

It will be used in the parasite

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Andrey Vagin
2012-02-01 13:00:49 +03:00
committed by Cyrill Gorcunov
parent fd7c44dd86
commit 1465fade3b
4 changed files with 85 additions and 71 deletions

9
include/util-net.h Normal file
View File

@@ -0,0 +1,9 @@
#ifndef UTIL_NET_H_
#define UTIL_NET_H_
#define UNIX_PATH_MAX (sizeof(struct sockaddr_un) - \
(size_t)((struct sockaddr_un *) 0)->sun_path)
extern int send_fd(int sock, struct sockaddr_un *saddr, int len, int fd);
extern int recv_fd(int sock);
#endif