Fix: Hide readwrite symbols in common lib
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 17 Sep 2015 17:29:29 +0000 (13:29 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 17 Sep 2015 17:29:29 +0000 (13:29 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/readwrite.c
src/common/readwrite.h

index a862d1cffd1f9e195ed294e13f1a3438dbf094f4..8a0b347f717eb76647c2aa0e81238285b96646b4 100644 (file)
@@ -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;
index 39f5a11358b1965fe28f9f52fc249118235b9e85..ab22fdc1eaf3dd26b5ae368227e4e0923295c096 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include <unistd.h>
+#include <common/macros.h>
 
 /*
  * 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 */
This page took 0.026582 seconds and 4 git commands to generate.