mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Generalize framework to register monitoring of files in nscd
nscd can clear caches when certain files change. The list of files was hardcoded so far and worked for nss_files and nss_dns and those modules which need no monitoring. nss_db, for instance, has its own set of files to monitor. Now the NSS modules themselves can request that certain files are monitored.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1996-1999,2001,2002,2003,2004,2007,2010
|
||||
/* Copyright (C) 1996-1999,2001,2002,2003,2004,2007,2010,2011
|
||||
Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
@@ -153,8 +153,10 @@ extern void *__nss_lookup_function (service_user *ni, const char *fct_name);
|
||||
libc_hidden_proto (__nss_lookup_function)
|
||||
|
||||
|
||||
/* Called by NSCD to disable recursive calls. */
|
||||
extern void __nss_disable_nscd (void);
|
||||
/* Called by NSCD to disable recursive calls and enable special handling
|
||||
when used in nscd. */
|
||||
struct traced_file;
|
||||
extern void __nss_disable_nscd (void (*) (size_t, struct traced_file *));
|
||||
|
||||
|
||||
typedef int (*db_lookup_function) (service_user **, const char *, const char *,
|
||||
|
||||
Reference in New Issue
Block a user