summaryrefslogtreecommitdiff
path: root/lib/libc/gen/setmode.3
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-07-02 13:58:07 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-07-02 13:58:07 +0000
commit17b97e795b39ac51ad52ecbde65f26cff0e6b894 (patch)
treec9239d107416fc1f29709d66d34eef8d37528c64 /lib/libc/gen/setmode.3
parent806bc65972c0c7af114b306e5c0da7afdf49fd14 (diff)
deregister, better use of strtoul and always set ERANGE on invalid octal
permission. ok millert@; man page ok jmc@
Diffstat (limited to 'lib/libc/gen/setmode.3')
-rw-r--r--lib/libc/gen/setmode.37
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/gen/setmode.3 b/lib/libc/gen/setmode.3
index eac3d423bda..bcca49c5118 100644
--- a/lib/libc/gen/setmode.3
+++ b/lib/libc/gen/setmode.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: setmode.3,v 1.9 2003/06/02 20:18:34 millert Exp $
+.\" $OpenBSD: setmode.3,v 1.10 2004/07/02 13:58:06 otto Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -88,7 +88,10 @@ The
function may fail and set
.Va errno
for any of the errors specified for the library routine
-.Xr malloc 3 .
+.Xr malloc 3
+or to
+.Er ERANGE
+if an invalid octal value was specified.
.Sh SEE ALSO
.Xr chmod 1 ,
.Xr stat 2 ,