sevan
39bbc68a3b
Drop main() prototype.
2016-09-05 00:40:28 +00:00
abs
2a4ad09fef
racd *should* be ejectable. Kernel side to come
2012-07-14 20:41:27 +00:00
yamt
355e79354d
don't bother to connect to amd unless necessary. PR/42207
2010-06-23 18:07:59 +00:00
christos
52f56a8c21
Support amd unmounts, from Anon-Ymous. Not turned on yet because we need
...
to patch amd for this to work.
2009-01-16 17:31:22 +00:00
lukem
c402ba6fb6
appease -Wsign-compare
2009-01-15 03:18:30 +00:00
christos
a127d189ed
style fixes and pass WARNS=4 and lint from Anon Ymous
2009-01-14 15:47:23 +00:00
lukem
98e5374ccb
Remove the \n and tabs from the __COPYRIGHT() strings.
...
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
xtraeme
f375107517
PR bin/27066 by Sergey Svishchev: "eject(1) does not DTRT for floppy drives
...
(such as one in SPARCstation 5)".
Patch applied, thanks.
2006-09-24 08:42:55 +00:00
dsl
43371ff1ac
Add (unsigned char) cast to ctype functions
2004-10-30 17:17:35 +00:00
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
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
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
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