From: Jérémie Galarneau Date: Thu, 17 Sep 2015 17:29:29 +0000 (-0400) Subject: Fix: Hide readwrite symbols in common lib X-Git-Tag: v2.8.0-rc1~328 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=73ec1cf980a0685ef6443de2fb8ca9fae4a20da3;p=lttng-tools.git Fix: Hide readwrite symbols in common lib Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/readwrite.c b/src/common/readwrite.c index a862d1cff..8a0b347f7 100644 --- a/src/common/readwrite.c +++ b/src/common/readwrite.c @@ -32,6 +32,7 @@ * error occured. * The error can be checked by querying errno. */ +LTTNG_HIDDEN ssize_t lttng_read(int fd, void *buf, size_t count) { size_t i = 0; @@ -69,6 +70,7 @@ error: } } +LTTNG_HIDDEN ssize_t lttng_write(int fd, const void *buf, size_t count) { size_t i = 0; diff --git a/src/common/readwrite.h b/src/common/readwrite.h index 39f5a1135..ab22fdc1e 100644 --- a/src/common/readwrite.h +++ b/src/common/readwrite.h @@ -19,6 +19,7 @@ */ #include +#include /* * lttng_read and lttng_write take care of EINTR and partial read/write. @@ -28,7 +29,9 @@ * error occured. * The error can be checked by querying errno. */ +LTTNG_HIDDEN ssize_t lttng_read(int fd, void *buf, size_t count); +LTTNG_HIDDEN ssize_t lttng_write(int fd, const void *buf, size_t count); #endif /* LTTNG_COMMON_READWRITE_H */