X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Freadwrite.h;h=9923e8128e7234474376a0563dd8cb7442f95c14;hp=557ed0a00408b2cf15c2a696b2f75296d421e06e;hb=7966af5763c4aaca39df9bbfa9277ff15715c720;hpb=83f4233dde73280d45fcfb799add96cce32098ce diff --git a/src/common/readwrite.h b/src/common/readwrite.h index 557ed0a00..9923e8128 100644 --- a/src/common/readwrite.h +++ b/src/common/readwrite.h @@ -2,25 +2,19 @@ #define LTTNG_COMMON_READWRITE_H /* - * Copyright (C) 2013 - Mathieu Desnoyers + * Copyright (C) 2013 Mathieu Desnoyers * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License, version 2.1 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: LGPL-2.1-only * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License - * for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #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. @@ -29,9 +23,11 @@ * 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); +#ifdef __cplusplus +} +#endif + #endif /* LTTNG_COMMON_READWRITE_H */