Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libutil path variations don't occur if there's a / in th...



details:   https://anonhg.NetBSD.org/src/rev/721db36a2630
branches:  trunk
changeset: 515469:721db36a2630
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Sep 26 07:21:42 2001 +0000

description:
path variations don't occur if there's a / in the path

diffstat:

 lib/libutil/opendisk.3 |  25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 7f53cb8c0d1d -r 721db36a2630 lib/libutil/opendisk.3
--- a/lib/libutil/opendisk.3    Wed Sep 26 07:20:16 2001 +0000
+++ b/lib/libutil/opendisk.3    Wed Sep 26 07:21:42 2001 +0000
@@ -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 @@
 .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 @@
 .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 @@
 .Sq Em X
 (q.v.).
 .El
+.El
 .Sh RETURN VALUES
 An open file descriptor, or -1 if the
 .Xr open 2



Home | Main Index | Thread Index | Old Index