Debian Codegraph @

src/common/cockpitfdpassing.h

raw
1 /*
2 * Copyright (C) 2021 Red Hat, Inc.
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6 #pragma once
7
8 #include <stdbool.h>
9 #include <sys/socket.h>
10
11 void
12 cockpit_socket_msghdr_add_fd (struct msghdr *msg,
13 struct cmsghdr *cmsg,
14 size_t cmsgsize,
15 int fd);
16
17 bool
18 cockpit_socket_send_fd (int socket_fd,
19 int fd);
20
21 int
22 cockpit_socket_receive_fd (int socket_fd,
23 int *out_fd);