table of contents
NSCD_FLUSH_CACHE(3) | Linux Programmer's Manual | NSCD_FLUSH_CACHE(3) |
NAME¶
nscd_flush_cache - flush cache of Name Service Cache Daemon (nscd)
SYNOPSIS¶
#include <libnscd.h>
int nscd_flush_cache(const char *service);
DESCRIPTION¶
nscd_flush_cache() flushes the specified cache of nscd(8) for the given service. This is important if user or group entries are modified, so that nscd does not continue to work with old data.
Allowed values for service are passwd, group or hosts.
RETURN VALUE¶
nscd_flush_cache() returns zero on success. On error, -1 is returned, and errno is set appropriately.
ERRORS¶
NOTES¶
Old nscd implementations don't return an error if the service value is invalid.
SEE ALSO¶
10/05/2006 | Linux Programmer's Manual |