History log of /freebsd-current/usr.sbin/nscd/cachelib.c
Revision Date Author Comments
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 87959e27 13-Mar-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

nscd(8): let calloc(3) do the multiplying.

MFC after: 1 week


# a397989d 04-Jul-2012 Stefan Eßer <se@FreeBSD.org>

Add the possibility to specify a threshold for the number of negative cache
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.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 8eeaaffa 13-Jun-2009 Dag-Erling Smørgrav <des@FreeBSD.org>

Remove casts from {c,m,re}alloc() and simplify sizeof().

MFC after: 1 week


# 27f2bc9e 12-Jun-2009 Dag-Erling Smørgrav <des@FreeBSD.org>

Explain to the compiler why the aliasing we're doing is OK.

MFC after: 1 week


# 2bdde973 12-Jun-2009 Dag-Erling Smørgrav <des@FreeBSD.org>

Change hashtable_index_t to unsigned.
Generate prototypes for our hash table.

MFC after: 1 week


# a5a5d924 12-Jun-2009 Dag-Erling Smørgrav <des@FreeBSD.org>

Further #include cleanup.

MFC after: 1 week


# a3c4f724 22-Oct-2008 Xin LI <delphij@FreeBSD.org>

Slightly adjust code logic: we allocate a "size"ed length of memory, not
size+1. Use strlcpy() to avoid using - 1 as length for strncpy().


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 4f7df5c2 11-Oct-2008 Xin LI <delphij@FreeBSD.org>

Reduce code duplication: use calloc instead of allocing and memset
afterward.

Approved by: bushman


# 06a99fe3 27-Apr-2006 Hajimu UMEMOTO <ume@FreeBSD.org>

- Extend the nsswitch to support Services, Protocols and Rpc
databases.
- Make nsswitch support caching.

Submitted by: Michael Bushkov <bushman__at__rsu.ru>
Sponsored by: Google Summer of Code 2005