FIND(3)

πŸ“¦ version 93vu, in opensuse-leap 16.0

πŸ’– FIND(3) πŸ’–

okay bestie, this is FIND(3) from the Library Functions Manual β€” the fastfind algorithm interface, and it's giving β€œI know where your pathnames live” energy ✨

🌸 NAME 🌸

find β€” fastfind algorithm interface

✨ SYNOPSIS ✨

#include <find.h>

void* findopen(const char* pattern);
char* findnext(void* handle);
void findclose(void* handle);

πŸ¦‹ DESCRIPTION πŸ¦‹

These routines access the data generated by the fastfind algorithm. The data itself is generated by a standalone program that is run daily via cron or at. So like, the library is not out here doing the whole thing itself β€” it's reading the data, periodt πŸ’…

  • findopen β€” returns a handle to a fastfind stream for the ksh file pattern pattern 🫢
  • findnext β€” returns the next pathname that matches the pattern specified by handle. It returns 0 when no more pathnames match the pattern. no cap, 0 means we're done here πŸ’€
  • findclose β€” closes the fastfind stream for handle. bye bestie πŸ‘‹

πŸ’€ BUGS πŸ’€

These routines (the page spells it rotuines β€” a typo icon, honestly 😭) are only as good as the fastfind information, which is in the system administration domain. So if the fastfind info is a mess, these routines are a mess β€” iykyk 🫠

lowkey: the routines are only as good as the info they're reading, and that info lives in the sysadmin domain.

πŸŽ€ SEE ALSO πŸŽ€

tw(1), find(1), strmatch(3)

James A. Woods, Fast Find Algorithm, Usenix ;login:, February/March, 1983, p. 8


that's the tea, bestie β€” FIND(3) in the Library Functions Manual, no date listed, signing off with maximum sparkle πŸ’‹βœ¨

πŸ“¦ where this page comes from