diff options
| author | jruoho <jruoho@NetBSD.org> | 2010-05-04 06:53:35 +0000 |
|---|---|---|
| committer | jruoho <jruoho@NetBSD.org> | 2010-05-04 06:53:35 +0000 |
| commit | 805fdd47746e83673791bc5508ef0af545e9cbce (patch) | |
| tree | bc241fa4f04a2b375f7aa8a88762cb055076a2f6 /lib/libutil/stat_flags.3 | |
| parent | 45b87028bd1c9ac9cea9aabf8cc326215d612720 (diff) | |
Use table instead of a list.
Diffstat (limited to 'lib/libutil/stat_flags.3')
| -rw-r--r-- | lib/libutil/stat_flags.3 | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/lib/libutil/stat_flags.3 b/lib/libutil/stat_flags.3 index 4420cc38022..87b6407f680 100644 --- a/lib/libutil/stat_flags.3 +++ b/lib/libutil/stat_flags.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: stat_flags.3,v 1.5 2008/04/30 13:10:52 martin Exp $ +.\" $NetBSD: stat_flags.3,v 1.6 2010/05/04 06:53:35 jruoho Exp $ .\" .\" Copyright (c) 1996 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd December 14, 2006 +.Dd May 4, 2010 .Dt STAT_FLAGS 3 .Os .Sh NAME @@ -58,26 +58,29 @@ etc., to parse and/or print the structure. .Pp They recognize the following flags: -.Bl -tag -width "schg (SF_IMMUTABLE)" -.It Dv arch Pq Dv SF_ARCHIVED -file is archived. -.It Dv nodump Pq Dv UF_NODUMP -do not dump file. -.It Dv opaque Pq Dv UF_OPAQUE -directory is opaque in union filesystems. -.It Dv sappnd Pq Dv SF_APPEND -writes to the file may only append (superuser only). -.It Dv schg Pq Dv SF_IMMUTABLE -file cannot be changed, is immutable (superuser only). -.It Dv snap Pq Dv SF_SNAPSHOT -file is snapshot inode. -.It Dv uappnd Pq Dv UF_APPEND -writes to the file may only append (user only). -.It Dv uchg Pq Dv UF_IMMUTABLE -file cannot be changed, is immutable (user only). +.Bl -column -offset indent "uappnd " "SF_IMMUTABLE" "xxx" +.It Sy String Ta Sy Flag Ta Sy Description +.It Va arch Ta Dv SF_ARCHIVED Ta file is archived +.It Va nodump Ta Dv UF_NODUMP Ta do not dump file +.It Va opaque Ta Dv UF_OPAQUE Ta directory is opaque in union filesystems +.It Va sappnd Ta Dv SF_APPEND Ta writes to the file may only append +.It Va schg Ta Dv SF_IMMUTABLE Ta file cannot be changed; it is immutable +.It Va snap Ta Dv SF_SNAPSHOT Ta file is a snapshot inode +.It Va uappnd Ta Dv UF_APPEND Ta writes to the file may only append +.It Va uchg Ta Dv UF_IMMUTABLE Ta file cannot be changed; it is immutable .El .Pp The +.Dv SF_APPEND +and +.Dv SF_IMMUTABLE +flags are for the superuser only, whereas +.Dv UF_APPEND +and +.Dv UF_IMMUTABLE +are for the user only. +.Pp +The .Fn flags_to_string function converts the bits set in the .Fa flags |
