ioctl(cdfile, CDIOCALLOW);
if (ioctl(cdfile, CDIOCEJECT) == -1)
ioctl(cdfile, CDIOCALLOW);
if (ioctl(cdfile, CDIOCEJECT) == -1)
ioctl(cdfile, CDIOCALLOW);
if (ioctl(cdfile, CDIOCCLOSE) == -1)
ioctl(cdfile, CDIOCALLOW);
if (ioctl(cdfile, CDIOCCLOSE) == -1)
vol.vol[2] = vol.vol[3] = 0;
if (ioctl (cdfile, CDIOCSETVOL, &vol) == -1)
vol.vol[2] = vol.vol[3] = 0;
if (ioctl (cdfile, CDIOCSETVOL, &vol) == -1)