Deleted Added
full compact
chmod.2 (108087) chmod.2 (119893)
1.\" Copyright (c) 1980, 1991, 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.

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

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.\" @(#)chmod.2 8.1 (Berkeley) 6/4/93
1.\" Copyright (c) 1980, 1991, 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.

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

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.\" @(#)chmod.2 8.1 (Berkeley) 6/4/93
33.\" $FreeBSD: head/lib/libc/sys/chmod.2 108087 2002-12-19 09:40:28Z ru $
33.\" $FreeBSD: head/lib/libc/sys/chmod.2 119893 2003-09-08 19:57:22Z ru $
34.\"
35.Dd June 4, 1993
36.Dt CHMOD 2
37.Os
38.Sh NAME
39.Nm chmod ,
40.Nm fchmod ,
41.Nm lchmod

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

76system call is similar to
77.Fn chmod
78but does not follow symbolic links.
79.Pp
80A mode is created from
81.Em or'd
82permission bit masks
83defined in
34.\"
35.Dd June 4, 1993
36.Dt CHMOD 2
37.Os
38.Sh NAME
39.Nm chmod ,
40.Nm fchmod ,
41.Nm lchmod

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

76system call is similar to
77.Fn chmod
78but does not follow symbolic links.
79.Pp
80A mode is created from
81.Em or'd
82permission bit masks
83defined in
84.Aq Pa sys/stat.h :
84.In sys/stat.h :
85.Pp
86.Bd -literal -offset indent -compact
87#define S_IRWXU 0000700 /* RWX mask for owner */
88#define S_IRUSR 0000400 /* R for owner */
89#define S_IWUSR 0000200 /* W for owner */
90#define S_IXUSR 0000100 /* X for owner */
91
92#define S_IRWXG 0000070 /* RWX mask for group */

--- 145 unchanged lines hidden ---
85.Pp
86.Bd -literal -offset indent -compact
87#define S_IRWXU 0000700 /* RWX mask for owner */
88#define S_IRUSR 0000400 /* R for owner */
89#define S_IWUSR 0000200 /* W for owner */
90#define S_IXUSR 0000100 /* X for owner */
91
92#define S_IRWXG 0000070 /* RWX mask for group */

--- 145 unchanged lines hidden ---