atclass(3)

πŸ’– atclass(3) β€” ASO class handling πŸ’–

okay bestie so this is a page from the AtFS Toolkit Library β€” yes, the whole atclass(3) manual β€” and it's literally just two little functions that tell you stuff about your attributed software objects (asos). tiny page, big vibes. let's get into it 🫢


✨ NAME ✨

atFileClassExt, atIsDerived β€” ASO class handling


🌸 SYNOPSIS 🌸

#include <atfs.h>
#include <atfstk.h>

char *atFileClassExt (Af_key *aso);

int  atIsDerived (Af_key *aso);

like. two includes. two functions. we love a minimal queen. πŸ‘‘


πŸŽ€ DESCRIPTION πŸŽ€

okay so first up: atFileClassExt hands you back a short string β€” and when we say short we mean it, it's only one or two characters long β€” that shows off the class of the attributed software object (aso) you passed in. think of it as a little ✨vibe check✨ for your file.

and get this: it's a superset of the file class symbols that the ls -F command sticks onto filenames. so if you already know those, you're basically already fluent, no cap. πŸ’…

here's the full symbol lineup:

  • / β€” Directory. πŸ“
  • @ β€” Symbolic Link.
  • = β€” Socket.
  • * β€” Executable.
  • $ β€” Derived.
  • ^ β€” Locked. πŸ”’

and bestie, some of these can combine. in particular β€” especially β€” the circumflex (^) can be combined with any of the other symbols, which gives you a two-letter string instead of a one-letter one. so yeah, that's why it said one or two characters. it was foreshadowing. πŸ¦‹

then there's atIsDerived, which is the simpler sister function. she checks whether the aso you gave her lives in a derived object cache β€” in which case you get TRUE β€” or not β€” in which case you get FALSE. that's it. that's the whole function. honest work. 🌸


🌈 SEE ALSO 🌈


and that's the page, bestie!! go forth and class-ify your asos 🧚

this lil gem is from AtFStk-1.12, dated Fri Jun 25 16:39:35 1993 β€” yeah she's vintage, she's an icon, she's been serving since before we were born πŸ’œ

πŸ“¦ where this page comes from