X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Freadwrite.h;h=ac3668a5ae801c8461b3a0a0a0cd0413935f1c51;hp=b27d03eb0ebb5a1707bd178b22e3221ac438a889;hb=HEAD;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a diff --git a/src/common/readwrite.h b/src/common/readwrite.h deleted file mode 100644 index b27d03eb0..000000000 --- a/src/common/readwrite.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef LTTNG_COMMON_READWRITE_H -#define LTTNG_COMMON_READWRITE_H - -/* - * Copyright (C) 2013 Mathieu Desnoyers - * - * SPDX-License-Identifier: LGPL-2.1-only - * - */ - -#include -#include - -/* - * lttng_read and lttng_write take care of EINTR and partial read/write. - * Upon success, they return the "count" received as parameter. - * They can return a negative value if an error occurs. - * If a value lower than the requested "count" is returned, it means an - * error occurred. - * 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 */