Module Name: src
Committed By: jruoho
Date: Tue May 4 06:53:35 UTC 2010
Modified Files:
src/lib/libutil: stat_flags.3
Log Message:
Use table instead of a list.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libutil/stat_flags.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libutil/stat_flags.3
diff -u src/lib/libutil/stat_flags.3:1.5 src/lib/libutil/stat_flags.3:1.6
--- src/lib/libutil/stat_flags.3:1.5 Wed Apr 30 13:10:52 2008
+++ src/lib/libutil/stat_flags.3 Tue May 4 06:53:35 2010
@@ -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 @@
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