summaryrefslogtreecommitdiff
path: root/lib/libutil/opendev.3
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2022-08-26 21:47:17 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2022-08-26 21:47:17 +0000
commit643a03d5ac6ec220f395c8d21dff456190abd253 (patch)
treee21b99b650832765dacf618630b10e7f8501bde4 /lib/libutil/opendev.3
parent23509175c606068b2cd0d904271d811ca20c826e (diff)
Backout "Only return file descriptors to block or character devices"
mount_mfs(8) no monger mounts "/build" with the following fstab(5) entry: /dev/sd0b /build mfs rw,noperm,nodev,nosuid,-s=2064348,noauto as found out by bluhm the hard way.
Diffstat (limited to 'lib/libutil/opendev.3')
-rw-r--r--lib/libutil/opendev.312
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/libutil/opendev.3 b/lib/libutil/opendev.3
index ae6ce343007..0046d052e9c 100644
--- a/lib/libutil/opendev.3
+++ b/lib/libutil/opendev.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: opendev.3,v 1.23 2022/08/25 17:09:54 kn Exp $
+.\" $OpenBSD: opendev.3,v 1.24 2022/08/26 21:47:16 kn Exp $
.\"
.\" Copyright (c) 2000, Todd C. Miller. All rights reserved.
.\" Copyright (c) 1996, Jason Downs. All rights reserved.
@@ -24,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: August 25 2022 $
+.Dd $Mdocdate: August 26 2022 $
.Dt OPENDEV 3
.Os
.Sh NAME
@@ -90,12 +90,10 @@ is not
.Dv NULL ,
it is modified to point at the fully expanded device name.
.Sh RETURN VALUES
-If successful,
+The
.Fn opendev
-returns a file descriptor.
-Otherwise, a value of -1 is returned and
-.Va errno
-is set to indicate the error.
+return value and errors are the same as the return value and errors of
+.Xr open 2 .
.Sh SEE ALSO
.Xr open 2 ,
.Xr getrawpartition 3 ,