b27d03eb0ebb5a1707bd178b22e3221ac438a889
1 #ifndef LTTNG_COMMON_READWRITE_H
2 #define LTTNG_COMMON_READWRITE_H
5 * Copyright (C) 2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 * SPDX-License-Identifier: LGPL-2.1-only
12 #include <common/macros.h>
15 * lttng_read and lttng_write take care of EINTR and partial read/write.
16 * Upon success, they return the "count" received as parameter.
17 * They can return a negative value if an error occurs.
18 * If a value lower than the requested "count" is returned, it means an
20 * The error can be checked by querying errno.
23 ssize_t
lttng_read(int fd
, void *buf
, size_t count
);
25 ssize_t
lttng_write(int fd
, const void *buf
, size_t count
);
27 #endif /* LTTNG_COMMON_READWRITE_H */
This page took 0.031493 seconds and 5 git commands to generate.