summary refs log tree commit diff
path: root/nscd/nscd.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-15 08:25:49 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-15 08:25:49 +0000
commitd19687d6ebc545b633e14c07429f7892a599d0b9 (patch)
tree033b6f123581d67026b2375b77175a93dfdc32dd /nscd/nscd.h
parent5d156bb641c71070aab9129fe1dac03287b9938a (diff)
downloadglibc-d19687d6ebc545b633e14c07429f7892a599d0b9.tar.gz
glibc-d19687d6ebc545b633e14c07429f7892a599d0b9.tar.xz
glibc-d19687d6ebc545b633e14c07429f7892a599d0b9.zip
Update.
2004-09-15  Ulrich Drepper  <drepper@redhat.com>

	* nscd/Makefile (rountines): Add nscd_getai.
	(nscd-modules): Add aicache.
	* nscd/aicache.c: New file.
	* nscd/nscd_getai.c: New file.
	* nscd/cache.c (prune_cache): Handle GETAI request type.
	* nscd/connections.c: Add GETAI support in request handling.
	* nscd/nscd-client.h (request_type): Add GETAI.
	Define ai_response_header and struct nscd_ai_result types.
	(struct datahead): Add aidata field.
	Declare __nscd_getai.
	* nscd/nscd.c: Add getaddrinfo definition to catch problems.
	* nscd/nscd.h: Declare addhstai and readdhstai.

	* sysdeps/posix/getaddrinfo.c: Add support for using cached results.

	* nscd/nscd-client.h  (struct datahead): Use uint8_t instead of bool.
Diffstat (limited to 'nscd/nscd.h')
-rw-r--r--nscd/nscd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/nscd/nscd.h b/nscd/nscd.h
index d32f5fed47..01c8ca11e0 100644
--- a/nscd/nscd.h
+++ b/nscd/nscd.h
@@ -193,6 +193,11 @@ extern void readdhstbynamev6 (struct database_dyn *db, struct hashentry *he,
 extern void readdhstbyaddrv6 (struct database_dyn *db, struct hashentry *he,
 			      struct datahead *dh);
 
+/* aicache.c */
+extern void addhstai (struct database_dyn *db, int fd, request_header *req,
+		      void *key, uid_t uid);
+extern void readdhstai (struct database_dyn *db, struct hashentry *he,
+			struct datahead *dh);
 
 /* mem.c */
 extern void *mempool_alloc (struct database_dyn *db, size_t len);