projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[gnulib.git]
/
lib
/
safe-write.h
diff --git
a/lib/safe-write.h
b/lib/safe-write.h
index
25d1a4d
..
ab1f45b
100644
(file)
--- a/
lib/safe-write.h
+++ b/
lib/safe-write.h
@@
-17,7
+17,9
@@
#include <stddef.h>
#include <stddef.h>
+#define SAFE_WRITE_ERROR ((size_t) -1)
+
/* Write up to COUNT bytes at BUF to descriptor FD, retrying if interrupted.
/* Write up to COUNT bytes at BUF to descriptor FD, retrying if interrupted.
- Return the actual number of bytes written, zero for EOF, or
(size_t) -1
-
for a
n error. */
+ Return the actual number of bytes written, zero for EOF, or
SAFE_WRITE_ERROR
+
upo
n error. */
extern size_t safe_write (int fd, const void *buf, size_t count);
extern size_t safe_write (int fd, const void *buf, size_t count);