1 /* CC0 license (public domain) - see LICENSE file for details */
8 * fdpass_send - send a file descriptor across a socket
9 * @sockout: socket to write to
10 * @fd: file descriptor to pass
12 * On failure, sets errno and returns false.
14 bool fdpass_send(int sockout, int fd);
17 * fdpass_recv - receive a file descriptor from a socket
18 * @sockin: socket to read from
20 * On failure, returns -1 and sets errno. Otherwise returns fd.
22 int fdpass_recv(int sockin);
23 #endif /* CCAN_FDPASS_H */