projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: consumer.hpp: coding style indentation fix
[lttng-tools.git]
/
src
/
common
/
readwrite.cpp
diff --git
a/src/common/readwrite.cpp
b/src/common/readwrite.cpp
index 8e901c9fec81f0027d120064ed90572765710ea6..a9671a5d9e736df7a0d9dbf5b26c55285d903d14 100644
(file)
--- a/
src/common/readwrite.cpp
+++ b/
src/common/readwrite.cpp
@@
-6,12
+6,12
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
-#include <limits.h>
-#include <unistd.h>
+#include "readwrite.hpp"
#include <common/compat/errno.hpp>
#include <common/compat/errno.hpp>
-#include "readwrite.hpp"
+#include <limits.h>
+#include <unistd.h>
/*
* lttng_read and lttng_write take care of EINTR and partial read/write.
/*
* lttng_read and lttng_write take care of EINTR and partial read/write.
@@
-40,7
+40,7
@@
ssize_t lttng_read(int fd, void *buf, size_t count)
ret = read(fd, (char *) buf + i, count - i);
if (ret < 0) {
if (errno == EINTR) {
ret = read(fd, (char *) buf + i, count - i);
if (ret < 0) {
if (errno == EINTR) {
- continue;
/* retry operation */
+ continue; /* retry operation */
} else {
goto error;
}
} else {
goto error;
}
@@
-77,7
+77,7
@@
ssize_t lttng_write(int fd, const void *buf, size_t count)
ret = write(fd, (char *) buf + i, count - i);
if (ret < 0) {
if (errno == EINTR) {
ret = write(fd, (char *) buf + i, count - i);
if (ret < 0) {
if (errno == EINTR) {
- continue;
/* retry operation */
+ continue; /* retry operation */
} else {
goto error;
}
} else {
goto error;
}
This page took
0.023177 seconds
and
4
git commands to generate.