mtget
struct mtget mt;
struct mtget *
static struct mtget mt_status;
status(struct mtget *bp)
void status(struct mtget *);
struct mtget *_rmtstatus(int fd);
struct mtget *rmtstatus(void);
struct mtget mts;
struct mtget *
struct mtget mb;
struct mtget *g = (struct mtget *) arg;
bzero(g, sizeof(struct mtget));
#define MTIOCGET _IOR('m', 2, struct mtget) /* get tape status */
{ struct mtget mtget;
if (ioctl(tape, MTIOCGET, (char *)&mtget) == -1)
rval = sizeof (mtget);
(void) write(STDOUT_FILENO, (char *)&mtget, sizeof (mtget));