X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fsessiond-comm%2Finet.c;h=e8d3afef316696ebdef315e92e58870f5c784c52;hp=e049d021b04727f1ee6559063043f3d0ddada701;hb=32dd26fbc3c69fe677a7917535e10ace066e674c;hpb=7671f53cf3b6029a3bf00e502a0a58ac7a82e378 diff --git a/src/common/sessiond-comm/inet.c b/src/common/sessiond-comm/inet.c index e049d021b..e8d3afef3 100644 --- a/src/common/sessiond-comm/inet.c +++ b/src/common/sessiond-comm/inet.c @@ -47,6 +47,7 @@ static const struct lttcomm_proto_ops inet_ops = { /* * Creates an PF_INET socket. */ +__attribute__((visibility("hidden"))) int lttcomm_create_inet_sock(struct lttcomm_sock *sock, int type, int proto) { int val = 1, ret; @@ -77,6 +78,7 @@ error: /* * Bind socket and return. */ +__attribute__((visibility("hidden"))) int lttcomm_bind_inet_sock(struct lttcomm_sock *sock) { int ret; @@ -93,6 +95,7 @@ int lttcomm_bind_inet_sock(struct lttcomm_sock *sock) /* * Connect PF_INET socket. */ +__attribute__((visibility("hidden"))) int lttcomm_connect_inet_sock(struct lttcomm_sock *sock) { int ret, closeret; @@ -122,6 +125,7 @@ error_connect: * Do an accept(2) on the sock and return the new lttcomm socket. The socket * MUST be bind(2) before. */ +__attribute__((visibility("hidden"))) struct lttcomm_sock *lttcomm_accept_inet_sock(struct lttcomm_sock *sock) { int new_fd; @@ -163,6 +167,7 @@ error: /* * Make the socket listen using LTTNG_SESSIOND_COMM_MAX_LISTEN. */ +__attribute__((visibility("hidden"))) int lttcomm_listen_inet_sock(struct lttcomm_sock *sock, int backlog) { int ret; @@ -193,6 +198,7 @@ end: * * Return the size of received data. */ +__attribute__((visibility("hidden"))) ssize_t lttcomm_recvmsg_inet_sock(struct lttcomm_sock *sock, void *buf, size_t len, int flags) { @@ -229,6 +235,7 @@ ssize_t lttcomm_recvmsg_inet_sock(struct lttcomm_sock *sock, void *buf, * * Return the size of sent data. */ +__attribute__((visibility("hidden"))) ssize_t lttcomm_sendmsg_inet_sock(struct lttcomm_sock *sock, void *buf, size_t len, int flags) { @@ -271,6 +278,7 @@ ssize_t lttcomm_sendmsg_inet_sock(struct lttcomm_sock *sock, void *buf, /* * Shutdown cleanly and close. */ +__attribute__((visibility("hidden"))) int lttcomm_close_inet_sock(struct lttcomm_sock *sock) { int ret;