ports/57226: audio/cdparanoia fix to work with cooked_ioctl under -CURRENT
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Thu Nov 6 12:44:12 UTC 2003
Lately Simon Barner told:
> + for (;;) {
> -+ arg.nframes = sectors;
> -+ if (ioctl(d->ioctl_fd, CDIOCREADAUDIO, &arg) == -1) {
> ++ if (ioctl(d->ioctl_fd, CDRIOCSETBLOCKSIZE, &bsize) == -1)
> ++ return -7;
> ++ if (pread(d->ioctl_fd, p, sectors*bsize, begin*bsize) != sectors*bsize) {
> + if (!d->error_retry)
> + return -7;
> +
looks good, but you might want to do the ioctl before the loop.
Also, I'd like to drop my maintainership. If you are interested, take it
cheers
simon
--
/"\ http://corecode.ath.cx/#donate
\ /
\ ASCII Ribbon Campaign
/ \ Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs/attachments/20031106/31c99541/attachment.sig>
More information about the freebsd-ports-bugs
mailing list