projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add, forgotten in last commit.
[gnulib.git]
/
lib
/
safe-write.h
diff --git
a/lib/safe-write.h
b/lib/safe-write.h
index
25d1a4d
..
c194636
100644
(file)
--- a/
lib/safe-write.h
+++ b/
lib/safe-write.h
@@
-13,11
+13,13
@@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
- Inc., 5
9 Temple Place - Suite 330, Boston, MA 02111-1307
, USA. */
+ Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301
, USA. */
#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);