Scroll to navigation

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

The nscd daemon is not running.
service does not contain a valid value.

NOTES

Old nscd implementations don't return an error if the service value is invalid.

SEE ALSO

nscd(8)

10/05/2006 Linux Programmer's Manual