summaryrefslogtreecommitdiff
path: root/nis/nisplus-parser.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-04-29 20:20:05 +0000
committerUlrich Drepper <drepper@redhat.com>2006-04-29 20:20:05 +0000
commitd08a1d404d8b1fb21494fef2a3aff0022ae6de8b (patch)
treed990c1bec86604d7a0d9866d17240a60d02d8c8c /nis/nisplus-parser.h
parent5b4f9fad384b00014d95731bfbfc7822a7d6e185 (diff)
downloadglibc-d08a1d404d8b1fb21494fef2a3aff0022ae6de8b.tar.gz
* nis/nisplus-parser.h (_nss_nisplus_parse_pwent): Add entry
parameter. (_nss_nisplus_parse_pwent_chk): New prototype. * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent): Add entry parameter. Use it for column value in all accesses. Move checks for well-formed reply to... (_nss_nisplus_parse_pwent_chk): ...here. New function. * nis/nss_nisplus/nisplus-pwd.c: Support SETENT_BATCH_READ option.
Diffstat (limited to 'nis/nisplus-parser.h')
-rw-r--r--nis/nisplus-parser.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/nis/nisplus-parser.h b/nis/nisplus-parser.h
index e629119d6f..97580d224a 100644
--- a/nis/nisplus-parser.h
+++ b/nis/nisplus-parser.h
@@ -24,8 +24,12 @@
#include <grp.h>
#include <shadow.h>
-extern int _nss_nisplus_parse_pwent (nis_result *result, struct passwd *pw,
- char *buffer, size_t buflen, int *errnop);
+extern int _nss_nisplus_parse_pwent (nis_result *result, size_t entry,
+ struct passwd *pw, char *buffer,
+ size_t buflen, int *errnop);
+extern int _nss_nisplus_parse_pwent_chk (nis_result *result, struct passwd *pw,
+ char *buffer, size_t buflen,
+ int *errnop);
extern int _nss_nisplus_parse_grent (nis_result *result, u_long entry,
struct group *gr, char *buffer,
size_t buflen, int *errnop);