Subject: Re: floppy eject?
To: None <msanders@confusion.net>
From: David S. Miller <davem@caip.rutgers.edu>
List: port-sparc
Date: 10/07/1995 00:38:24
Date: Fri, 06 Oct 1995 23:25:03 -0400
From: "Michael K. Sanders" <msanders@confusion.net>
Am I just incredibly blind, or is there really not a command to eject
a floppy from the floppy drive on an IPC?
The 'eject' command should do the trick, or this c-code hack should do
the equivalent if you have rights to open the floppy device.
Later,
David S. Miller
davem@caip.rutgers.edu
--------------------
#include <sys/ioctl.h>
#include <sparc/dev/fdvar.h>
void
main(void)
{
int fd;
fd = open("/dev/fd0", O_RDONLY);
ioctl(fd, FDIOEJECT, 0);
return;
}