summaryrefslogtreecommitdiff
path: root/lib/full-write.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-05 23:01:03 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-05 23:01:03 +0000
commitd86254a25acd878c97af400f8ad1309ac6e307b3 (patch)
treec15293059bff93c15975ced98e23d97c13307d7e /lib/full-write.h
parent71ff7490f9162ef114c2b141b1a1305e6c20c439 (diff)
downloadcoreutils-d86254a25acd878c97af400f8ad1309ac6e307b3.tar.xz
Sync from gnulib.
Diffstat (limited to 'lib/full-write.h')
-rw-r--r--lib/full-write.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/full-write.h b/lib/full-write.h
index 8cd2e8157..2637903ec 100644
--- a/lib/full-write.h
+++ b/lib/full-write.h
@@ -1,6 +1,6 @@
/* An interface to write() that writes all it is asked to write.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002-2003 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
@@ -18,7 +18,18 @@
#include <stddef.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
/* Write COUNT bytes at BUF to descriptor FD, retrying if interrupted
or if partial writes occur. Return the number of bytes successfully
written, setting errno if that is less than COUNT. */
extern size_t full_write (int fd, const void *buf, size_t count);
+
+
+#ifdef __cplusplus
+}
+#endif