This commit is contained in:
Michael Kerrisk 2007-12-07 19:30:58 +00:00
parent 1731fd3f20
commit 6b6da70802
1 changed files with 18 additions and 11 deletions

View File

@ -221,7 +221,7 @@ socket? (Not in POSIX.1-1996.)
The following flags are defined for the
.I st_mode
field:
.RS
.RS 4
.TS
lB l l.
S_IFMT 0170000 bit mask for the file type bit fields
@ -364,15 +364,16 @@ Values that have been (or are) in use on various systems:
l l l l l.
hex name ls octal description
f000 S_IFMT 170000 mask for file type
0000 000000 SCO out-of-service inode, BSD unknown type
SVID-v2 and XPG2 have both 0 and 0100000
for ordinary file
0000 000000 SCO out-of-service inode; BSD unknown
type; SVID-v2 and XPG2 have both
0 and 0100000 for ordinary file
1000 S_IFIFO p| 010000 FIFO (named pipe)
2000 S_IFCHR c 020000 character special (V7)
3000 S_IFMPC 030000 multiplexed character special (V7)
4000 S_IFDIR d/ 040000 directory (V7)
5000 S_IFNAM 050000 XENIX named special file
with two subtypes, distinguished by \fIst_rdev\fP values 1, 2
with two subtypes, distinguished by
\fIst_rdev\fP values 1, 2
0001 S_INSEM s 000001 XENIX semaphore subtype of IFNAM
0002 S_INSHD m 000002 XENIX shared data subtype of IFNAM
6000 S_IFBLK b 060000 block special (V7)
@ -381,20 +382,26 @@ f000 S_IFMT 170000 mask for file type
9000 S_IFCMP 110000 VxFS compressed
9000 S_IFNWK n 110000 network special (HP-UX)
a000 S_IFLNK l@ 120000 symbolic link (BSD)
b000 S_IFSHAD 130000 Solaris shadow inode for ACL (not seen by userspace)
b000 S_IFSHAD 130000 Solaris shadow inode for ACL
(not seen by userspace)
c000 S_IFSOCK s= 140000 socket (BSD; also "S_IFSOC" on VxFS)
d000 S_IFDOOR D> 150000 Solaris door
e000 S_IFWHT w% 160000 BSD whiteout (not used for inode)
0200 S_ISVTX 001000 `sticky bit': save swapped text even after use (V7)
0200 S_ISVTX 001000 `sticky bit': save swapped text even
after use (V7)
reserved (SVID-v2)
On non-directories: don't cache this file (SunOS)
On directories: restricted deletion flag (SVID-v4.2)
On non-directories: don't cache this
file (SunOS)
On directories: restricted deletion
flag (SVID-v4.2)
0400 S_ISGID 002000 set-group-ID on execution (V7)
for directories: use BSD semantics for
propagation of GID
0400 S_ENFMT 002000 SysV file locking enforcement (shared with S_ISGID)
0400 S_ENFMT 002000 SysV file locking enforcement (shared
with S_ISGID)
0800 S_ISUID 004000 set-user-ID on execution (V7)
0800 S_CDF 004000 directory is a context dependent file (HP-UX)
0800 S_CDF 004000 directory is a context dependent
file (HP-UX)
.TE
A sticky command appeared in Version 32V AT&T UNIX.