summaryrefslogtreecommitdiffstats
path: root/contrib/cpio/lib/safe-read.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cpio/lib/safe-read.h')
-rw-r--r--contrib/cpio/lib/safe-read.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/contrib/cpio/lib/safe-read.h b/contrib/cpio/lib/safe-read.h
index cbe6e0b..3451955 100644
--- a/contrib/cpio/lib/safe-read.h
+++ b/contrib/cpio/lib/safe-read.h
@@ -1,5 +1,5 @@
/* An interface to read() that retries after interrupts.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2006 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
@@ -13,13 +13,23 @@
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. */
+ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#include <stddef.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#define SAFE_READ_ERROR ((size_t) -1)
/* Read up to COUNT bytes at BUF from descriptor FD, retrying if interrupted.
Return the actual number of bytes read, zero for EOF, or SAFE_READ_ERROR
upon error. */
extern size_t safe_read (int fd, void *buf, size_t count);
+
+
+#ifdef __cplusplus
+}
+#endif
OpenPOWER on IntegriCloud