diff options
author | Jim Meyering <jim@meyering.net> | 2002-12-09 10:30:01 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-12-09 10:30:01 +0000 |
commit | 8e5b4e9c2bb787af474eb58a841bf99dc22f01fe (patch) | |
tree | b4ce32a7a4523e5bcd089cddef25c98c33877809 /lib | |
parent | b16ec81def1dcb9e6e28d4bfac519a4aaad3c749 (diff) | |
download | coreutils-8e5b4e9c2bb787af474eb58a841bf99dc22f01fe.tar.xz |
update from gnulib
Diffstat (limited to 'lib')
-rw-r--r-- | lib/safe-write.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/safe-write.h b/lib/safe-write.h index 25d1a4d48..ab1f45b4a 100644 --- a/lib/safe-write.h +++ b/lib/safe-write.h @@ -17,7 +17,9 @@ #include <stddef.h> +#define SAFE_WRITE_ERROR ((size_t) -1) + /* 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 an error. */ + Return the actual number of bytes written, zero for EOF, or SAFE_WRITE_ERROR + upon error. */ extern size_t safe_write (int fd, const void *buf, size_t count); |