version 1.82, 2021/10/24 21:24:16 |
version 1.83, 2021/11/28 19:28:41 |
|
|
* $FreeBSD: cdcontrol.c,v 1.13 1996/06/25 21:01:27 ache Exp $ |
* $FreeBSD: cdcontrol.c,v 1.13 1996/06/25 21:01:27 ache Exp $ |
*/ |
*/ |
|
|
#include <sys/param.h> /* isset */ |
#include <sys/types.h> |
#include <sys/cdio.h> |
#include <sys/cdio.h> |
#include <sys/ioctl.h> |
#include <sys/ioctl.h> |
#include <sys/queue.h> |
#include <sys/queue.h> |
|
|
warnx("Can't determine media type"); |
warnx("Can't determine media type"); |
return (0); |
return (0); |
} |
} |
if (isset(mediacap, MMC_FEATURE_CDRW_WRITE) == 0 && |
if (cdio_isset(mediacap, MMC_FEATURE_CDRW_WRITE) == 0 && |
get_media_type() != MEDIATYPE_CDRW) { |
get_media_type() != MEDIATYPE_CDRW) { |
warnx("The media doesn't support blanking"); |
warnx("The media doesn't support blanking"); |
return (0); |
return (0); |
|
|
exit(1); |
exit(1); |
if (get_media_capabilities(mediacap, 1) == -1) |
if (get_media_capabilities(mediacap, 1) == -1) |
errx(1, "Can't determine media type"); |
errx(1, "Can't determine media type"); |
if (isset(mediacap, MMC_FEATURE_CD_TAO) == 0) |
if (cdio_isset(mediacap, MMC_FEATURE_CD_TAO) == 0) |
errx(1, "The media can't be written in TAO mode"); |
errx(1, "The media can't be written in TAO mode"); |
|
|
get_disc_size(&availblk); |
get_disc_size(&availblk); |