FcDirCacheUnlink(3)
π FcDirCacheUnlink(3) β the fontconfig girlies' guide β¨
okay so this is a fontconfig manual page, section 3 (library functions, bestie π«Ά), and it's literally about yeeting cache files. stay with me, it's short and it slaps.
πΈ NAME πΈ
FcDirCacheUnlink β remove all the caches related to dir π§Ήβ¨
like, every single one. no crumbs left. periodt.
π¦ SYNOPSIS π¦
#include <fontconfig/fontconfig.h>
FcBool FcDirCacheUnlink (const FcChar8 *dir, FcConfig *config);
π DESCRIPTION π
okay so the vibe is: it scans the cache directories in config π and removes any instances of the cache file for dir. that's it, that's the whole function. she goes through config's cache dirs looking for the cache belonging to dir and just deletes them π
it returns FcFalse when some internal error occurs β like out of memory, etc. π so like, the function itself being sad gives you a FcFalse.
but here's the key detail, and it's giving "we don't care energy": errors actually unlinking any files are ignored. π«₯ like if unlink() fails? not her problem. she said "i tried π
" and moved on. the return value is not telling you about file-removal failures β only about internal errors.
ngl that last bit is the part people get wrong, so like, don't @ me when your files are still there and the return was FcTrue, iykyk.
π a little recap for the girlies π
- input
dirβ the directory whose caches get wiped π - input
configβ the config whose cache directories get scanned π - returns
FcBoolβFcFalseon internal errors (oom, etc), otherwise you're good β - unlink errors β ignored, no cap π
π sign-off π
this iconic little page came to you from Fontconfig 2.17.0, dated 27 June 2025 π she's giving library-function realness, she's giving "delete the cache and don't stress", and honestly? obsessed. mwah ππ₯
π¦ where this page comes from
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms