diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-02 11:16:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-02 11:16:48 +0000 |
commit | 98e1a6f4bec9e9070c764ce030fd0dbc2507b395 (patch) | |
tree | 2067a93696822e56b8e86716cdbe0b4f32e80fa0 /sbin/mknod/mknod.8 | |
parent | 9820aa6ec402f684eaf562aa3853b28d0a9dd387 (diff) |
use strtoul and check errors; from freebsd
Diffstat (limited to 'sbin/mknod/mknod.8')
-rw-r--r-- | sbin/mknod/mknod.8 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sbin/mknod/mknod.8 b/sbin/mknod/mknod.8 index 1e78961fdc2..3c9cd8bd88e 100644 --- a/sbin/mknod/mknod.8 +++ b/sbin/mknod/mknod.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mknod.8,v 1.2 1996/06/23 14:31:03 deraadt Exp $ +.\" $OpenBSD: mknod.8,v 1.3 1996/08/02 11:16:47 deraadt Exp $ .\" $NetBSD: mknod.8,v 1.9 1995/08/10 23:47:32 jtc Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -92,6 +92,14 @@ The minor device number tells the kernel which subunit the node corresponds to on the device; for example, a subunit may be a filesystem partition or a tty line. +.Pp +Major and minor device numbers can be given in any format acceptable to +.Xr strtoul 3 , +so that a leading +.Ql 0x +indicates a hexadecimal number, and a leading +.Ql 0 +will cause the number to be interpreted as octal. .El .Sh SEE ALSO .Xr mknod 2 , |