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
- debian bookworm: atfs-dev 1.4pl6-15+b1
- ubuntu jammy: atfs-dev 1.4pl6-15
- ubuntu noble: atfs-dev 1.4pl6-16.1build1
- ubuntu resolute: atfs-dev 1.4pl6-17
- ubuntu stonking: atfs-dev 1.4pl6-17
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms