summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-02-13 21:35:30 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:09:13 +0200
commit9ccabb6fae69fab4e9cca92b30aca342d8f08ac0 (patch)
tree69d1a331535b3888728592d0ffdb61a030f14602 /lib
parentececb6a1166fa69df89f6281f8613d8963fd9d7c (diff)
downloadexternal_gettext-9ccabb6fae69fab4e9cca92b30aca342d8f08ac0.zip
external_gettext-9ccabb6fae69fab4e9cca92b30aca342d8f08ac0.tar.gz
external_gettext-9ccabb6fae69fab4e9cca92b30aca342d8f08ac0.tar.bz2
Move lib/safe-write.h to gettext-tools/lib/safe-write.h.
Diffstat (limited to 'lib')
-rw-r--r--lib/safe-write.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/safe-write.h b/lib/safe-write.h
deleted file mode 100644
index ab1f45b..0000000
--- a/lib/safe-write.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/* An interface to write() that retries after interrupts.
- Copyright (C) 2002 Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-
-#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 SAFE_WRITE_ERROR
- upon error. */
-extern size_t safe_write (int fd, const void *buf, size_t count);