Deleted Added
full compact
chflags.2 (22117) chflags.2 (23660)
1.\" Copyright (c) 1989, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 15 unchanged lines hidden (view full) ---

24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
1.\" Copyright (c) 1989, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 15 unchanged lines hidden (view full) ---

24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)chflags.2 8.1 (Berkeley) 6/9/93
32.\" @(#)chflags.2 8.3 (Berkeley) 5/2/95
33.\"
33.\"
34.Dd June 9, 1993
34.Dd May 2, 1995
35.Dt CHFLAGS 2
36.Os
37.Sh NAME
38.Nm chflags ,
39.Nm fchflags
40.Nd set file flags
41.Sh SYNOPSIS
42.Fd #include <sys/stat.h>

--- 17 unchanged lines hidden (view full) ---

60.Pp
61.Bl -tag -width "SF_IMMUTABLE" -compact -offset indent
62.It UF_NODUMP
63Do not dump the file.
64.It UF_IMMUTABLE
65The file may not be changed.
66.It UF_APPEND
67The file may only be appended to.
35.Dt CHFLAGS 2
36.Os
37.Sh NAME
38.Nm chflags ,
39.Nm fchflags
40.Nd set file flags
41.Sh SYNOPSIS
42.Fd #include <sys/stat.h>

--- 17 unchanged lines hidden (view full) ---

60.Pp
61.Bl -tag -width "SF_IMMUTABLE" -compact -offset indent
62.It UF_NODUMP
63Do not dump the file.
64.It UF_IMMUTABLE
65The file may not be changed.
66.It UF_APPEND
67The file may only be appended to.
68.It UF_OPAQUE
69The directory is opaque when viewed through a union stack.
68.\".It ARCHIVED
69.\"File is archived.
70.It SF_IMMUTABLE
71The file may not be changed.
72.It SF_APPEND
73The file may only be appended to.
74.El
75.Pp
76The
77.Dq UF_IMMUTABLE
78and
79.Dq UF_APPEND
80flags may be set or unset by either the owner of a file or the super-user.
81.Pp
82The
83.Dq SF_IMMUTABLE
84and
85.Dq SF_APPEND
86flags may only be set or unset by the super-user.
70.\".It ARCHIVED
71.\"File is archived.
72.It SF_IMMUTABLE
73The file may not be changed.
74.It SF_APPEND
75The file may only be appended to.
76.El
77.Pp
78The
79.Dq UF_IMMUTABLE
80and
81.Dq UF_APPEND
82flags may be set or unset by either the owner of a file or the super-user.
83.Pp
84The
85.Dq SF_IMMUTABLE
86and
87.Dq SF_APPEND
88flags may only be set or unset by the super-user.
87They may be set at any time, but normally may only be unset when
89Attempts by the non-super-user to set the super-user only flags
90are silently ignored.
91These flags may be set at any time, but normally may only be unset when
88the system is in single-user mode.
89(See
90.Xr init 8
91for details.)
92.Sh RETURN VALUES
93Upon successful completion, a value of 0 is returned.
94Otherwise, -1 is returned and the global variable
95.Va errno

--- 42 unchanged lines hidden (view full) ---

138The file resides on a read-only file system.
139.It Bq Er EIO
140An
141.Tn I/O
142error occurred while reading from or writing to the file system.
143.El
144.Sh SEE ALSO
145.Xr chflags 1 ,
92the system is in single-user mode.
93(See
94.Xr init 8
95for details.)
96.Sh RETURN VALUES
97Upon successful completion, a value of 0 is returned.
98Otherwise, -1 is returned and the global variable
99.Va errno

--- 42 unchanged lines hidden (view full) ---

142The file resides on a read-only file system.
143.It Bq Er EIO
144An
145.Tn I/O
146error occurred while reading from or writing to the file system.
147.El
148.Sh SEE ALSO
149.Xr chflags 1 ,
146.Xr init 8
150.Xr init 8 ,
151.Xr mount_union 8
147.Sh HISTORY
148The
149.Nm chflags
150and
151.Nm fchflags
152functions first appeared in
153.Bx 4.4 .
152.Sh HISTORY
153The
154.Nm chflags
155and
156.Nm fchflags
157functions first appeared in
158.Bx 4.4 .