fdio(7)
NAME
fdio − floppy disk control operations
SYNOPSIS
#include <sys/fdio.h>
DESCRIPTION
The Solaris floppy driver supports a set of ioctl(2) requests for getting and setting the floppy drive characteristics. Basic to these ioctl() requests are the definitions in <sys/fdio.h>.
IOCTLS
The following ioctl() requests are available only on the Solaris floppy driver.
FDGETCHANGE
The argument is a pointer to an int. This ioctl() returns the status of the diskette changed signal from the floppy interface. The following defines are provided for cohesion.
/∗
∗ Used by FDKGETCHANGE, returned state of the sense disk change bit.
∗/
#define FDGC_HISTORY0x01/∗ disk has changed since last call ∗/
#define FDGC_CURRENT0x02/∗ current state of disk change ∗/
#define FDGC_CURWPROT0x10/∗ current state of write protect ∗/
FDIOGCHAR The argument is a pointer to an fd_char structure (described below). This ioctl() gets the characteristics of the floppy diskette from the floppy controller.
FDIOSCHAR The argument is a pointer to an fd_char structure (described below). This ioctl() sets the characteristics of the floppy diskette from the floppy controller.
/∗
∗ Floppy characteristics
∗/
struct fd_char {
u_charfdc_medium;/∗ medium type (scsi floppy only) ∗/
intfdc_transfer_rate;/∗ transfer rate ∗/
intfdc_ncyl;/∗ number of cylinders ∗/
intfdc_nhead;/∗ number of heads ∗/
intfdc_sec_size;/∗ sector size ∗/
intfdc_secptrack;/∗ sectors per track ∗/
intfdc_steps;/∗ number of steps per ∗/
};
FDEJECT This ioctl() requests the floppy drive to eject the diskette (not available on Solaris 2.1 for x86).
SEE ALSO
SunOS 5.1 — Last change: 30 Sept 1992