X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Freadwrite.h;h=ac3668a5ae801c8461b3a0a0a0cd0413935f1c51;hp=9923e8128e7234474376a0563dd8cb7442f95c14;hb=HEAD;hpb=7966af5763c4aaca39df9bbfa9277ff15715c720 diff --git a/src/common/readwrite.h b/src/common/readwrite.h deleted file mode 100644 index 9923e8128..000000000 --- a/src/common/readwrite.h +++ /dev/null @@ -1,33 +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 - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * 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. - */ -ssize_t lttng_read(int fd, void *buf, size_t count); -ssize_t lttng_write(int fd, const void *buf, size_t count); - -#ifdef __cplusplus -} -#endif - -#endif /* LTTNG_COMMON_READWRITE_H */