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:
committed by
Cyrill Gorcunov
parent
fd7c44dd86
commit
1465fade3b
9
include/util-net.h
Normal file
9
include/util-net.h
Normal 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
|
Reference in New Issue
Block a user