X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fpipe.c;h=2544f7b45f76265a8d757d540686953047092758;hp=09e905de4fb64f1819a9cf5b3b8cdfc6281c015b;hb=a247c6e01e8840f757c5806dfcd2c7dd548bbaa2;hpb=d5d516999a7f74b8906bd759533ba14fb40e5ae4 diff --git a/src/common/pipe.c b/src/common/pipe.c index 09e905de4..2544f7b45 100644 --- a/src/common/pipe.c +++ b/src/common/pipe.c @@ -119,6 +119,7 @@ end: * * Return a newly allocated lttng pipe on success or else NULL. */ +LTTNG_HIDDEN struct lttng_pipe *lttng_pipe_open(int flags) { int ret; @@ -166,6 +167,7 @@ error: * * Return 0 on success else a negative value. */ +LTTNG_HIDDEN int lttng_pipe_read_close(struct lttng_pipe *pipe) { int ret; @@ -185,6 +187,7 @@ int lttng_pipe_read_close(struct lttng_pipe *pipe) * * Return 0 on success else a negative value. */ +LTTNG_HIDDEN int lttng_pipe_write_close(struct lttng_pipe *pipe) { int ret; @@ -203,6 +206,7 @@ int lttng_pipe_write_close(struct lttng_pipe *pipe) * * Return 0 on success else a negative value. */ +LTTNG_HIDDEN int lttng_pipe_close(struct lttng_pipe *pipe) { int ret, ret_val = 0; @@ -225,6 +229,7 @@ int lttng_pipe_close(struct lttng_pipe *pipe) /* * Close and destroy a lttng pipe object. Finally, pipe is freed. */ +LTTNG_HIDDEN void lttng_pipe_destroy(struct lttng_pipe *pipe) { int ret; @@ -261,6 +266,7 @@ void lttng_pipe_destroy(struct lttng_pipe *pipe) * Return "count" on success. Return < count on error. errno can be used * to check the actual error. */ +LTTNG_HIDDEN ssize_t lttng_pipe_read(struct lttng_pipe *pipe, void *buf, size_t count) { ssize_t ret; @@ -286,6 +292,7 @@ error: * Return "count" on success. Return < count on error. errno can be used * to check the actual error. */ +LTTNG_HIDDEN ssize_t lttng_pipe_write(struct lttng_pipe *pipe, const void *buf, size_t count) {