X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fpipe.h;h=2d4fc967d615d5520e20de6098c561ac49148850;hp=0bc2db3250ec8eb62bec5758245a69a2dfb0c001;hb=dce89628fd85a875a8dc511d861057f218f3c1c8;hpb=a247c6e01e8840f757c5806dfcd2c7dd548bbaa2 diff --git a/src/common/pipe.h b/src/common/pipe.h index 0bc2db325..2d4fc967d 100644 --- a/src/common/pipe.h +++ b/src/common/pipe.h @@ -76,6 +76,9 @@ static inline int lttng_pipe_get_writefd(struct lttng_pipe *pipe) LTTNG_HIDDEN struct lttng_pipe *lttng_pipe_open(int flags); LTTNG_HIDDEN +struct lttng_pipe *lttng_pipe_named_open(const char *path, mode_t mode, + int flags); +LTTNG_HIDDEN int lttng_pipe_write_close(struct lttng_pipe *pipe); LTTNG_HIDDEN int lttng_pipe_read_close(struct lttng_pipe *pipe); @@ -90,5 +93,11 @@ ssize_t lttng_pipe_read(struct lttng_pipe *pipe, void *buf, size_t count); LTTNG_HIDDEN ssize_t lttng_pipe_write(struct lttng_pipe *pipe, const void *buf, size_t count); +/* Returns and releases the read end of the pipe. */ +LTTNG_HIDDEN +int lttng_pipe_release_readfd(struct lttng_pipe *pipe); +/* Returns and releases the write end of the pipe. */ +LTTNG_HIDDEN +int lttng_pipe_release_writefd(struct lttng_pipe *pipe); #endif /* LTTNG_PIPE_H */