2 * Copyright (C) 2018 Francis Deslauriers <francis.deslauriers@efficios.com>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License, version 2 only, as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 51
15 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #include <common/compat/socket.h>
25 int lttcomm_create_unix_sock(const char *pathname
)
29 int lttcomm_create_anon_unix_socketpair(int *fds
)
33 int lttcomm_connect_unix_sock(const char *pathname
)
37 int lttcomm_accept_unix_sock(int sock
)
41 int lttcomm_listen_unix_sock(int sock
)
45 int lttcomm_close_unix_sock(int sock
)
49 ssize_t
lttcomm_send_fds_unix_sock(int sock
, const int *fds
, size_t nb_fd
)
53 ssize_t
lttcomm_recv_fds_unix_sock(int sock
, int *fds
, size_t nb_fd
)
57 ssize_t
lttcomm_recv_unix_sock(int sock
, void *buf
, size_t len
)
61 ssize_t
lttcomm_recv_unix_sock_non_block(int sock
, void *buf
, size_t len
)
65 ssize_t
lttcomm_send_unix_sock(int sock
, const void *buf
, size_t len
)
69 ssize_t
lttcomm_send_unix_sock_non_block(int sock
, const void *buf
, size_t len
)
73 ssize_t
lttcomm_send_creds_unix_sock(int sock
, void *buf
, size_t len
)
77 ssize_t
lttcomm_recv_creds_unix_sock(int sock
, void *buf
, size_t len
,
78 lttng_sock_cred
*creds
)
82 int lttcomm_setsockopt_creds_unix_sock(int sock
)
86 #endif /* _UNIX_STUB_H */
This page took 0.030609 seconds and 4 git commands to generate.