summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nscd/cachelib.c
Commit message (Collapse)AuthorAgeFilesLines
* Add the possibility to specify a threshold for the number of negative cachese2012-07-041-0/+26
| | | | | | | | | | | | | | | | | | | | | | | results required to have the cache return lookup failure. A new configuration parameter is introduced, which must be set to a value greater than 1 to activate this feature. The default behavior is unchanged. The purpose of this change is to allow probes for the existence of an entry (which are expected to fail), before that entry is added to one of the queried databases, without the cache returning the stale information from the probe query until that cache entry expires. If, for example, a new user account is created after checking that the new account name is available, the negative cache entry would prevent immediate access to the account. For that example, the new configuration option negative-confidence-threshold passwd 2 will require a second negative query result to consider the negative cache entry for a passwd entry valid, but if the user account has been created between the queries, then the positive query result from the second query will be cached and returned.
* Remove casts from {c,m,re}alloc() and simplify sizeof().des2009-06-131-22/+22
| | | | MFC after: 1 week
* Explain to the compiler why the aliasing we're doing is OK.des2009-06-131-8/+8
| | | | MFC after: 1 week
* Change hashtable_index_t to unsigned.des2009-06-131-4/+2
| | | | | | Generate prototypes for our hash table. MFC after: 1 week
* Further #include cleanup.des2009-06-131-0/+2
| | | | MFC after: 1 week
* Slightly adjust code logic: we allocate a "size"ed length of memory, notdelphij2008-10-231-5/+5
| | | | size+1. Use strlcpy() to avoid using - 1 as length for strncpy().
* Reduce code duplication: use calloc instead of allocing and memsetdelphij2008-10-121-27/+11
| | | | | | afterward. Approved by: bushman
* - Extend the nsswitch to support Services, Protocols and Rpcume2006-04-281-0/+1234
databases. - Make nsswitch support caching. Submitted by: Michael Bushkov <bushman__at__rsu.ru> Sponsored by: Google Summer of Code 2005
OpenPOWER on IntegriCloud