fFind(3)

✨ fFind(3) ✨

okay bestie, so this one lives in util/ulocks.h and it's literally just about finding a file lock πŸŽ€ no cap.


🌸 NAME 🌸

fFind β€” find a file lock πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <util/ulocks.h>

NEOERR *fFind(int *plock, const char *file);

πŸŽ€ ARGUMENTS πŸŽ€

  • plock β€” the spot where your lock is gonna go 🫢
  • file β€” the path of the file you're using as the lock, iykyk

✨ DESCRIPTION ✨

So basically, fFind goes and finds the file at the path file, and then hands you back a lock identifier for it in plock. that's it, that's the whole vibe πŸ’–

and if the file doesn't exist? it returns true. yes really. that's what it says. not me questioning it, just reporting the facts fr fr 😭

MT-Level: Safe. slay, thread-safe behaviour is giving main character energy πŸ‘‘


πŸ”₯ RETURN VALUE πŸ”₯

  • plock β€” gets set to the lock identifier, periodt ✨

🌈 SEE ALSO 🌈


and that's the whole page bestie!! this one's from ClearSilver, dated 12 July 2007 β€” so yes she's an elder but she ate and left no crumbs, respect the icon πŸ«‘πŸ’…βœ¨