diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-02-22 22:58:32 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-02-22 22:58:32 +0000 |
commit | d2dc7d84732fc832aaac4891f84d38e3748f1af7 (patch) | |
tree | d67a0482ebca5bff2bc881237fd69bf4c39901ea /nscd/aicache.c | |
parent | 804bb90a5a19c5d5dc00139b9ce305cda8f3c3d4 (diff) | |
download | glibc-d2dc7d84732fc832aaac4891f84d38e3748f1af7.tar glibc-d2dc7d84732fc832aaac4891f84d38e3748f1af7.tar.gz glibc-d2dc7d84732fc832aaac4891f84d38e3748f1af7.tar.bz2 glibc-d2dc7d84732fc832aaac4891f84d38e3748f1af7.zip |
* nscd/nscd-client.h: Include sys/uio.h.
(__readall, __readvall, writeall): New prototypes.
* nscd/connections.c (writeall): New function.
(handle_request): Use it.
* nscd/aicache.c (addhstaiX): Likewise.
* nscd/initgrcache.c (addinitgroupsX): Likewise.
* nscd/hstcache.c (cache_addhst): Likewise.
* nscd/grpcache.c (cache_addgr): Likewise.
* nscd/pwdcache.c (cache_addpw): Likewise.
* nscd/nscd_helper.c (__readall, __readvall): New functions.
* nscd/nscd_getai.c (__nscd_getai): Use them.
* nscd/nscd_getpw_r.c (__nscd_getpw_r): Likewise.
* nscd/nscd_getgr_r.c (__nscd_getgr_r): Likewise.
* nscd/nscd_gethst_r.c (__nscd_gethst_r): Likewise.
* nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
Diffstat (limited to 'nscd/aicache.c')
-rw-r--r-- | nscd/aicache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nscd/aicache.c b/nscd/aicache.c index 4e0496ff44..bdd2a9b371 100644 --- a/nscd/aicache.c +++ b/nscd/aicache.c @@ -1,5 +1,5 @@ /* Cache handling for host lookup. - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2004. @@ -365,7 +365,7 @@ addhstaiX (struct database_dyn *db, int fd, request_header *req, wait. */ assert (fd != -1); - TEMP_FAILURE_RETRY (write (fd, &dataset->resp, total)); + writeall (fd, &dataset->resp, total); } goto out; |