Deleted Added
full compact
intro.2 (57686) intro.2 (57695)
1.\" Copyright (c) 1980, 1983, 1986, 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.\" @(#)intro.2 8.5 (Berkeley) 2/27/95
1.\" Copyright (c) 1980, 1983, 1986, 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.\" @(#)intro.2 8.5 (Berkeley) 2/27/95
33.\" $FreeBSD: head/lib/libc/sys/intro.2 57686 2000-03-02 09:14:21Z sheldonh $
33.\" $FreeBSD: head/lib/libc/sys/intro.2 57695 2000-03-02 14:54:02Z sheldonh $
34.\"
35.Dd February 27, 1995
36.Dt INTRO 2
37.Os BSD 4
38.Sh NAME
39.Nm intro
40.Nd introduction to system calls and error numbers
41.Sh SYNOPSIS

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

178for example,
179trying to read a write-only device such as a printer.
180.It Er 20 ENOTDIR Em "Not a directory" .
181A component of the specified pathname existed, but it was
182not a directory, when a directory was expected.
183.It Er 21 EISDIR Em "Is a directory" .
184An attempt was made to open a directory with write mode specified.
185.It Er 22 EINVAL Em "Invalid argument" .
34.\"
35.Dd February 27, 1995
36.Dt INTRO 2
37.Os BSD 4
38.Sh NAME
39.Nm intro
40.Nd introduction to system calls and error numbers
41.Sh SYNOPSIS

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

178for example,
179trying to read a write-only device such as a printer.
180.It Er 20 ENOTDIR Em "Not a directory" .
181A component of the specified pathname existed, but it was
182not a directory, when a directory was expected.
183.It Er 21 EISDIR Em "Is a directory" .
184An attempt was made to open a directory with write mode specified.
185.It Er 22 EINVAL Em "Invalid argument" .
186Some invalid argument was supplied. (For example,
186Some invalid argument was supplied.
187(For example,
187specifying an undefined signal to a
188.Xr signal 3
189or
190.Xr kill 2
191function).
192.It Er 23 ENFILE Em "Too many open files in system" .
193Maximum number of file descriptors allowable on the system
194has been reached and a requests for an open cannot be satisfied

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

666Every file has an independent set of access permissions for
667each of these classes. When an access check is made, the system
668decides if permission should be granted by checking the access
669information applicable to the caller.
670.Pp
671Read, write, and execute/search permissions on
672a file are granted to a process if:
673.Pp
188specifying an undefined signal to a
189.Xr signal 3
190or
191.Xr kill 2
192function).
193.It Er 23 ENFILE Em "Too many open files in system" .
194Maximum number of file descriptors allowable on the system
195has been reached and a requests for an open cannot be satisfied

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

667Every file has an independent set of access permissions for
668each of these classes. When an access check is made, the system
669decides if permission should be granted by checking the access
670information applicable to the caller.
671.Pp
672Read, write, and execute/search permissions on
673a file are granted to a process if:
674.Pp
674The process's effective user ID is that of the super-user. (Note:
675The process's effective user ID is that of the super-user.
676(Note:
675even the super-user cannot execute a non-executable file.)
676.Pp
677The process's effective user ID matches the user ID of the owner
678of the file and the owner permissions allow the access.
679.Pp
680The process's effective user ID does not match the user ID of the
681owner of the file, and either the process's effective
682group ID matches the group ID

--- 34 unchanged lines hidden ---
677even the super-user cannot execute a non-executable file.)
678.Pp
679The process's effective user ID matches the user ID of the owner
680of the file and the owner permissions allow the access.
681.Pp
682The process's effective user ID does not match the user ID of the
683owner of the file, and either the process's effective
684group ID matches the group ID

--- 34 unchanged lines hidden ---