X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Freadwrite.h;h=557ed0a00408b2cf15c2a696b2f75296d421e06e;hp=39f5a11358b1965fe28f9f52fc249118235b9e85;hb=9b63a4aa352c184984395c097f86d5e54c295012;hpb=33b141366b29aa086ecb8d06808d7ba91f83cb1e diff --git a/src/common/readwrite.h b/src/common/readwrite.h index 39f5a1135..557ed0a00 100644 --- a/src/common/readwrite.h +++ b/src/common/readwrite.h @@ -19,16 +19,19 @@ */ #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 occured. + * 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 */