about summary refs log tree commit diff
path: root/nis/nss-nis.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-04-29 01:14:07 +0000
committerUlrich Drepper <drepper@redhat.com>2006-04-29 01:14:07 +0000
commite0d4e91d2b0e8069fc044899cf04a41db3612ffb (patch)
tree6a3f542af192521f75572d7f2cf239ed68478288 /nis/nss-nis.h
parent4eaa9bb48b319803544909a085651fc6ff4a9ea1 (diff)
downloadglibc-e0d4e91d2b0e8069fc044899cf04a41db3612ffb.tar.gz
glibc-e0d4e91d2b0e8069fc044899cf04a41db3612ffb.tar.xz
glibc-e0d4e91d2b0e8069fc044899cf04a41db3612ffb.zip
* nis/nss_nis/nis-spwd.c (internal_nis_getspent_r): Remove data
	variable.

	* nis/nss-nis.h: Define response_t and intern_t.  Declare _nis_saveit.
	* nis/nss_nis/nis-pwd.c: Remove response_t and intern_t definition.
	(saveit): Renamed to _nis_saveit.  Take parameter which is pointer
	to the intern_t object.  Change all users.
	* nis/nss_nis/nis-grp.c: Remove response_t, intern_t, and saveit
	definition.  Use _nis_saveit instead of saveit.
	* nis/nss_nis/nis-service.c: Likewise.
	* nis/nss_nis/nis-initgroups.c: Likewise.
	(internal_setgrent): Adjust for buffer handling.
	(internal_getgrent_r): Likewise.
	* nis/nss_nis/nis-rpc.c: Likewise.
Diffstat (limited to 'nis/nss-nis.h')
-rw-r--r--nis/nss-nis.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/nis/nss-nis.h b/nis/nss-nis.h
index cdf34c648f..5ac968e28e 100644
--- a/nis/nss-nis.h
+++ b/nis/nss-nis.h
@@ -36,4 +36,24 @@ yperr2nss (int errval)
   return __yperr2nss_tab[(unsigned int) errval];
 }
 
+
+struct response_t
+{
+  struct response_t *next;
+  size_t size;
+  char mem[0];
+};
+
+typedef struct intern_t
+{
+  struct response_t *start;
+  struct response_t *next;
+  size_t offset;
+} intern_t;
+
+
+extern int _nis_saveit (int instatus, char *inkey, int inkeylen, char *inval,
+			int invallen, char *indata) attribute_hidden;
+
+
 #endif /* nis/nss-nis.h */