Fix: warning 'fd' may be used uninitialized
[lttng-tools.git] / src / common / unix-stub.c
CommitLineData
b3f35e02
FD
1/*
2 * Copyright (C) 2018 Francis Deslauriers <francis.deslauriers@efficios.com>
3 *
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.
7 *
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
11 * more details.
12 *
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.
16 */
17
18#ifndef _UNIX_STUB_H
19#define _UNIX_STUB_H
20
21#include <stddef.h>
22#include <stdlib.h>
23#include <common/compat/socket.h>
24
25int lttcomm_create_unix_sock(const char *pathname)
26{
27 return -1;
28}
29int lttcomm_create_anon_unix_socketpair(int *fds)
30{
31 return -1;
32}
33int lttcomm_connect_unix_sock(const char *pathname)
34{
35 return -1;
36}
37int lttcomm_accept_unix_sock(int sock)
38{
39 return -1;
40}
41int lttcomm_listen_unix_sock(int sock)
42{
43 return -1;
44}
45int lttcomm_close_unix_sock(int sock)
46{
47 return -1;
48}
49ssize_t lttcomm_send_fds_unix_sock(int sock, const int *fds, size_t nb_fd)
50{
51 return -1;
52}
53ssize_t lttcomm_recv_fds_unix_sock(int sock, int *fds, size_t nb_fd)
54{
55 return -1;
56}
57ssize_t lttcomm_recv_unix_sock(int sock, void *buf, size_t len)
58{
59 return -1;
60}
61ssize_t lttcomm_recv_unix_sock_non_block(int sock, void *buf, size_t len)
62{
63 return -1;
64}
65ssize_t lttcomm_send_unix_sock(int sock, const void *buf, size_t len)
66{
67 return -1;
68}
69ssize_t lttcomm_send_unix_sock_non_block(int sock, const void *buf, size_t len)
70{
71 return -1;
72}
73ssize_t lttcomm_send_creds_unix_sock(int sock, void *buf, size_t len)
74{
75 return -1;
76}
77ssize_t lttcomm_recv_creds_unix_sock(int sock, void *buf, size_t len,
78 lttng_sock_cred *creds)
79{
80 return -1;
81}
82int lttcomm_setsockopt_creds_unix_sock(int sock)
83{
84 return -1;
85}
86#endif /* _UNIX_STUB_H */
This page took 0.025334 seconds and 4 git commands to generate.