summaryrefslogtreecommitdiff
path: root/nscd/nscd-client.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-02-26 02:12:07 +0000
committerRoland McGrath <roland@gnu.org>2005-02-26 02:12:07 +0000
commita873f007cffea32297d52e8f0b19f5981a4e23b4 (patch)
tree91bf845e7c044e95cc27b433b0c5c652068dd0df /nscd/nscd-client.h
parent4d0ac7b9463ba779778bfdbaa84632b635866ae8 (diff)
Updated to fedora-glibc-2_3-20050226T0141
Diffstat (limited to 'nscd/nscd-client.h')
-rw-r--r--nscd/nscd-client.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/nscd/nscd-client.h b/nscd/nscd-client.h
index d49cb8136c..53bb4f4f15 100644
--- a/nscd/nscd-client.h
+++ b/nscd/nscd-client.h
@@ -28,6 +28,7 @@
#include <sys/types.h>
#include <atomic.h>
#include <nscd-types.h>
+#include <sys/uio.h>
/* Version number of the daemon interface */
@@ -309,4 +310,13 @@ extern const struct datahead *__nscd_cache_search (request_type type,
size_t keylen,
const struct mapped_database *mapped);
+/* Wrappers around read, readv and write that only read/write less than LEN
+ bytes on error or EOF. */
+extern ssize_t __readall (int fd, void *buf, size_t len)
+ attribute_hidden;
+extern ssize_t __readvall (int fd, const struct iovec *iov, int iovcnt)
+ attribute_hidden;
+extern ssize_t writeall (int fd, const void *buf, size_t len)
+ attribute_hidden;
+
#endif /* nscd.h */