>> You can get HP-UX information at http://docs.hp.com if you have a
>> modern web browser.
> Have done, and there I found stat(5):
> another new one S_ISCDF(m) test for a context-dependent file
I have that as a S_ISUID alias that hides directories.
hex name ls octal description
0200 S_ISVTX 001000 save swapped text even after use
0200 001000 protects /tmp directories
0200 001000 does nothing on non-executable files
0400 S_ISGID 002000 set group ID on execution
0400 002000 set group ID on new files in a directory
0400 S_ENFMT 002000 SysV forced file locking
0800 S_ISUID 004000 set user ID on execution
0800 S_CDF 004000 HP-UX hidden directory
0800 004000 does nothing on non-executable files
> S_ISNWK(m) test for a network special
> chmod(2) doesn't say much interesting except mentioning ACLs.
> stat(2) mentions ACLs and Multi-Level Directories.
> ls(1) says "n" is the character for a network special file.
> "+" is displayed if there are ACLs, and ACLs don't work over NFS.
The '+' behavior is normal and standardized.
>> BTW, I believe many of these can't actually exist on disk.
>> Some of these (like S_IFSHAD AFAIK) are not seen by userspace.
> It'd be nice to know which ones.
OK, we can have:
d Appears in a directory when BSD filename types are used.
i Used in an on-disk inode or directory structure.
s Can be returned in struct stat.
Anything else that matters? In-kernel can have Linux-specific numbers,
so that doesn't matter.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
Please read the FAQ at http://www.tux.org/lkml/