NSCD_FLUSH_CACHE(3)
π NSCD_FLUSH_CACHE(3)
okay bestie, welcome to NSCD_FLUSH_CACHE(3) from the Linux Programmer's Manual β yes, the whole glow-up is happening right here. π¦
π¦ NAME π¦
nscd_flush_cache β flush the cache of the Name Service Cache Daemon (nscd). Literally what it says on the tin, and honestly? iconic. β¨
β¨ SYNOPSIS β¨
#include <libnscd.h>
int nscd_flush_cache(const char *service);
π DESCRIPTION π
nscd_flush_cache() flushes the specified cache of nscd(8) for the service you pass in. This is important if user or group entries get modified, so that nscd does not continue to work with old data. No stale-data situations here, periodt. π
Allowed values for service are passwd, group or hosts.
πΈ RETURN VALUE πΈ
nscd_flush_cache() returns 0 on success. On error, -1 is returned, and errno is set appropriately. So if you see that -1, check errno β she's trying to tell you something. π
π ERRORS π
ENOENTβ thenscddaemon is not running.EINVALβ service does not contain a valid value.
π«Ά NOTES π«Ά
Old nscd implementations don't return an error if the service value is invalid. That's the whole note, bestie β no extras, no cap. π«Ά
π SEE ALSO π
π cute little sign-off π β this page comes from the Linux Programmer's Manual, dated 10/05/2006, and its full name is NSCD_FLUSH_CACHE(3). slay, bye! πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: libnscd-devel 2.0.2-160000.2.2 Β· LGPL-2.1+
- opensuse-leap 16.0: libnscd-devel 2.0.2-160000.2.2 Β· LGPL-2.1+
- opensuse-leap 16.0: libnscd-devel 2.0.2-160000.2.2 Β· LGPL-2.1+
- opensuse-leap 16.0: libnscd-devel 2.0.2-160000.2.2 Β· LGPL-2.1+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms