basename(9)
π basename(9) π
okay so this is the Kernel API Manual entry for basename(9), and it is literally short but iconic. bestie, it is all about finding the last component of an hname. periodt. π
π NAME π
basename β find the last component of an hname β¨
β¨ SYNOPSIS β¨
const char * basename (const char *hname );
π ARGUMENTS π
hnameβ thehnameto find the base profile name component of (NOT NULL). like, do not even try to pass null, bestie π
π¦ RETURN π¦
the tail (base profile name) name component of an hname π
πΈ SEE ALSO πΈ
- Kernel file
./security/apparmor/include/lib.h aa_strneq(9)aa_dfa_null_transition(9)__policy_find(9)__policy_strn_find(9)
these are the lil friends in the same orbit, iykyk π«Ά
okay bye bestie π«Ά this page lives under ./security/apparmor/include, and the date on it is October 2026 βπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms