summaryrefslogtreecommitdiff
path: root/lib/libc/sys/chmod.2
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-11-18 07:10:09 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-11-18 07:10:09 +0000
commit2380e9f36bb924d447408dae2df085bacd3fca8d (patch)
tree6e7dec08d802bc1b8c3e346cfa57b26b6b9a56ac /lib/libc/sys/chmod.2
parent6880f3a4d4a660d40ce8c44fc24d9ff5217a691d (diff)
clarify EINVAL
Diffstat (limited to 'lib/libc/sys/chmod.2')
-rw-r--r--lib/libc/sys/chmod.28
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/sys/chmod.2 b/lib/libc/sys/chmod.2
index a87b3ac4686..a0091d7532b 100644
--- a/lib/libc/sys/chmod.2
+++ b/lib/libc/sys/chmod.2
@@ -1,3 +1,4 @@
+.\" $OpenBSD: chmod.2,v 1.4 1997/11/18 07:10:08 millert Exp $
.\" $NetBSD: chmod.2,v 1.7 1995/02/27 12:32:06 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -142,6 +143,9 @@ characters.
The named file does not exist.
.It Bq Er EACCES
Search permission is denied for a component of the path prefix.
+.It Bq Er EINVAL
+.Fa mode
+contains bits other than the file type and those described above.
.It Bq Er ELOOP
Too many symbolic links were encountered in translating the pathname.
.It Bq Er EPERM
@@ -157,7 +161,7 @@ An I/O error occurred while reading from or writing to the file system.
.El
.Pp
.Fn Fchmod
-will fail if:
+will fail and the file mode will be unchanged if:
.Bl -tag -width Er
.It Bq Er EBADF
The descriptor is not valid.
@@ -166,7 +170,7 @@ The descriptor is not valid.
refers to a socket, not to a file.
.It Bq Er EINVAL
.Fa mode
-is not valid, ie. contains extra bits.
+contains bits other than the file type and those described above.
.It Bq Er EROFS
The file resides on a read-only file system.
.It Bq Er EIO