Commit Graph

22 Commits

Author SHA1 Message Date
christos 6bd1d6d4db Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
wiz b26b3aa84e file system, not filesystem. 2002-10-02 15:53:47 +00:00
wiz caeab83572 Whitespace fixes and formatting improvements. 2001-10-06 18:51:04 +00:00
bjh21 79931f7b04 Add -L and -U options to eject(1) that call DIOCLOCK. Also generally clean
stuff up, correct the usage message and update the manpage to match.

Note that the new options aren't wonderfully useful, since cd(4) at least
promptly unlocks the drawer when eject closes the device.
2001-10-06 15:43:33 +00:00
bjh21 ccb8f4d3ed KNFify 2001-10-06 14:29:55 +00:00
ad d78020d1bf Use getrawpartition(). 2001-08-20 08:21:09 +00:00
cgd 82f3142780 fix NetBSD RCS id tags 2001-02-27 19:04:39 +00:00
mycroft 3c3172647b Add aliases for `dvd', `dvdrom', et al. 2001-01-21 09:55:40 +00:00
bouyer 80f0af1a00 Oups, complete braindamage yesterday. DIOCEJECT does the rigth thing for both
disks and CDs, it's just don't have to call DIOCLOCK before, unless we're
doing a forced eject: DIOCEJECT will check for device use and unlock the door
if allowed.
1999-03-26 09:14:58 +00:00
bouyer 3dcf0c67c3 Use CDIOCEJECT instead of DIOCEJECT for cdrom devices (this one allows
opening the tray without media). While I'm there add 'sd' to the
device list (so that I can eject my MO easily).
1999-03-25 16:50:51 +00:00
tron f02e2756d9 Remove program description from source code, it's already in "eject.1". 1999-02-18 20:02:43 +00:00
cjs 03cb143eab Remove mkdep source code from this file. (!) 1999-02-18 17:18:46 +00:00
tron a651e1a07b New improved "eject" command contributed by Chris Jones in PR bin/6988. 1999-02-17 22:59:14 +00:00
bouyer 425c994527 Take advantage of the recent changes to sd/cd and DIOCEJECT:
open the raw character device for nicknames (so that eject will open the
CD even without medias). Implement the raw_to_blk pathname conversion in
umount_mounted().
Create a new 'cdrom' type, add a '-l' switch which will cause a media load
on cdrom devices type.
Add 'sd0, sd1, sd2' nicknames to allow easy use with removable rewritable
disks (ZIP, jazz, MO, ...).
1999-02-08 16:35:33 +00:00
pk b8baa5e581 Assign my copyrights to TNF. 1998-09-05 17:31:44 +00:00
fair ef37583d98 adjust to more accurately reflect the use of the -t option, per PR#5443 1998-05-11 21:45:44 +00:00
msaitoh 7b5f411e4a Don't print NULL characters on "eject -n". 1997-12-07 19:04:36 +00:00
mikel 77053262a2 add missing newline to usage string; from Manuel Bouyer in PR 4442 1997-11-07 09:01:29 +00:00
lukem b9d1fbcf87 WARNSify, fix .Nm usage, getopt returns -1 not EOF 1997-10-18 13:38:09 +00:00
thorpej 9ceb2e3fc2 Disks now share a common interface for "unlock" and "eject". Teach
eject(1) how to use it.  There is now a single eject_disk() rather
than eject_floppy(), eject_cdrom(), etc.
1996-01-30 18:35:47 +00:00
pk 764fa4b6ef Download from `netbsd-1-1' branch. 1995-10-22 16:48:52 +00:00