path variations don't occur if there's a / in the path
This commit is contained in:
parent
04e80984bf
commit
64cb1ed825
@ -1,6 +1,6 @@
|
||||
.\" $NetBSD: opendisk.3,v 1.4 1999/07/02 15:49:12 simonb Exp $
|
||||
.\" $NetBSD: opendisk.3,v 1.5 2001/09/26 07:21:42 lukem Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
.\" Copyright (c) 1997, 2001 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" This code is derived from software contributed to The NetBSD Foundation
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd September 22, 1997
|
||||
.Dd September 26, 2001
|
||||
.Dt OPENDISK 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -99,8 +99,18 @@ usually
|
||||
.El
|
||||
.Pp
|
||||
If
|
||||
.Fa path
|
||||
does not contain a
|
||||
slash
|
||||
.Pq Dq / ,
|
||||
the following variations are attempted:
|
||||
.Pp
|
||||
.Bl -dash -offset indent
|
||||
.It
|
||||
If
|
||||
.Fa iscooked
|
||||
is zero, then the following two variations are attempted:
|
||||
is zero:
|
||||
.Pp
|
||||
.Bl -tag -width "/dev/rpathX"
|
||||
.It Pa /dev/rpath
|
||||
.Fa path
|
||||
@ -114,10 +124,10 @@ and a suffix of
|
||||
.Sq Em X
|
||||
(q.v.).
|
||||
.El
|
||||
.Pp
|
||||
Otherwise (i.e.,
|
||||
.It
|
||||
If
|
||||
.Fa iscooked
|
||||
is non-zero), the following variations are attempted:
|
||||
is non-zero:
|
||||
.Bl -tag -width "/dev/rpathX"
|
||||
.It Pa /dev/path
|
||||
.Fa path
|
||||
@ -131,6 +141,7 @@ and a suffix of
|
||||
.Sq Em X
|
||||
(q.v.).
|
||||
.El
|
||||
.El
|
||||
.Sh RETURN VALUES
|
||||
An open file descriptor, or -1 if the
|
||||
.Xr open 2
|
||||
|
Loading…
Reference in New Issue
Block a user