projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Docs: document safety of consumer_thread_is_ready access
[lttng-tools.git]
/
src
/
common
/
pipe.c
diff --git
a/src/common/pipe.c
b/src/common/pipe.c
index 5e2fc6c392b6a5734cebfa28dee50881a3f0f05f..00211238e603ebc605f2bc63578bfa82652c0f0b 100644
(file)
--- a/
src/common/pipe.c
+++ b/
src/common/pipe.c
@@
-15,7
+15,7
@@
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _
GNU
_SOURCE
+#define _
LGPL
_SOURCE
#include <assert.h>
#include <fcntl.h>
#include <unistd.h>
#include <assert.h>
#include <fcntl.h>
#include <unistd.h>
@@
-118,6
+118,7
@@
end:
*
* Return a newly allocated lttng pipe on success or else NULL.
*/
*
* Return a newly allocated lttng pipe on success or else NULL.
*/
+LTTNG_HIDDEN
struct lttng_pipe *lttng_pipe_open(int flags)
{
int ret;
struct lttng_pipe *lttng_pipe_open(int flags)
{
int ret;
@@
-165,6
+166,7
@@
error:
*
* Return 0 on success else a negative value.
*/
*
* Return 0 on success else a negative value.
*/
+LTTNG_HIDDEN
int lttng_pipe_read_close(struct lttng_pipe *pipe)
{
int ret;
int lttng_pipe_read_close(struct lttng_pipe *pipe)
{
int ret;
@@
-184,6
+186,7
@@
int lttng_pipe_read_close(struct lttng_pipe *pipe)
*
* Return 0 on success else a negative value.
*/
*
* Return 0 on success else a negative value.
*/
+LTTNG_HIDDEN
int lttng_pipe_write_close(struct lttng_pipe *pipe)
{
int ret;
int lttng_pipe_write_close(struct lttng_pipe *pipe)
{
int ret;
@@
-202,6
+205,7
@@
int lttng_pipe_write_close(struct lttng_pipe *pipe)
*
* Return 0 on success else a negative value.
*/
*
* Return 0 on success else a negative value.
*/
+LTTNG_HIDDEN
int lttng_pipe_close(struct lttng_pipe *pipe)
{
int ret, ret_val = 0;
int lttng_pipe_close(struct lttng_pipe *pipe)
{
int ret, ret_val = 0;
@@
-224,6
+228,7
@@
int lttng_pipe_close(struct lttng_pipe *pipe)
/*
* Close and destroy a lttng pipe object. Finally, pipe is freed.
*/
/*
* Close and destroy a lttng pipe object. Finally, pipe is freed.
*/
+LTTNG_HIDDEN
void lttng_pipe_destroy(struct lttng_pipe *pipe)
{
int ret;
void lttng_pipe_destroy(struct lttng_pipe *pipe)
{
int ret;
@@
-260,6
+265,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.
*/
* 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;
ssize_t lttng_pipe_read(struct lttng_pipe *pipe, void *buf, size_t count)
{
ssize_t ret;
@@
-285,6
+291,7
@@
error:
* Return "count" on success. Return < count on error. errno can be used
* to check the actual 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)
{
ssize_t lttng_pipe_write(struct lttng_pipe *pipe, const void *buf,
size_t count)
{
This page took
0.024659 seconds
and
4
git commands to generate.