STRPERM(3)
π NAME π
strperm β evaluate file permission expression π
This is the STRPERM(3) page from the Library Functions Manual, bestie. We're doing file permission expressions today, and yes, it's giving low-level but make it cute. β¨
πΈ SYNOPSIS πΈ
int strperm(char* s, char** e, int p)
π DESCRIPTION π
Okay bestie, so strperm applies a file permission expression in the nul-terminated string s to the initial file permission mask p. It returns the new permission mask β periodt. If e is not 0, then *e is set to point to the first unrecognized character in s β literally the first "wait, what?" character. π
A tape device specification is composed of one or more who-op-permission terms separated by ,. (Yes, tape device specification β that's the wording, iykyk. We keep the lore.) The who selects portions of the permission bits and may be any combination of:
uβ the user permission bits;gβ the group permission bits;oβ theotherpermission bits;aβ all permission bits.
If who is omitted, all permission bits are selected. The op specifies how the original permission p is to be modified:
+β|the new bits are set inp;-β the new bits are cleared inp;&β the new bits are and'd withp;=β the select bits inpare set equal to the new bits.
A permission expression term may also be an octal number. Octal specifications are inherently non-portable β no cap, that's just the truth. Refer to chmod(1) for an explanation of this form. π«Ά
π¦ SEE ALSO π¦
Catch you later, bestie β this was STRPERM(3) πβ¨ The footer didn't give us a source/version or date, so that's the whole tea: just STRPERM(3), and we're out. π
π¦ where this page comes from
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms