Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys Merge duplicate mentions of EPERM, EACCESS, ......
details: https://anonhg.NetBSD.org/src/rev/01fb14e7f02b
branches: trunk
changeset: 488084:01fb14e7f02b
user: hubertf <hubertf%NetBSD.org@localhost>
date: Sat Jun 17 19:33:34 2000 +0000
description:
Merge duplicate mentions of EPERM, EACCESS, ... into one entry
(where applicable).
diffstat:
lib/libc/sys/chflags.2 | 12 +++++-------
lib/libc/sys/connect.2 | 7 +++----
lib/libc/sys/execve.2 | 13 +++++--------
lib/libc/sys/link.2 | 7 +++----
lib/libc/sys/open.2 | 20 ++++++++------------
lib/libc/sys/quotactl.2 | 16 +++++++---------
lib/libc/sys/rename.2 | 13 +++++--------
lib/libc/sys/rmdir.2 | 7 +++----
lib/libc/sys/truncate.2 | 12 +++++-------
lib/libc/sys/undelete.2 | 7 +++----
lib/libc/sys/unlink.2 | 14 ++++++--------
11 files changed, 53 insertions(+), 75 deletions(-)
diffs (truncated from 334 to 300 lines):
diff -r 00f2d981a831 -r 01fb14e7f02b lib/libc/sys/chflags.2
--- a/lib/libc/sys/chflags.2 Sat Jun 17 19:09:21 2000 +0000
+++ b/lib/libc/sys/chflags.2 Sat Jun 17 19:33:34 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: chflags.2,v 1.16 2000/04/17 14:31:21 mrg Exp $
+.\" $NetBSD: chflags.2,v 1.17 2000/06/17 19:33:34 hubertf Exp $
.\"
.\" Copyright (c) 1989, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -133,9 +133,8 @@
Too many symbolic links were encountered in translating the pathname.
.It Bq Er EPERM
The effective user ID does not match the owner of the file and
-the effective user ID is not the super-user.
-.It Bq Er EPERM
-The effective user ID is not the super-user and one or more of the
+the effective user ID is not the super-user, or
+the effective user ID is not the super-user and one or more of the
super-user-only flags for the named file would be changed.
.It Bq Er EOPNOTSUPP
The named file resides on a file system that does not support file
@@ -161,9 +160,8 @@
refers to a socket, not to a file.
.It Bq Er EPERM
The effective user ID does not match the owner of the file and
-the effective user ID is not the super-user.
-.It Bq Er EPERM
-The effective user ID is not the super-user and one or more of the
+the effective user ID is not the super-user, or
+the effective user ID is not the super-user and one or more of the
super-user-only flags for the file would be changed.
.It Bq Er EOPNOTSUPP
The file resides on a file system that does not support file flags.
diff -r 00f2d981a831 -r 01fb14e7f02b lib/libc/sys/connect.2
--- a/lib/libc/sys/connect.2 Sat Jun 17 19:09:21 2000 +0000
+++ b/lib/libc/sys/connect.2 Sat Jun 17 19:33:34 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: connect.2,v 1.16 2000/05/17 10:24:13 fair Exp $
+.\" $NetBSD: connect.2,v 1.17 2000/06/17 19:33:34 hubertf Exp $
.\"
.\" Copyright (c) 1983, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -147,9 +147,8 @@
.It Bq Er ENOENT
The named socket does not exist.
.It Bq Er EACCES
-Search permission is denied for a component of the path prefix.
-.It Bq Er EACCES
-Write access to the named socket is denied.
+Search permission is denied for a component of the path prefix, or
+write access to the named socket is denied.
.It Bq Er ELOOP
Too many symbolic links were encountered in translating the pathname.
.El
diff -r 00f2d981a831 -r 01fb14e7f02b lib/libc/sys/execve.2
--- a/lib/libc/sys/execve.2 Sat Jun 17 19:09:21 2000 +0000
+++ b/lib/libc/sys/execve.2 Sat Jun 17 19:33:34 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: execve.2,v 1.17 2000/05/08 10:15:17 soda Exp $
+.\" $NetBSD: execve.2,v 1.18 2000/06/17 19:33:34 hubertf Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -217,13 +217,10 @@
.It Bq Er ELOOP
Too many symbolic links were encountered in translating the pathname.
.It Bq Er EACCES
-Search permission is denied for a component of the path prefix.
-.It Bq Er EACCES
-The new process file is not an ordinary file.
-.It Bq Er EACCES
-The new process file mode denies execute permission.
-.It Bq Er EACCES
-The new process file is on a filesystem mounted with execution
+Search permission is denied for a component of the path prefix,
+the new process file is not an ordinary file,
+it's file mode denies execute permission, or
+it is on a filesystem mounted with execution
disabled
.Pf ( Dv MNT_NOEXEC
in
diff -r 00f2d981a831 -r 01fb14e7f02b lib/libc/sys/link.2
--- a/lib/libc/sys/link.2 Sat Jun 17 19:09:21 2000 +0000
+++ b/lib/libc/sys/link.2 Sat Jun 17 19:33:34 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: link.2,v 1.13 1999/12/02 21:42:37 kleink Exp $
+.\" $NetBSD: link.2,v 1.14 2000/06/17 19:33:34 hubertf Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -101,9 +101,8 @@
.It Bq Er ENOENT
A component of either path prefix does not exist.
.It Bq Er EACCES
-A component of either path prefix denies search permission.
-.It Bq Er EACCES
-The requested link requires writing in a directory with a mode
+A component of either path prefix denies search permission, or
+the requested link requires writing in a directory with a mode
that denies write permission.
.It Bq Er ELOOP
Too many symbolic links were encountered in translating one of the pathnames.
diff -r 00f2d981a831 -r 01fb14e7f02b lib/libc/sys/open.2
--- a/lib/libc/sys/open.2 Sat Jun 17 19:09:21 2000 +0000
+++ b/lib/libc/sys/open.2 Sat Jun 17 19:33:34 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: open.2,v 1.18 1999/12/02 21:42:38 kleink Exp $
+.\" $NetBSD: open.2,v 1.19 2000/06/17 19:33:34 hubertf Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -205,15 +205,12 @@
characters.
.It Bq Er ENOENT
.Dv O_CREAT
-is not set and the named file does not exist.
-.It Bq Er ENOENT
-A component of the path name that must exist does not exist.
+is not set and the named file does not exist, or
+a component of the path name that must exist does not exist.
.It Bq Er EACCES
-Search permission is denied for a component of the path prefix.
-.It Bq Er EACCES
-The required permissions (for reading and/or writing)
-are denied for the given flags.
-.It Bq Er EACCES
+Search permission is denied for a component of the path prefix,
+the required permissions (for reading and/or writing)
+are denied for the given flags, or
.Dv O_CREAT
is specified,
the file does not exist,
@@ -234,9 +231,8 @@
.It Bq Er ENXIO
The named file is a character special or block
special file, and the device associated with this special file
-does not exist.
-.It Bq Er ENXIO
-The named file is a
+does not exist, or
+the named file is a
.Tn FIFO,
.Dv O_NONBLOCK
and
diff -r 00f2d981a831 -r 01fb14e7f02b lib/libc/sys/quotactl.2
--- a/lib/libc/sys/quotactl.2 Sat Jun 17 19:09:21 2000 +0000
+++ b/lib/libc/sys/quotactl.2 Sat Jun 17 19:33:34 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: quotactl.2,v 1.14 2000/05/29 21:57:05 jdolecek Exp $
+.\" $NetBSD: quotactl.2,v 1.15 2000/06/17 19:33:34 hubertf Exp $
.\"
.\" Copyright (c) 1983, 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -164,9 +164,8 @@
.It Bq Er EACCES
In
.Dv Q_QUOTAON ,
-the quota file is not a plain file.
-.It Bq Er EACCES
-Search permission is denied for a component of a path prefix.
+the quota file is not a plain file, or
+search permission is denied for a component of a path prefix.
.It Bq Er ENOTDIR
A component of a path prefix was not a directory.
.It Bq Er ENAMETOOLONG
@@ -189,13 +188,12 @@
error occurred while reading from or writing
to a file containing quotas.
.It Bq Er EFAULT
-An invalid
+.Fa path
+points outside the process's allocated address space, or
+an invalid
.Fa addr
was supplied; the associated structure could not be copied in or out
-of the kernel.
-.It Bq Er EFAULT
-.Fa path
-points outside the process's allocated address space.
+of the kernel.
.It Bq Er EPERM
The call was privileged and the caller was not the super-user.
.El
diff -r 00f2d981a831 -r 01fb14e7f02b lib/libc/sys/rename.2
--- a/lib/libc/sys/rename.2 Sat Jun 17 19:09:21 2000 +0000
+++ b/lib/libc/sys/rename.2 Sat Jun 17 19:33:34 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: rename.2,v 1.11 1999/12/02 21:42:39 kleink Exp $
+.\" $NetBSD: rename.2,v 1.12 2000/06/17 19:33:34 hubertf Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -131,9 +131,8 @@
.Fa to
does not exist.
.It Bq Er EACCES
-A component of either path prefix denies search permission.
-.It Bq Er EACCES
-The requested link requires writing in a directory with a mode
+A component of either path prefix denies search permission, or
+the requested link requires writing in a directory with a mode
that denies write permission.
.It Bq Er EPERM
The directory containing
@@ -142,8 +141,7 @@
and neither the containing directory nor
.Fa from
are owned by the effective user ID.
-.It Bq Er EPERM
-The
+Or the
.Fa to
file exists,
the directory containing
@@ -155,8 +153,7 @@
.It Bq Er ELOOP
Too many symbolic links were encountered in translating either pathname.
.It Bq Er ENOTDIR
-A component of either path prefix is not a directory.
-.It Bq Er ENOTDIR
+A component of either path prefix is not a directory, or
.Fa from
is a directory, but
.Fa to
diff -r 00f2d981a831 -r 01fb14e7f02b lib/libc/sys/rmdir.2
--- a/lib/libc/sys/rmdir.2 Sat Jun 17 19:09:21 2000 +0000
+++ b/lib/libc/sys/rmdir.2 Sat Jun 17 19:33:34 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: rmdir.2,v 1.12 1999/12/02 21:42:39 kleink Exp $
+.\" $NetBSD: rmdir.2,v 1.13 2000/06/17 19:33:34 hubertf Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -81,9 +81,8 @@
.Ql \&..
in it.
.It Bq Er EACCES
-Search permission is denied for a component of the path prefix.
-.It Bq Er EACCES
-Write permission is denied on the directory containing the link
+Search permission is denied for a component of the path prefix, or
+write permission is denied on the directory containing the link
to be removed.
.It Bq Er EPERM
The directory containing the directory to be removed is marked sticky,
diff -r 00f2d981a831 -r 01fb14e7f02b lib/libc/sys/truncate.2
--- a/lib/libc/sys/truncate.2 Sat Jun 17 19:09:21 2000 +0000
+++ b/lib/libc/sys/truncate.2 Sat Jun 17 19:33:34 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: truncate.2,v 1.11 2000/05/28 09:41:52 jdolecek Exp $
+.\" $NetBSD: truncate.2,v 1.12 2000/06/17 19:33:34 hubertf Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -88,9 +88,8 @@
.It Bq Er ENOENT
The named file does not exist.
.It Bq Er EACCES
-Search permission is denied for a component of the path prefix.
-.It Bq Er EACCES
-The named file is not writable by the user.
+Search permission is denied for a component of the path prefix, or
+the named file is not writable by the user.
.It Bq Er ELOOP
Too many symbolic links were encountered in translating the pathname.
.It Bq Er EISDIR
@@ -116,9 +115,8 @@
.It Bq Er EINVAL
The
.Fa fd
-references a socket, not a file.
-.It Bq Er EINVAL
-The
+references a socket, not a file, or
+the
.Fa fd
is not open for writing.
.El
diff -r 00f2d981a831 -r 01fb14e7f02b lib/libc/sys/undelete.2
--- a/lib/libc/sys/undelete.2 Sat Jun 17 19:09:21 2000 +0000
+++ b/lib/libc/sys/undelete.2 Sat Jun 17 19:33:34 2000 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: undelete.2,v 1.6 1999/12/02 21:42:40 kleink Exp $
+.\" $NetBSD: undelete.2,v 1.7 2000/06/17 19:33:34 hubertf Exp $
.\"
.\" Copyright (c) 1994
.\" Jan-Simon Pendry
@@ -83,9 +83,8 @@
.It Bq Er ENOENT
The named whiteout does not exist.
.It Bq Er EACCES
-Search permission is denied for a component of the path prefix.
-.It Bq Er EACCES
-Write permission is denied on the directory containing the name
+Search permission is denied for a component of the path prefix, or
+write permission is denied on the directory containing the name
to be undeleted.
.It Bq Er ELOOP
Too many symbolic links were encountered in translating the pathname.
diff -r 00f2d981a831 -r 01fb14e7f02b lib/libc/sys/unlink.2
Home |
Main Index |
Thread Index |
Old Index