projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add lttng_ust_ prefix before objd_unref
[lttng-ust.git]
/
include
/
ust
/
share.h
diff --git
a/include/ust/share.h
b/include/ust/share.h
index 7bdeb5d211786deff767ad5f5b7843be1a2f6486..cecfaa17045b5337b037d361c855580df229b79b 100644
(file)
--- a/
include/ust/share.h
+++ b/
include/ust/share.h
@@
-1,4
+1,5
@@
-/* Copyright (C) 2009 Pierre-Marc Fournier
+/*
+ * Copyright (C) 2009 Pierre-Marc Fournier
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@
-27,7
+28,8
@@
#include <errno.h>
#include <errno.h>
-/* This write is patient because it restarts if it was incomplete.
+/*
+ * This write is patient because it restarts if it was incomplete.
*/
static __inline__ ssize_t patient_write(int fd, const void *buf, size_t count)
*/
static __inline__ ssize_t patient_write(int fd, const void *buf, size_t count)
@@
-37,16
+39,16
@@
static __inline__ ssize_t patient_write(int fd, const void *buf, size_t count)
for(;;) {
result = write(fd, bufc, count);
for(;;) {
result = write(fd, bufc, count);
- if(result == -1 && errno == EINTR) {
+ if
(result == -1 && errno == EINTR) {
continue;
}
continue;
}
- if(result <= 0) {
+ if
(result <= 0) {
return result;
}
count -= result;
bufc += result;
return result;
}
count -= result;
bufc += result;
- if(count == 0) {
+ if
(count == 0) {
break;
}
}
break;
}
}
@@
-61,21
+63,21
@@
static __inline__ ssize_t patient_send(int fd, const void *buf, size_t count, in
for(;;) {
result = send(fd, bufc, count, flags);
for(;;) {
result = send(fd, bufc, count, flags);
- if(result == -1 && errno == EINTR) {
+ if
(result == -1 && errno == EINTR) {
continue;
}
continue;
}
- if(result <= 0) {
+ if
(result <= 0) {
return result;
}
count -= result;
bufc += result;
return result;
}
count -= result;
bufc += result;
- if(count == 0) {
+ if
(count == 0) {
break;
}
}
break;
}
}
- return bufc
-(const char *)
buf;
+ return bufc
- (const char *)
buf;
}
#endif /* UST_SHARE_H */
}
#endif /* UST_SHARE_H */
This page took
0.027283 seconds
and
4
git commands to generate.