From 2666d441c2d8107b1987b869714189af64b954c6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 14 Jun 2011 22:21:51 -0400 Subject: Reenable nss_db with a completely new implementation No longer is Berkeley db used. Instead a simple hash function is used. The database files are not updated once they are created and therefore no complicated database is needed. --- nss/nss_files/files-XXX.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nss/nss_files/files-XXX.c') diff --git a/nss/nss_files/files-XXX.c b/nss/nss_files/files-XXX.c index 852b58a7e5..1a6fa0ddd5 100644 --- a/nss/nss_files/files-XXX.c +++ b/nss/nss_files/files-XXX.c @@ -1,5 +1,5 @@ /* Common code for file-based databases in nss_files module. - Copyright (C) 1996-1999,2001,2002,2004,2007,2008 + Copyright (C) 1996-1999,2001,2002,2004,2007,2008,2011 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -306,15 +306,15 @@ CONCAT(_nss_files_get,ENTNAME_r) (struct STRUCTURE *result, char *buffer, NAME is the name of the lookup; e.g. `hostbyname'. - KEYSIZE and KEYPATTERN are ignored here but used by ../nss_db/db-XXX.c. + DB_CHAR, KEYPATTERN, KEYSIZE are ignored here but used by db-XXX.c + e.g. `1 + sizeof (id) * 4'. - PROTO describes the arguments for the lookup key; - e.g. `const char *hostname'. + PROTO is the potentially empty list of other parameters. BREAK_IF_MATCH is a block of code which compares `struct STRUCTURE *result' to the lookup key arguments and does `break;' if they match. */ -#define DB_LOOKUP(name, keysize, keypattern, break_if_match, proto...) \ +#define DB_LOOKUP(name, db_char, keysize, keypattern, break_if_match, proto...)\ enum nss_status \ _nss_files_get##name##_r (proto, \ struct STRUCTURE *result, char *buffer, \ -- cgit 1.4.1