summaryrefslogtreecommitdiffstats
path: root/usr.sbin/fdformat
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2000-01-23 12:49:42 +0000
committerasmodai <asmodai@FreeBSD.org>2000-01-23 12:49:42 +0000
commite4e4aa0eeab4df91c5ffe09e486fff8711d4ad78 (patch)
treea19065ae6514f821b37c0678e73d2c569df6d2af /usr.sbin/fdformat
parent69d6cb63b3f9e813588143c3b90d43a676e34c1a (diff)
downloadFreeBSD-src-e4e4aa0eeab4df91c5ffe09e486fff8711d4ad78.zip
FreeBSD-src-e4e4aa0eeab4df91c5ffe09e486fff8711d4ad78.tar.gz
Fix fdformat to not use /dev/r* device nodes anymore, this usage
has been made obsolete by the block/char device merging. Reflect this change in the manual page and fix the usage of a backslash in ``e.g.''. Reviewed by: bright, sheldonh, phk
Diffstat (limited to 'usr.sbin/fdformat')
-rw-r--r--usr.sbin/fdformat/fdformat.112
-rw-r--r--usr.sbin/fdformat/fdformat.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/fdformat/fdformat.1 b/usr.sbin/fdformat/fdformat.1
index 3688f98..8f0ab5e 100644
--- a/usr.sbin/fdformat/fdformat.1
+++ b/usr.sbin/fdformat/fdformat.1
@@ -51,13 +51,13 @@
formats a floppy disk at device
.Ar device_name .
.Ar Device_name
-should be a character device; it may be given either with a full path
-name of a raw device node for a floppy disk drive
-.Pq e.\ g. Pa /dev/rfd0 ,
-or default name in an abbreviated form
-.Pq e.\ g. Em fd0 .
+may be given either with a full path
+name of a device node for a floppy disk drive
+.Pq e.g. Pa /dev/fd0 ,
+or a default name in an abbreviated form
+.Pq e.g. Em fd0 .
In the latter case, the name is constructed by prepending
-.Pa /dev/r
+.Pa /dev/
and appending a
.Em .capacity
to the
diff --git a/usr.sbin/fdformat/fdformat.c b/usr.sbin/fdformat/fdformat.c
index 9c12af3..0abf0c7 100644
--- a/usr.sbin/fdformat/fdformat.c
+++ b/usr.sbin/fdformat/fdformat.c
@@ -123,14 +123,14 @@ verify_track(int fd, int track, int tracksize)
static const char *
makename(const char *arg, const char *suffix)
{
- static char namebuff[20]; /* big enough for "/dev/rfd0a"... */
+ static char namebuff[20]; /* big enough for "/dev/fd0a"... */
memset(namebuff, 0, 20);
if(*arg == '\0') /* ??? */
return arg;
if(*arg == '/') /* do not convert absolute pathnames */
return arg;
- strcpy(namebuff, "/dev/r");
+ strcpy(namebuff, "/dev/");
strncat(namebuff, arg, 3);
strcat(namebuff, suffix);
return namebuff;
OpenPOWER on IntegriCloud