From a1a51c3d1dd5d00ad07cf8dd639820e24ca49ae7 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 20 2019 09:10:25 +0000 Subject: import cdrkit-1.1.11-25.el7 --- diff --git a/.cdrkit.metadata b/.cdrkit.metadata new file mode 100644 index 0000000..ea6fa92 --- /dev/null +++ b/.cdrkit.metadata @@ -0,0 +1 @@ +3f7ddc06db0272942e1a4cd98c3c96462df77387 SOURCES/cdrkit-1.1.11.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..336fdae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/cdrkit-1.1.11.tar.gz diff --git a/SOURCES/cdrkit-1.1.10-build-fix.patch b/SOURCES/cdrkit-1.1.10-build-fix.patch new file mode 100644 index 0000000..75c4db2 --- /dev/null +++ b/SOURCES/cdrkit-1.1.10-build-fix.patch @@ -0,0 +1,11 @@ +diff -up cdrkit-1.1.10/genisoimage/genisoimage.c.build-fix cdrkit-1.1.10/genisoimage/genisoimage.c +--- cdrkit-1.1.10/genisoimage/genisoimage.c.build-fix 2010-01-20 11:05:05.000000000 +0100 ++++ cdrkit-1.1.10/genisoimage/genisoimage.c 2010-01-20 11:21:16.144098749 +0100 +@@ -47,6 +47,7 @@ + + #include + #include "genisoimage.h" ++#include "checksum.h" + #include "iso9660.h" + #include + #include diff --git a/SOURCES/cdrkit-1.1.11-cmakewarn.patch b/SOURCES/cdrkit-1.1.11-cmakewarn.patch new file mode 100644 index 0000000..a171e39 --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-cmakewarn.patch @@ -0,0 +1,9 @@ +diff -up cdrkit-1.1.11/CMakeLists.txt.cmakewarn cdrkit-1.1.11/CMakeLists.txt +--- cdrkit-1.1.11/CMakeLists.txt.cmakewarn 2012-07-31 13:11:10.075500531 +0200 ++++ cdrkit-1.1.11/CMakeLists.txt 2012-07-31 13:11:41.069108287 +0200 +@@ -1,3 +1,5 @@ ++cmake_minimum_required(VERSION 2.8) ++cmake_policy(SET CMP0015 OLD) + PROJECT (cdrkit C) + SUBDIRS(include genisoimage wodim libedc libhfs_iso icedax libusal librols libunls readom netscsid 3rd-party/dirsplit) + diff --git a/SOURCES/cdrkit-1.1.11-device-name.patch b/SOURCES/cdrkit-1.1.11-device-name.patch new file mode 100644 index 0000000..c6c3e33 --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-device-name.patch @@ -0,0 +1,29 @@ +diff -up wrk/libusal/scsi-linux-sg.c.wrk wrk/libusal/scsi-linux-sg.c +--- wrk/libusal/scsi-linux-sg.c.wrk 2015-05-31 22:21:03.376694659 +0200 ++++ wrk/libusal/scsi-linux-sg.c 2015-05-31 22:22:47.183667927 +0200 +@@ -509,7 +509,8 @@ usalo_open(SCSI *usalp, char *device) + /* scan and maybe keep one open, sg_setup decides */ + #define HDX 0 + #define SCD 1 +-#define SG 2 ++#define SCD2 2 ++#define SG 3 + int h; + /* + retry_scan_open: +@@ -533,6 +534,15 @@ retry_scan_open: + first=0; + last=255; + break; ++ } ++ case(SCD2): ++ { ++ if(!check_linux_26()) ++ continue; ++ pattern="/dev/sr%d"; ++ first=0; ++ last=255; ++ break; + } + case(SG): + { diff --git a/SOURCES/cdrkit-1.1.11-dvdman.patch b/SOURCES/cdrkit-1.1.11-dvdman.patch new file mode 100644 index 0000000..471a7a9 --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-dvdman.patch @@ -0,0 +1,70 @@ +diff -up cdrkit-1.1.11/wodim/wodim.1.dvdman cdrkit-1.1.11/wodim/wodim.1 +--- cdrkit-1.1.11/wodim/wodim.1.dvdman 2011-06-08 14:49:00.073093571 +0200 ++++ cdrkit-1.1.11/wodim/wodim.1 2011-06-08 14:50:59.707093540 +0200 +@@ -835,49 +835,33 @@ newer ones) still implement the Sony pro + not yet become a problem to use this driver for all Sony drives. If you find + a newer Sony drive that does not work with this driver, please report. + .TP +-.B mmc_dvd ++.B mmc_mdvd + The generic SCSI-3/mmc-2 DVD-R/DVD-RW driver is auto-selected whenever + .B wodim + finds a MMC-2 or MMC-3 compliant drive that supports to write DVDs and + an appropriate medium is loaded. +-There is no Track At Once mode for DVD writers. +-.TP +-.B mmc_dvdplus +-The generic SCSI-3/mmc-3 DVD+R/DVD+RW driver is auto-selected whenever +-one of the DVD+ media types that are incompatible to each other is found. +-It checks media and then +-branches to the driver that matches the current medium. +-.TP +-.B mmc_dvdplusr +-The generic SCSI-3/mmc-3 DVD+R driver is auto-selected whenever +-a DVD+R medium is found in an appropriate writer. + Note that for unknown reason, the DVD-Plus alliance does not +-like that there is a simulation mode for DVD+R media. +-The author of +-.B wodim +-tries to convince manufacturers to implement a simulation mode for DVD+R +-and implement support. +-DVD+R only supports one write mode that is somewhere between Track At Once +-and Packet writing; this mode is selected in ++like that there is a simulation mode for DVD+R and DVD+RW media nor a way ++to erase DVD+RW media. ++DVD+R and DVD+RW only supports one write mode that is somewhere between ++Track At Once and Packet writing; this mode is selected in + .B wodim + via a the + .BR \-dao / \-sao + option. +-.TP +-.B mmc_dvdplusrw +-The generic SCSI-3/mmc-3 DVD+RW driver is auto-selected whenever +-a DVD+RW medium is found in an appropriate writer. +-As DVD+RW media needs to be formatted before its first use, wodim +-auto-detects this media state and performs a format before it starts +-to write. +-Note that for unknown reason, the DVD-Plus alliance does not +-like that there is a simulation mode nor a way to erase DVD+RW media. +-DVD+RW only supports one write mode that is close to +-Packet writing; this mode is selected in ++As DVD+RW media needs to be formatted before its first use, + .B wodim +-via a the +-.BR \-dao / \-sao +-option. ++auto-detects this media state and performs a format before it starts ++to write. ++.sp ++Note: If you have any problems during burning DVDs using ++.BR wodim , ++please consider ++.B growisofs ++from package ++.BR dvd+rw-tools , ++which often works better ++in these cases. + .TP + .B cw_7501 + The driver for Matsushita/Panasonic CW-7501 is auto-selected when diff --git a/SOURCES/cdrkit-1.1.11-format.patch b/SOURCES/cdrkit-1.1.11-format.patch new file mode 100644 index 0000000..983ed23 --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-format.patch @@ -0,0 +1,129 @@ +diff -up cdrkit-1.1.11/wodim/drv_mmc.c.format cdrkit-1.1.11/wodim/drv_mmc.c +--- cdrkit-1.1.11/wodim/drv_mmc.c.format 2011-05-18 16:49:14.591822130 +0200 ++++ cdrkit-1.1.11/wodim/drv_mmc.c 2011-05-18 16:49:14.596822130 +0200 +@@ -1507,6 +1507,11 @@ getdisktype_mdvd(SCSI *usalp, cdr_t *dp) + dstat_t *dsp = dp->cdr_dstat; + + struct track_info track_info; ++ ++ extern char *buf; ++ struct disk_info *dip; ++ int profile; ++ + if(lverbose) + printf("HINT: use dvd+rw-mediainfo from dvd+rw-tools for information extraction.\n"); + /* if(getdisktype_mmc(usalp, dp)<0) +@@ -1521,6 +1526,18 @@ getdisktype_mdvd(SCSI *usalp, cdr_t *dp) + dsp->ds_disktype&= ~DT_CD; + dsp->ds_disktype|= DT_DVD; + ++ profile = get_curprofile(usalp); ++ if (profile == 0x1A) { ++ dip = (struct disk_info *)buf; ++ if (get_diskinfo(usalp, dip) < 0) ++ return (-1); ++ if (dip->disk_status == DS_EMPTY) { /* Unformatted */ ++ dsp->ds_flags |= DSF_NEED_FORMAT; ++ if(lverbose) ++ printf("The medium is empty, it will be auto formatted.\n"); ++ } ++ } ++ + return (ret); + + } +diff -up cdrkit-1.1.11/wodim/scsi_cdr.c.format cdrkit-1.1.11/wodim/scsi_cdr.c +--- cdrkit-1.1.11/wodim/scsi_cdr.c.format 2011-05-18 16:49:14.601822130 +0200 ++++ cdrkit-1.1.11/wodim/scsi_cdr.c 2011-05-18 16:49:14.600822130 +0200 +@@ -1328,7 +1328,7 @@ scsi_format(SCSI *usalp, caddr_t addr, i + } + sleep(10); + printf("\rFormating in progress: 100.00 %% done. \n"); +- if (pid) exit (0); ++ if (pid > 0) exit (0); + return ret; + } + +diff -up cdrkit-1.1.11/wodim/wodim.c.format cdrkit-1.1.11/wodim/wodim.c +--- cdrkit-1.1.11/wodim/wodim.c.format 2011-05-18 16:49:14.584822130 +0200 ++++ cdrkit-1.1.11/wodim/wodim.c 2011-05-18 17:21:59.510821630 +0200 +@@ -946,6 +946,40 @@ int main(int argc, char *argv[]) + print_toc(usalp, dp); + comexit(0); + } ++ ++ if ((flags & F_FORMAT) || (dp->cdr_dstat->ds_flags & DSF_NEED_FORMAT)) { ++ printf("wodim: media format asked\n"); ++ /* ++ * Do not abort if OPC failes. Just give it a chance ++ * for better laser power calibration than without OPC. ++ * ++ * Ricoh drives return with a vendor unique sense code. ++ * This is most likely because they refuse to do OPC ++ * on a non blank media. ++ */ ++ usalp->silent++; ++ do_opc(usalp, dp, flags); ++ usalp->silent--; ++ wait_unit_ready(usalp, 120); ++ if (gettimeofday(&starttime, (struct timezone *)0) < 0) ++ errmsg("Cannot get start time\n"); ++ ++ if ((*dp->cdr_format)(usalp, dp, formattype) < 0) { ++ errmsgno(EX_BAD, "Cannot format disk, aborting.\n"); ++ comexit(EX_BAD); ++ } ++ if (gettimeofday(&fixtime, (struct timezone *)0) < 0) ++ errmsg("Cannot get format time\n"); ++ if (lverbose) ++ prtimediff("Formatting time: ", &starttime, &fixtime); ++ ++ if (!wait_unit_ready(usalp, 240) || tracks == 0) { ++ comexit(0); ++ } ++ if (gettimeofday(&starttime, (struct timezone *)0) < 0) ++ errmsg("Cannot get start time\n"); ++ } ++ + #ifdef XXX + if ((*dp->cdr_check_session)() < 0) { + comexit(EX_BAD); +@@ -1230,38 +1264,6 @@ int main(int argc, char *argv[]) + comexit(0); + } + } +- if (flags & F_FORMAT) { +- printf("wodim: media format asked\n"); +- /* +- * Do not abort if OPC failes. Just give it a chance +- * for better laser power calibration than without OPC. +- * +- * Ricoh drives return with a vendor unique sense code. +- * This is most likely because they refuse to do OPC +- * on a non blank media. +- */ +- usalp->silent++; +- do_opc(usalp, dp, flags); +- usalp->silent--; +- wait_unit_ready(usalp, 120); +- if (gettimeofday(&starttime, (struct timezone *)0) < 0) +- errmsg("Cannot get start time\n"); +- +- if ((*dp->cdr_format)(usalp, dp, formattype) < 0) { +- errmsgno(EX_BAD, "Cannot format disk, aborting.\n"); +- comexit(EX_BAD); +- } +- if (gettimeofday(&fixtime, (struct timezone *)0) < 0) +- errmsg("Cannot get format time\n"); +- if (lverbose) +- prtimediff("Formatting time: ", &starttime, &fixtime); +- +- if (!wait_unit_ready(usalp, 240) || tracks == 0) { +- comexit(0); +- } +- if (gettimeofday(&starttime, (struct timezone *)0) < 0) +- errmsg("Cannot get start time\n"); +- } + /* + * Reset start time so we will not see blanking time and + * writing time counted together. diff --git a/SOURCES/cdrkit-1.1.11-handler.patch b/SOURCES/cdrkit-1.1.11-handler.patch new file mode 100644 index 0000000..5b3fa6a --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-handler.patch @@ -0,0 +1,12 @@ +diff -up cdrkit-1.1.11/icedax/icedax.c.handler cdrkit-1.1.11/icedax/icedax.c +--- cdrkit-1.1.11/icedax/icedax.c.handler 2011-06-02 16:37:02.446206285 +0200 ++++ cdrkit-1.1.11/icedax/icedax.c 2011-06-02 16:37:25.444206279 +0200 +@@ -1054,7 +1054,7 @@ static void exit_wrapper(int status) + + if (child_pid != 0) { + SCSI *usalp = get_scsi_p(); +- if (usalp->running) { ++ if (usalp && usalp->running) { + usalp->cb_fun = on_exitscsi; + usalp->cb_arg = (void *) (uintptr_t) status; + } else { diff --git a/SOURCES/cdrkit-1.1.11-kernel-release.patch b/SOURCES/cdrkit-1.1.11-kernel-release.patch new file mode 100644 index 0000000..860a9f6 --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-kernel-release.patch @@ -0,0 +1,12 @@ +diff -up cdrkit-1.1.11/libusal/scsi-linux-sg.c.sfdc01983864 cdrkit-1.1.11/libusal/scsi-linux-sg.c +--- cdrkit-1.1.11/libusal/scsi-linux-sg.c.sfdc01983864 2017-12-12 08:55:08.000000000 +0100 ++++ cdrkit-1.1.11/libusal/scsi-linux-sg.c 2017-12-12 09:00:57.000000000 +0100 +@@ -251,7 +251,7 @@ static BOOL get_max_secs(char *dirpath, + BOOL check_linux_26() { + int gen, tmp; + struct utsname buf; +- return ( 0==uname( &buf ) && sscanf(buf.release, "%d.%d", &gen, &tmp)>1 && tmp>=6); ++ return ( 0==uname( &buf ) && sscanf(buf.release, "%d.%d", &gen, &tmp)>1 && tmp>=6 && gen == 2); + } + + int sg_open_excl(char *device, int mode, BOOL beQuiet) diff --git a/SOURCES/cdrkit-1.1.11-manpagefix.patch b/SOURCES/cdrkit-1.1.11-manpagefix.patch new file mode 100644 index 0000000..26b5175 --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-manpagefix.patch @@ -0,0 +1,191 @@ +diff -up cdrkit-1.1.11/genisoimage/genisoimage.1.orig cdrkit-1.1.11/genisoimage/genisoimage.1 +--- cdrkit-1.1.11/genisoimage/genisoimage.1.orig 2011-01-21 14:26:20.709816708 +0100 ++++ cdrkit-1.1.11/genisoimage/genisoimage.1 2011-01-24 08:49:24.283964211 +0100 +@@ -180,6 +180,8 @@ in the + file. + .TP + .BI \-A " application_id" ++.TP ++.BI \-appid " application_id" + Specifies a text string that will be written into the volume header. + This should describe the application that will be on the disc. There + is space for 128 characters. Equivalent to +@@ -365,6 +367,8 @@ the Sun disk label will overlay the firs + boot image. + .TP + .BI \-b " eltorito_boot_image" ++.TP ++.BI \-eltorito\-boot " eltorito_boot_image" + Specifies the path and filename of the boot image to be used when making + an El Torito bootable CD for x86 PCs. The pathname must be relative to + the source path specified to +@@ -427,6 +431,8 @@ See the + section for a description of this table. + .TP + .BI \-C " last_sess_start,next_sess_start" ++.TP ++.BI \-cdrecord\-params " last_sess_start,next_sess_start" + This option is needed to create a CD Extra or the image of a second + session or a higher-level session for a multisession disc. + .B \-C +@@ -452,6 +458,8 @@ session on a CD Extra. This is a multise + in the first session and an ISO9660 filesystem in the second session. + .TP + .BI \-c " boot_catalog" ++.TP ++.BI \-eltorito\-catalog " boot_catalog" + Specifies the path and filename of the boot catalog, which is required + for an El Torito bootable CD. The pathname must be relative to the source + path specified to +@@ -488,6 +496,12 @@ For the parameter + see the description of + .BR \-M . + .TP ++.BI \-checksum_algorithm_iso " alg1,alg2,..." ++Specify the checksum types desired for the output image. ++.TP ++.BI \-checksum_algorithm_template " alg1,alg2,..." ++Specify the checksum types desired for the output jigdo template. ++.TP + .BI \-copyright " file" + Specifies copyright information, typically a filename on the disc. + There is space for 37 characters. Equivalent to +@@ -497,12 +511,16 @@ in the + file. + .TP + .B \-d ++.TP ++.B \-omit\-period + Do not append a period to files that do not have one. + .br + This violates the ISO9660 standard, but it happens to work on many systems. + Use with caution. + .TP + .B \-D ++.TP ++.B \-disable\-deep\-relocation + Do not use deep directory relocation, and instead just pack them in the + way we see them. + .br +@@ -510,6 +528,9 @@ If ISO9660:1999 has not been selected, + this violates the ISO9660 standard, but it happens to work on many systems. + Use with caution. + .TP ++.B \-debug ++Set debug flag. ++.TP + .BI \-dir\-mode " mode" + Overrides the mode of directories used to create the image to + .IR mode , +@@ -535,7 +556,14 @@ another directory + needs to include all needed files (filenames must be all caps) for a + compliant DVD-Video filesystem. + .TP ++.BI \-e " efi_boot_file" ++.TP ++.BI \-efi\-boot " efi_boot_file" ++Set EFI boot image name. ++.TP + .B \-f ++.TP ++.B \-follow\-links + Follow symbolic links when generating the filesystem. When this option is not + in use, symbolic links will be entered using Rock Ridge if enabled, otherwise + they will be ignored. +@@ -740,6 +768,8 @@ See the + section below for more details. + .TP + .B \-l ++.TP ++.B \-full\-iso9660\-filenames + Allow full 31-character filenames. Normally the ISO9660 filename will be in an + 8.3 format which is compatible with MS-DOS, even though the ISO9660 standard + allows filenames of up to 31 characters. If you use this option, the disc may +@@ -870,6 +900,8 @@ with + .BR \-C . + .TP + .B \-N ++.TP ++.B \-omit\-version\-number + Omit version numbers from ISO9660 filenames. + .br + This violates the ISO9660 standard, but no one really uses the +@@ -967,6 +999,8 @@ in the + file. + .TP + .BI \-p " preparer_id" ++.TP ++.BI \-preparer " preparer_id" + Specifies a text string that will be written into the volume header. + This should describe the preparer of the CD-ROM, usually with a mailing + address and phone number. There is space for 128 characters. +@@ -1008,10 +1042,14 @@ This makes + even less verbose. No progress output will be provided. + .TP + .B \-R ++.TP ++.B \-rock + Generate SUSP and RR records using the Rock Ridge protocol to further describe + the files on the ISO9660 filesystem. + .TP + .B \-r ++.TP ++.B \-rational\-rock + This is like the \-R option, but file ownership and modes are set to + more useful values. The uid and gid are set to zero, because they are + usually only useful on the author's system, and not useful to the +@@ -1092,6 +1130,11 @@ intentionally. Accessing several older v + support by the operating system to choose which sessions are to be + mounted. + .TP ++.BI \-s " sector type" ++.TP ++.BI \-sectype " sector type" ++Set output sector type to e.g. data/xa1/raw. ++ .TP + .BI \-sort " sort_file" + Sort file locations on the media. Sorting is controlled by a file that + contains pairs of filenames and sorting offset weighting. +@@ -1213,6 +1256,8 @@ in the + file. + .TP + .B \-T ++.TP ++.B \-translation\-table + Generate a file + .I TRANS.TBL + in each directory on the CD-ROM, which can be used +@@ -1262,6 +1307,8 @@ to + This option is the default on VMS. + .TP + .B \-U ++.TP ++.B \-untranslated\-filenames + Allows "untranslated" filenames, completely violating the ISO9660 standards + described above. Enables the following flags: + .B \-d \-l \-N \-allow\-leading\-dots \-relaxed\-filenames +@@ -1333,6 +1380,8 @@ must be specified before + on each command line. + .TP + .B \-v ++.TP ++.B \-verbose + Verbose execution. If given twice on the command line, extra debug information + will be printed. + .TP +@@ -1341,7 +1390,15 @@ Identical to + .B \-m + .IR glob . + .TP ++.B \-XA ++Generate XA directory attruibutes. ++.TP ++.B \-xa ++Generate rationalized XA directory attruibutes. ++.TP + .B \-z ++.TP ++.B \-transparent\-compression + Generate special + .I RRIP + records for transparently compressed files. diff --git a/SOURCES/cdrkit-1.1.11-memset.patch b/SOURCES/cdrkit-1.1.11-memset.patch new file mode 100644 index 0000000..6609159 --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-memset.patch @@ -0,0 +1,37 @@ +diff -up wrk/genisoimage/jte.c.wrk wrk/genisoimage/jte.c +--- wrk/genisoimage/jte.c.wrk 2013-02-22 13:24:47.722196877 +0100 ++++ wrk/genisoimage/jte.c 2013-02-25 12:41:45.136653487 +0100 +@@ -280,7 +280,7 @@ extern int list_file_in_jigdo(char *file + if (!jtemplate_out) + return 0; + +- memset(md5, 0, sizeof(md5)); ++ memset(md5, 0, 16); + + /* Cheaper to check file size first */ + if (size < jte_min_size) +diff -up wrk/genisoimage/md5.c.wrk wrk/genisoimage/md5.c +--- wrk/genisoimage/md5.c.wrk 2013-02-22 13:15:18.210866321 +0100 ++++ wrk/genisoimage/md5.c 2013-02-22 13:15:29.979935133 +0100 +@@ -183,7 +183,7 @@ mk_MD5Final (unsigned char digest[16], s + putu32(ctx->buf[1], digest + 4); + putu32(ctx->buf[2], digest + 8); + putu32(ctx->buf[3], digest + 12); +- memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ ++ memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ + } + + /* The four core functions - F1 is optimized somewhat */ +diff -up wrk/libedc/edcspeed.c.wrk wrk/libedc/edcspeed.c +--- wrk/libedc/edcspeed.c.wrk 2013-02-22 10:45:33.353219110 +0100 ++++ wrk/libedc/edcspeed.c 2013-02-22 10:46:52.497686387 +0100 +@@ -35,7 +35,8 @@ static int encspeed() + secs = 10; + end = 75*1000000 * secs; + +- memset(sect, 0, sizeof(sect)); ++ //faulty and unneccessary, immediately rewritten again ++ //memset(sect, 0, sizeof(sect)); + for (i=0; i < 2352; ) { + sect[i++] = 'J'; + sect[i++] = 'S'; diff --git a/SOURCES/cdrkit-1.1.11-paranoiacdda.patch b/SOURCES/cdrkit-1.1.11-paranoiacdda.patch new file mode 100644 index 0000000..9d17899 --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-paranoiacdda.patch @@ -0,0 +1,556 @@ +diff -up cdrkit-1.1.11/CMakeLists.txt.paranoiacdda cdrkit-1.1.11/CMakeLists.txt +--- cdrkit-1.1.11/CMakeLists.txt.paranoiacdda 2012-07-31 14:27:15.166155309 +0200 ++++ cdrkit-1.1.11/CMakeLists.txt 2012-07-31 14:27:28.469613175 +0200 +@@ -1,3 +1,3 @@ + PROJECT (cdrkit C) +-SUBDIRS(include genisoimage wodim libedc libhfs_iso libparanoia icedax libusal librols libunls readom netscsid 3rd-party/dirsplit) ++SUBDIRS(include genisoimage wodim libedc libhfs_iso icedax libusal librols libunls readom netscsid 3rd-party/dirsplit) + +diff -up cdrkit-1.1.11/icedax/CMakeLists.txt.paranoiacdda cdrkit-1.1.11/icedax/CMakeLists.txt +--- cdrkit-1.1.11/icedax/CMakeLists.txt.paranoiacdda 2012-07-31 14:27:15.228157411 +0200 ++++ cdrkit-1.1.11/icedax/CMakeLists.txt 2012-07-31 14:27:15.239157786 +0200 +@@ -1,8 +1,9 @@ + PROJECT (icedax C) +-INCLUDE_DIRECTORIES(../include ../wodim ../libparanoia ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/include) ++INCLUDE_DIRECTORIES(../include ../wodim ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/include) + include(../include/AddScgBits.cmake) + include(../include/AddSchilyBits.cmake) + include(../include/AddNetworkBits.cmake) ++INCLUDE (CheckLibraryExists) + + FIND_FILE (HAVE_SYS_SOUNDCARD_H sys/soundcard.h) + IF(HAVE_SYS_SOUNDCARD_H) +@@ -18,12 +19,20 @@ IF(HAVE_LIBOSSAUDIO) + LIST(APPEND EXTRA_LIBS "ossaudio") + ENDIF(HAVE_LIBOSSAUDIO) + +-LIST(APPEND EXTRA_LIBS paranoia) ++CHECK_INCLUDE_FILES(cdio/cdda.h HAVE_CDDA_INTERFACE_H) ++CHECK_LIBRARY_EXISTS (cdio_paranoia cdio_paranoia_init "" HAVE_LIBPARANOIA) ++IF(HAVE_CDDA_INTERFACE_H AND HAVE_LIBPARANOIA) ++ LIST(APPEND EXTRA_LIBS cdio_paranoia cdio_cdda) ++ELSE(HAVE_CDDA_INTERFACE_H AND HAVE_LIBPARANOIA) ++ MESSAGE(FATAL_ERROR "You need cdparanoia library installed") ++ENDIF(HAVE_CDDA_INTERFACE_H AND HAVE_LIBPARANOIA) ++ ++LIST(APPEND EXTRA_LIBS) + IF (WIN32) + LIST(APPEND EXTRA_LIBS winmm) + ENDIF (WIN32) + +-LINK_DIRECTORIES(../librols ../libusal ../libparanoia) ++LINK_DIRECTORIES(../librols ../libusal) + ADD_EXECUTABLE (icedax aifc.c aiff.c base64.c icedax.c interface.c ioctl.c raw.c resample.c ringbuff.c scsi_cmds.c semshm.c setuid.c sha_func.c sndconfig.c sun.c toc.c wav.c) + TARGET_LINK_LIBRARIES(icedax wodimstuff ${EXTRA_LIBS}) + SET_TARGET_PROPERTIES(icedax PROPERTIES SKIP_BUILD_RPATH TRUE) +diff -up cdrkit-1.1.11/icedax/global.h.paranoiacdda cdrkit-1.1.11/icedax/global.h +--- cdrkit-1.1.11/icedax/global.h.paranoiacdda 2012-07-31 14:27:15.232157548 +0200 ++++ cdrkit-1.1.11/icedax/global.h 2012-07-31 14:27:15.226157345 +0200 +@@ -17,7 +17,8 @@ + #include "md5.h" + #endif + #ifdef USE_PARANOIA +-#include "cdda_paranoia.h" ++#include ++#include + #endif + + typedef struct index_list +@@ -102,10 +103,10 @@ typedef struct global + + struct paranoia_parms_t + { +- Ucbit disable_paranoia:1; +- Ucbit disable_extra_paranoia:1; +- Ucbit disable_scratch_detect:1; +- Ucbit disable_scratch_repair:1; ++ char disable_paranoia:1; ++ char disable_extra_paranoia:1; ++ char disable_scratch_detect:1; ++ char disable_scratch_repair:1; + int retries; + int overlap; + int mindynoverlap; +diff -up cdrkit-1.1.11/icedax/icedax.c.paranoiacdda cdrkit-1.1.11/icedax/icedax.c +--- cdrkit-1.1.11/icedax/icedax.c.paranoiacdda 2012-07-31 14:27:15.237157718 +0200 ++++ cdrkit-1.1.11/icedax/icedax.c 2012-07-31 14:27:15.238157752 +0200 +@@ -120,6 +120,10 @@ + #ifdef USE_LAME + #include "mp3.h" /* mp3 file handling */ + #endif ++#ifdef USE_PARANOIA ++#include ++#include ++#endif + #include "interface.h" /* low level cdrom interfacing */ + #include "icedax.h" + #include "resample.h" +@@ -128,9 +132,6 @@ + #include "ringbuff.h" + #include "global.h" + #include "exitcodes.h" +-#ifdef USE_PARANOIA +-#include "cdda_paranoia.h" +-#endif + #include "defaults.h" + + static void RestrictPlaybackRate(long newrate); +@@ -800,7 +801,7 @@ static void init_globals() + global.useroverlap = -1; /* amount of overlapping sectors user override */ + global.need_hostorder = 0; /* processing needs samples in host endianess */ + global.in_lendian = -1; /* input endianess from SetupSCSI() */ +- global.outputendianess = NONE; /* user specified output endianess */ ++ global.outputendianess = NONE_EN; /* user specified output endianess */ + global.findminmax = 0; /* flag find extrem amplitudes */ + #ifdef HAVE_LIMITS_H + global.maxamp[0] = INT_MIN; /* maximum amplitude */ +@@ -2418,7 +2419,7 @@ Rate Divider Rate Divider + if (bulk == -1) bulk = 0; + + global.need_big_endian = global.audio_out->need_big_endian; +- if (global.outputendianess != NONE) ++ if (global.outputendianess != NONE_EN) + global.need_big_endian = global.outputendianess == BIG; + + if (global.no_file) global.fname_base[0] = '\0'; +@@ -2602,7 +2603,7 @@ Rate Divider Rate Divider + fputs( ", soundcard", stderr ); + #endif + #if defined USE_PARANOIA +- fputs( ", libparanoia", stderr ); ++ fputs( ", libcdio_paranoia", stderr ); + #endif + fputs( " support\n", stderr ); + } +@@ -2892,8 +2893,28 @@ Rate Divider Rate Divider + #ifdef USE_PARANOIA + if (global.paranoia_selected) { + long paranoia_mode; ++ cdrom_drive *tmpdrive; ++ usal_close(get_scsi_p()); + +- global.cdp = paranoia_init(get_scsi_p(), global.nsectors); ++ tmpdrive = cdda_identify(global.dev_name, 0, NULL); ++ if (!tmpdrive) ++ { ++ fputs("Can't identify disc\n", stderr); ++ return 1; ++ } ++ ++ if(global.nsectors) ++ { ++ tmpdrive->nsectors = global.nsectors; ++ tmpdrive->bigbuff = global.nsectors * CD_FRAMESIZE_RAW; ++ } ++ if (cdda_open(tmpdrive) != 0) ++ { ++ fputs("Can't open disc\n", stderr); ++ cdda_close(tmpdrive); ++ return 1; ++ } ++ global.cdp = paranoia_init(tmpdrive); + + if (global.paranoia_parms.overlap >= 0) { + int overlap = global.paranoia_parms.overlap; +@@ -2902,17 +2923,7 @@ Rate Divider Rate Divider + overlap = global.nsectors - 1; + paranoia_overlapset(global.cdp, overlap); + } +- /* +- * Default to a minimum of dynamic overlapping == 0.5 sectors. +- * If we don't do this, we get the default from libparanoia +- * which is approx. 0.1. +- */ +- if (global.paranoia_parms.mindynoverlap < 0) +- paranoia_dynoverlapset(global.cdp, CD_FRAMEWORDS/2, -1); +- paranoia_dynoverlapset(global.cdp, +- global.paranoia_parms.mindynoverlap * CD_FRAMEWORDS, +- global.paranoia_parms.maxdynoverlap * CD_FRAMEWORDS); +- ++ + paranoia_mode = PARANOIA_MODE_FULL ^ PARANOIA_MODE_NEVERSKIP; + + if (global.paranoia_parms.disable_paranoia) { +diff -up cdrkit-1.1.11/icedax/icedax.h.paranoiacdda cdrkit-1.1.11/icedax/icedax.h +--- cdrkit-1.1.11/icedax/icedax.h.paranoiacdda 2012-07-31 14:27:15.216157005 +0200 ++++ cdrkit-1.1.11/icedax/icedax.h 2012-07-31 14:27:15.217157039 +0200 +@@ -41,7 +41,7 @@ + + /* Endianess */ + #define GUESS (-2) +-#define NONE (-1) ++#define NONE_EN (-1) + #define LITTLE 0 + #define BIG 1 + +diff -up cdrkit-1.1.11/icedax/interface.c.paranoiacdda cdrkit-1.1.11/icedax/interface.c +--- cdrkit-1.1.11/icedax/interface.c.paranoiacdda 2012-07-31 14:27:15.235157650 +0200 ++++ cdrkit-1.1.11/icedax/interface.c 2012-07-31 14:27:15.232157548 +0200 +@@ -116,7 +116,7 @@ int (*Play_at)(SCSI *usalp, unsigned in + int (*StopPlay)(SCSI *usalp); + void (*trash_cache)(UINT4 *p, unsigned lSector, unsigned SectorBurstVal); + +-#if defined USE_PARANOIA ++#if 0 //defined USE_PARANOIA + long cdda_read(void *d, void *buffer, long beginsector, long sectors); + + long cdda_read(void *d, void *buffer, long beginsector, long sectors) +diff -up cdrkit-1.1.11/icedax/toc.c.paranoiacdda cdrkit-1.1.11/icedax/toc.c +--- cdrkit-1.1.11/icedax/toc.c.paranoiacdda 2012-07-31 14:27:15.225157311 +0200 ++++ cdrkit-1.1.11/icedax/toc.c 2012-07-31 14:27:15.230157480 +0200 +@@ -379,8 +379,7 @@ static void emit_cddb_form(char *fname_b + static void emit_cdindex_form(char *fname_baseval); + #endif + +- +-typedef struct TOC { /* structure of table of contents (cdrom) */ ++typedef struct TOC_t { /* structure of table of contents (cdrom) */ + unsigned char reserved1; + unsigned char bFlags; + unsigned char bTrack; +@@ -391,8 +390,7 @@ typedef struct TOC { /* structure of tab + int frms; + unsigned char ISRC[16]; + int SCMS; +-} TOC; +- ++} TOC_t; + + /* Flags contains two fields: + bits 7-4 (ADR) +@@ -432,7 +430,7 @@ struct iterator { + int index; + int startindex; + void (*reset)(struct iterator *this); +- struct TOC *(*getNextTrack)(struct iterator *this); ++ struct TOC_t *(*getNextTrack)(struct iterator *this); + int (*hasNextTrack)(struct iterator *this); + }; + +@@ -518,7 +516,7 @@ unsigned FixupTOC(unsigned no_tracks) + InitIterator(&i, 1); + + while (i.hasNextTrack(&i)) { +- struct TOC *p = i.getNextTrack(&i); ++ struct TOC_t *p = i.getNextTrack(&i); + if (IS__AUDIO(p)) count_audio_tracks++; + } + +@@ -733,7 +731,7 @@ static void emit_cddb_form(char *fname_b + fprintf( cddb_form, "# Track frame offsets:\n#\n"); + + while (i.hasNextTrack(&i)) { +- struct TOC *p = i.getNextTrack(&i); ++ struct TOC_t *p = i.getNextTrack(&i); + if (GETTRACK(p) == CDROM_LEADOUT) break; + fprintf( cddb_form, + "# %lu\n", 150 + Get_AudioStartSector(GETTRACK(p))); +@@ -765,7 +763,7 @@ static void emit_cddb_form(char *fname_b + + i.reset(&i); + while (i.hasNextTrack(&i)) { +- struct TOC *p = i.getNextTrack(&i); ++ struct TOC_t *p = i.getNextTrack(&i); + int ii; + + ii = GETTRACK(p); +@@ -788,7 +786,7 @@ static void emit_cddb_form(char *fname_b + + i.reset(&i); + while (i.hasNextTrack(&i)) { +- struct TOC *p = i.getNextTrack(&i); ++ struct TOC_t *p = i.getNextTrack(&i); + int ii; + + ii = GETTRACK(p); +@@ -1495,7 +1493,7 @@ static int IsSingleArtist(void) + InitIterator(&i, 1); + + while (i.hasNextTrack(&i)) { +- struct TOC *p = i.getNextTrack(&i); ++ struct TOC_t *p = i.getNextTrack(&i); + int ii; + + if (IS__DATA(p) || GETTRACK(p) == CDROM_LEADOUT) continue; +@@ -1681,7 +1679,7 @@ static void emit_cdindex_form(char *fnam + global.creator ? ascii2html(global.creator) : ""); + + while (i.hasNextTrack(&i)) { +- struct TOC *p = i.getNextTrack(&i); ++ struct TOC_t *p = i.getNextTrack(&i); + int ii = GETTRACK(p); + + if (ii == CDROM_LEADOUT) break; +@@ -1703,7 +1701,7 @@ static void emit_cdindex_form(char *fnam + fprintf( cdindex_form, " \n"); + + while (i.hasNextTrack(&i)) { +- struct TOC *p = i.getNextTrack(&i); ++ struct TOC_t *p = i.getNextTrack(&i); + int ii = GETTRACK(p); + + if (ii == CDROM_LEADOUT) break; +@@ -1942,9 +1940,9 @@ static void DisplayToc_with_gui(unsigned + + if ((global.verbose & (SHOW_TOC | SHOW_STARTPOSITIONS | SHOW_SUMMARY | SHOW_TITLES)) != 0 + && i.hasNextTrack(&i)) { +- TOC *o = i.getNextTrack(&i); ++ TOC_t *o = i.getNextTrack(&i); + while (i.hasNextTrack(&i)) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + int from; + from = GETTRACK(o); + +@@ -2072,9 +2070,9 @@ static void DisplayToc_no_gui(unsigned l + count_audio_trks = 0; + + if (i.hasNextTrack(&i)) { +- TOC *o = i.getNextTrack(&i); ++ TOC_t *o = i.getNextTrack(&i); + while (i.hasNextTrack(&i)) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + int from; + from = GETTRACK(o); + +@@ -2131,10 +2129,10 @@ static void DisplayToc_no_gui(unsigned l + i.reset(&i); + if ((global.verbose & SHOW_TOC) != 0 && + i.hasNextTrack(&i)) { +- TOC *o = i.getNextTrack(&i); ++ TOC_t *o = i.getNextTrack(&i); + + for (; i.hasNextTrack(&i);) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + + if ( GETTRACK(o) <= MAXTRK ) { + unsigned char brace1, brace2; +@@ -2189,9 +2187,9 @@ static void DisplayToc_no_gui(unsigned l + ii = 0; + i.reset(&i); + if (i.hasNextTrack(&i)) { +- TOC *o = i.getNextTrack(&i); ++ TOC_t *o = i.getNextTrack(&i); + for ( ; i.hasNextTrack(&i);) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + fprintf ( stderr, + " %2u.(%8u)", + GETTRACK(o), +@@ -2248,7 +2246,7 @@ static void DisplayToc_no_gui(unsigned l + + i.reset(&i); + for ( ; i.hasNextTrack(&i);) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + int jj = GETTRACK(p); + + if ( global.tracktitle[jj] != NULL ) { +@@ -2260,7 +2258,7 @@ static void DisplayToc_no_gui(unsigned l + + i.reset(&i); + for ( ; i.hasNextTrack(&i); ) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + int jj; + + if (IS__DATA(p)) +@@ -2720,7 +2718,7 @@ void Read_MCN_ISRC(void) + InitIterator(&i, 1); + + while (i.hasNextTrack(&i)) { +- struct TOC *p = i.getNextTrack(&i); ++ struct TOC_t *p = i.getNextTrack(&i); + unsigned ii = GETTRACK(p); + + if (ii == CDROM_LEADOUT) break; +@@ -3155,7 +3153,7 @@ unsigned ScanIndices(unsigned track, uns + + + while (i.hasNextTrack(&i)) { +- struct TOC *p = i.getNextTrack(&i); ++ struct TOC_t *p = i.getNextTrack(&i); + unsigned ii = GETTRACK(p); + + if ( ii < starttrack || IS__DATA(p) ) +@@ -3322,7 +3320,7 @@ unsigned char *Get_MCN(void) + } + + +-static TOC g_toc [MAXTRK+1]; /* hidden track + 100 regular tracks */ ++static TOC_t g_toc [MAXTRK+1]; /* hidden track + 100 regular tracks */ + + /*#define IS_AUDIO(i) (!(g_toc[i].bFlags & 0x40))*/ + +@@ -3397,10 +3395,10 @@ static int patch_cd_extra(unsigned track + + static int restrict_tracks_illleadout(void) + { +- struct TOC *o = &g_toc[cdtracks+1]; ++ struct TOC_t *o = &g_toc[cdtracks+1]; + int i; + for (i = cdtracks; i >= 0; i--) { +- struct TOC *p = &g_toc[i]; ++ struct TOC_t *p = &g_toc[i]; + if (GETSTART(o) > GETSTART(p)) break; + } + patch_cd_extra(i+1, GETSTART(o)); +@@ -3523,7 +3521,7 @@ static void it_reset(struct iterator *th + + + static int it_hasNextTrack(struct iterator *this); +-static struct TOC *it_getNextTrack(struct iterator *this); ++static struct TOC_t *it_getNextTrack(struct iterator *this); + + static int it_hasNextTrack(struct iterator *this) + { +@@ -3532,7 +3530,7 @@ static int it_hasNextTrack(struct iterat + + + +-static struct TOC *it_getNextTrack(struct iterator *this) ++static struct TOC_t *it_getNextTrack(struct iterator *this) + { + /* if ( (*this->hasNextTrack)(this) == 0 ) return NULL; */ + if ( this->index > (int)cdtracks+1 ) return NULL; +@@ -3583,7 +3581,7 @@ long Get_AudioStartSector(unsigned long + if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT; + + while (i.hasNextTrack(&i)) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + + if (GETTRACK(p) == p_track) { + if (IS__DATA(p)) { +@@ -3613,7 +3611,7 @@ long Get_StartSector(unsigned long p_tra + if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT; + + while (i.hasNextTrack(&i)) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + + if (GETTRACK(p) == p_track) { + return GETSTART(p); +@@ -3637,7 +3635,7 @@ long Get_EndSector(unsigned long p_track + if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT; + + while (i.hasNextTrack(&i)) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + if (GETTRACK(p) == p_track) { + p = i.getNextTrack(&i); + if (p == NULL) { +@@ -3669,7 +3667,7 @@ long FirstAudioTrack(void) + else i.reset(&i); + + while (i.hasNextTrack(&i)) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + unsigned ii = GETTRACK(p); + + if (ii == CDROM_LEADOUT) break; +@@ -3687,7 +3685,7 @@ long FirstDataTrack(void) + else i.reset(&i); + + while (i.hasNextTrack(&i)) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + if (IS__DATA(p)) { + return GETTRACK(p); + } +@@ -3708,7 +3706,7 @@ long LastAudioTrack(void) + else i.reset(&i); + + while (i.hasNextTrack(&i)) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + if (IS__AUDIO(p) && (GETTRACK(p) != CDROM_LEADOUT)) { + j = GETTRACK(p); + } +@@ -3730,7 +3728,7 @@ long Get_LastSectorOnCd(unsigned long p_ + if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT; + + while (i.hasNextTrack(&i)) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + + if (GETTRACK(p) < p_track) + continue; +@@ -3749,9 +3747,9 @@ int Get_Track(unsigned long sector) + else i.reset(&i); + + if (i.hasNextTrack(&i)) { +- TOC *o = i.getNextTrack(&i); ++ TOC_t *o = i.getNextTrack(&i); + while (i.hasNextTrack(&i)) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + if ((GETSTART(o) <= sector) && (GETSTART(p) > sector)) { + if (IS__DATA(o)) { + return -1; +@@ -3772,7 +3770,7 @@ int CheckTrackrange(unsigned long from, + else i.reset(&i); + + while (i.hasNextTrack(&i)) { +- TOC *p = i.getNextTrack(&i); ++ TOC_t *p = i.getNextTrack(&i); + + if (GETTRACK(p) < from) + continue; +@@ -3788,54 +3786,3 @@ int CheckTrackrange(unsigned long from, + return 0; + } + +-#ifdef USE_PARANOIA +-long cdda_disc_firstsector(void *d); +- +-long cdda_disc_firstsector(void *d) +-{ +- return Get_StartSector(FirstAudioTrack()); +-} +- +-int cdda_tracks(void *d); +- +-int cdda_tracks(void *d) +-{ +- return LastAudioTrack() - FirstAudioTrack() +1; +-} +- +-int cdda_track_audiop(void *d, int track); +- +-int cdda_track_audiop(void *d, int track) +-{ +- return Get_Datatrack(track) == 0; +-} +- +-long cdda_track_firstsector(void *d, int track); +- +-long cdda_track_firstsector(void *d, int track) +-{ +- return Get_AudioStartSector(track); +-} +- +-long cdda_track_lastsector(void *d, int track); +- +-long cdda_track_lastsector(void *d, int track) +-{ +- return Get_EndSector(track); +-} +- +-long cdda_disc_lastsector(void *d); +- +-long cdda_disc_lastsector(void *d) +-{ +- return Get_LastSectorOnCd(cdtracks) - 1; +-} +- +-int cdda_sector_gettrack(void *d,long sector); +- +-int cdda_sector_gettrack(void *d, long sector) +-{ +- return Get_Track(sector); +-} +- +-#endif diff --git a/SOURCES/cdrkit-1.1.11-paranoiacdio.patch b/SOURCES/cdrkit-1.1.11-paranoiacdio.patch new file mode 100644 index 0000000..34862e0 --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-paranoiacdio.patch @@ -0,0 +1,2857 @@ +diff -up cdiopara/icedax/global.h.wrk cdiopara/icedax/global.h +diff -up cdiopara/icedax/icedax.c.wrk cdiopara/icedax/icedax.c +--- cdiopara/icedax/icedax.c.wrk 2013-05-14 14:53:18.446879592 +0200 ++++ cdiopara/icedax/icedax.c 2013-05-20 14:38:29.724047315 +0200 +@@ -1149,15 +1149,15 @@ static void paranoia_reset() + para_stat->skips = 0; + } + +-static void paranoia_callback(long inpos, int function); ++static void paranoia_callback(long inpos, paranoia_cb_mode_t function); + +-static void paranoia_callback(long inpos, int function) ++static void paranoia_callback(long inpos, paranoia_cb_mode_t function) + { + struct timeval thistime; + long test; + + switch (function) { +- case -2: ++/* case -2: + para_stat->v_sector = inpos / CD_FRAMEWORDS; + return; + case -1: +@@ -1165,7 +1165,7 @@ static void paranoia_callback(long inpos + para_stat->heartbeat = '*'; + para_stat->slevel = 0; + para_stat->v_sector = inpos / CD_FRAMEWORDS; +- break; ++ break;*/ + case PARANOIA_CB_VERIFY: + if (para_stat->stimeout >= 30) { + if (para_stat->curoverlap > CD_FRAMEWORDS) { +@@ -1232,6 +1232,12 @@ static void paranoia_callback(long inpos + para_stat->slevel = 5; + para_stat->fixup_dupeds++; + break; ++ ++ case PARANOIA_CB_REPAIR: ++ case PARANOIA_CB_BACKOFF: ++ default: ++ fprintf(stderr, "ERROR: Unknown function requested from paranoia_callback. REPORT THIS AS A BUG!/n"); ++ break; + } + + gettimeofday(&thistime, NULL); +@@ -2895,7 +2901,7 @@ Rate Divider Rate Divider + long paranoia_mode; + cdrom_drive *tmpdrive; + usal_close(get_scsi_p()); +- ++// global.cdp = paranoia_init(get_scsi_p()/*, global.nsectors*/); + tmpdrive = cdda_identify(global.dev_name, 0, NULL); + if (!tmpdrive) + { +@@ -2906,7 +2912,7 @@ Rate Divider Rate Divider + if(global.nsectors) + { + tmpdrive->nsectors = global.nsectors; +- tmpdrive->bigbuff = global.nsectors * CD_FRAMESIZE_RAW; ++// tmpdrive->bigbuff = global.nsectors * CD_FRAMESIZE_RAW; + } + if (cdda_open(tmpdrive) != 0) + { +diff -up cdiopara/icedax/icedax.h.wrk cdiopara/icedax/icedax.h +--- cdiopara/icedax/icedax.h.wrk 2013-05-14 14:35:09.646871797 +0200 ++++ cdiopara/icedax/icedax.h 2013-05-14 14:35:55.114209747 +0200 +@@ -71,7 +71,8 @@ unsigned int get_current_track(void); + #define CD_XA_SYNC_HEAD (CD_SYNC_SIZE+CD_XA_HEAD)/* sync bytes + header of XA frame */ + + #define CD_FRAMESIZE 2048 /* bytes per frame, "cooked" mode */ +-#define CD_FRAMESIZE_RAW 2352 /* bytes per frame, "raw" mode */ ++//defined in libcdio: ++//#define CD_FRAMESIZE_RAW 2352 /* bytes per frame, "raw" mode */ + /* most drives don't deliver everything: */ + #define CD_FRAMESIZE_RAW1 (CD_FRAMESIZE_RAW-CD_SYNC_SIZE) /* 2340 */ + #define CD_FRAMESIZE_RAW0 (CD_FRAMESIZE_RAW-CD_SYNC_SIZE-CD_HEAD_SIZE) /* 2336 */ +diff -up cdiopara/icedax/interface.c.wrk cdiopara/icedax/interface.c +--- cdiopara/icedax/interface.c.wrk 2013-05-20 14:54:28.400943735 +0200 ++++ cdiopara/icedax/interface.c 2013-06-25 17:31:18.912450933 +0200 +@@ -75,15 +75,15 @@ + + #include "mytype.h" + #include "byteorder.h" +-#include "interface.h" + #include "icedax.h" + #include "semshm.h" + #include "setuid.h" ++#include "global.h" + #include "ringbuff.h" + #include "toc.h" +-#include "global.h" + #include "ioctl.h" + #include "exitcodes.h" ++#include "interface.h" + #include "scsi_cmds.h" + + #include +diff -up cdiopara/icedax/interface.h.wrk cdiopara/icedax/interface.h +--- cdiopara/icedax/interface.h.wrk 2013-05-22 15:24:17.117837738 +0200 ++++ cdiopara/icedax/interface.h 2013-06-25 17:23:38.155611522 +0200 +@@ -26,7 +26,11 @@ + #define CD_FRAMESIZE_RAW 2352 + #endif + ++#ifndef _CDDA_INTERFACE_H_ ++//#ifndef CD_FRAMESAMPLES + #define CD_FRAMESAMPLES (CD_FRAMESIZE_RAW / 4) ++//#endif ++#endif + + extern unsigned interface; + +diff -up cdiopara/icedax/ioctl.c.wrk cdiopara/icedax/ioctl.c +--- cdiopara/icedax/ioctl.c.wrk 2013-06-25 17:35:30.494695270 +0200 ++++ cdiopara/icedax/ioctl.c 2013-06-25 17:36:21.377147425 +0200 +@@ -55,11 +55,11 @@ + + #include "mytype.h" + #include "byteorder.h" ++#include "global.h" + #include "interface.h" + #include "toc.h" + #include "icedax.h" + #include "ioctl.h" +-#include "global.h" + #include "exitcodes.h" + + #include +diff -up cdiopara/icedax/resample.c.wrk cdiopara/icedax/resample.c +--- cdiopara/icedax/resample.c.wrk 2013-06-25 17:38:40.413456990 +0200 ++++ cdiopara/icedax/resample.c 2013-06-25 17:39:00.557653547 +0200 +@@ -42,6 +42,7 @@ + + #include "mytype.h" + #include "icedax.h" ++#include "global.h" + #include "interface.h" + #include "byteorder.h" + #include "ringbuff.h" +@@ -49,7 +50,6 @@ + #include "toc.h" + #include "sndfile.h" + #include "sndconfig.h" +-#include "global.h" + #include "exitcodes.h" + + +diff -up cdiopara/icedax/scsi_cmds.c.wrk cdiopara/icedax/scsi_cmds.c +--- cdiopara/icedax/scsi_cmds.c.wrk 2013-06-25 17:40:24.592486996 +0200 ++++ cdiopara/icedax/scsi_cmds.c 2013-06-25 17:40:42.189663871 +0200 +@@ -40,9 +40,9 @@ + + #include "mytype.h" + #include "icedax.h" ++#include "global.h" + #include "interface.h" + #include "byteorder.h" +-#include "global.h" + #include "wodim.h" + #include "toc.h" + #include "scsi_cmds.h" +diff -up cdiopara/icedax/semshm.c.wrk cdiopara/icedax/semshm.c +--- cdiopara/icedax/semshm.c.wrk 2013-06-25 17:59:53.181820740 +0200 ++++ cdiopara/icedax/semshm.c 2013-06-25 18:00:35.372272020 +0200 +@@ -90,9 +90,9 @@ + #endif + + #include "mytype.h" ++#include "global.h" + #include "interface.h" + #include "ringbuff.h" +-#include "global.h" + #include "exitcodes.h" + #include "semshm.h" + +diff -up cdiopara/icedax/toc.c.wrk cdiopara/icedax/toc.c +--- cdiopara/icedax/toc.c.wrk 2013-06-25 18:11:05.910961694 +0200 ++++ cdiopara/icedax/toc.c 2013-06-25 18:32:39.559603392 +0200 +@@ -58,9 +58,9 @@ + + #include "mytype.h" + #include "byteorder.h" ++#include "global.h" + #include "interface.h" + #include "icedax.h" +-#include "global.h" + #include "sha.h" + #include "base64.h" + #include "toc.h" +@@ -379,7 +379,7 @@ static void emit_cddb_form(char *fname_b + static void emit_cdindex_form(char *fname_baseval); + #endif + +-typedef struct TOC_t { /* structure of table of contents (cdrom) */ ++typedef struct icedax_TOC_t { /* structure of table of contents (cdrom) */ + unsigned char reserved1; + unsigned char bFlags; + unsigned char bTrack; +@@ -390,7 +390,7 @@ typedef struct TOC_t { /* structure of t + int frms; + unsigned char ISRC[16]; + int SCMS; +-} TOC_t; ++} icedax_TOC_t; + + /* Flags contains two fields: + bits 7-4 (ADR) +@@ -430,7 +430,7 @@ struct iterator { + int index; + int startindex; + void (*reset)(struct iterator *this); +- struct TOC_t *(*getNextTrack)(struct iterator *this); ++ struct icedax_TOC_t *(*getNextTrack)(struct iterator *this); + int (*hasNextTrack)(struct iterator *this); + }; + +@@ -516,7 +516,7 @@ unsigned FixupTOC(unsigned no_tracks) + InitIterator(&i, 1); + + while (i.hasNextTrack(&i)) { +- struct TOC_t *p = i.getNextTrack(&i); ++ struct icedax_TOC_t *p = i.getNextTrack(&i); + if (IS__AUDIO(p)) count_audio_tracks++; + } + +@@ -731,7 +731,7 @@ static void emit_cddb_form(char *fname_b + fprintf( cddb_form, "# Track frame offsets:\n#\n"); + + while (i.hasNextTrack(&i)) { +- struct TOC_t *p = i.getNextTrack(&i); ++ struct icedax_TOC_t *p = i.getNextTrack(&i); + if (GETTRACK(p) == CDROM_LEADOUT) break; + fprintf( cddb_form, + "# %lu\n", 150 + Get_AudioStartSector(GETTRACK(p))); +@@ -763,7 +763,7 @@ static void emit_cddb_form(char *fname_b + + i.reset(&i); + while (i.hasNextTrack(&i)) { +- struct TOC_t *p = i.getNextTrack(&i); ++ struct icedax_TOC_t *p = i.getNextTrack(&i); + int ii; + + ii = GETTRACK(p); +@@ -786,7 +786,7 @@ static void emit_cddb_form(char *fname_b + + i.reset(&i); + while (i.hasNextTrack(&i)) { +- struct TOC_t *p = i.getNextTrack(&i); ++ struct icedax_TOC_t *p = i.getNextTrack(&i); + int ii; + + ii = GETTRACK(p); +@@ -1493,7 +1493,7 @@ static int IsSingleArtist(void) + InitIterator(&i, 1); + + while (i.hasNextTrack(&i)) { +- struct TOC_t *p = i.getNextTrack(&i); ++ struct icedax_TOC_t *p = i.getNextTrack(&i); + int ii; + + if (IS__DATA(p) || GETTRACK(p) == CDROM_LEADOUT) continue; +@@ -1679,7 +1679,7 @@ static void emit_cdindex_form(char *fnam + global.creator ? ascii2html(global.creator) : ""); + + while (i.hasNextTrack(&i)) { +- struct TOC_t *p = i.getNextTrack(&i); ++ struct icedax_TOC_t *p = i.getNextTrack(&i); + int ii = GETTRACK(p); + + if (ii == CDROM_LEADOUT) break; +@@ -1701,7 +1701,7 @@ static void emit_cdindex_form(char *fnam + fprintf( cdindex_form, " \n"); + + while (i.hasNextTrack(&i)) { +- struct TOC_t *p = i.getNextTrack(&i); ++ struct icedax_TOC_t *p = i.getNextTrack(&i); + int ii = GETTRACK(p); + + if (ii == CDROM_LEADOUT) break; +@@ -1940,9 +1940,9 @@ static void DisplayToc_with_gui(unsigned + + if ((global.verbose & (SHOW_TOC | SHOW_STARTPOSITIONS | SHOW_SUMMARY | SHOW_TITLES)) != 0 + && i.hasNextTrack(&i)) { +- TOC_t *o = i.getNextTrack(&i); ++ icedax_TOC_t *o = i.getNextTrack(&i); + while (i.hasNextTrack(&i)) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + int from; + from = GETTRACK(o); + +@@ -2070,9 +2070,9 @@ static void DisplayToc_no_gui(unsigned l + count_audio_trks = 0; + + if (i.hasNextTrack(&i)) { +- TOC_t *o = i.getNextTrack(&i); ++ icedax_TOC_t *o = i.getNextTrack(&i); + while (i.hasNextTrack(&i)) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + int from; + from = GETTRACK(o); + +@@ -2129,10 +2129,10 @@ static void DisplayToc_no_gui(unsigned l + i.reset(&i); + if ((global.verbose & SHOW_TOC) != 0 && + i.hasNextTrack(&i)) { +- TOC_t *o = i.getNextTrack(&i); ++ icedax_TOC_t *o = i.getNextTrack(&i); + + for (; i.hasNextTrack(&i);) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + + if ( GETTRACK(o) <= MAXTRK ) { + unsigned char brace1, brace2; +@@ -2187,9 +2187,9 @@ static void DisplayToc_no_gui(unsigned l + ii = 0; + i.reset(&i); + if (i.hasNextTrack(&i)) { +- TOC_t *o = i.getNextTrack(&i); ++ icedax_TOC_t *o = i.getNextTrack(&i); + for ( ; i.hasNextTrack(&i);) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + fprintf ( stderr, + " %2u.(%8u)", + GETTRACK(o), +@@ -2246,7 +2246,7 @@ static void DisplayToc_no_gui(unsigned l + + i.reset(&i); + for ( ; i.hasNextTrack(&i);) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + int jj = GETTRACK(p); + + if ( global.tracktitle[jj] != NULL ) { +@@ -2258,7 +2258,7 @@ static void DisplayToc_no_gui(unsigned l + + i.reset(&i); + for ( ; i.hasNextTrack(&i); ) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + int jj; + + if (IS__DATA(p)) +@@ -2718,7 +2718,7 @@ void Read_MCN_ISRC(void) + InitIterator(&i, 1); + + while (i.hasNextTrack(&i)) { +- struct TOC_t *p = i.getNextTrack(&i); ++ struct icedax_TOC_t *p = i.getNextTrack(&i); + unsigned ii = GETTRACK(p); + + if (ii == CDROM_LEADOUT) break; +@@ -3153,7 +3153,7 @@ unsigned ScanIndices(unsigned track, uns + + + while (i.hasNextTrack(&i)) { +- struct TOC_t *p = i.getNextTrack(&i); ++ struct icedax_TOC_t *p = i.getNextTrack(&i); + unsigned ii = GETTRACK(p); + + if ( ii < starttrack || IS__DATA(p) ) +@@ -3320,7 +3320,7 @@ unsigned char *Get_MCN(void) + } + + +-static TOC_t g_toc [MAXTRK+1]; /* hidden track + 100 regular tracks */ ++static icedax_TOC_t g_toc [MAXTRK+1]; /* hidden track + 100 regular tracks */ + + /*#define IS_AUDIO(i) (!(g_toc[i].bFlags & 0x40))*/ + +@@ -3395,10 +3395,10 @@ static int patch_cd_extra(unsigned track + + static int restrict_tracks_illleadout(void) + { +- struct TOC_t *o = &g_toc[cdtracks+1]; ++ struct icedax_TOC_t *o = &g_toc[cdtracks+1]; + int i; + for (i = cdtracks; i >= 0; i--) { +- struct TOC_t *p = &g_toc[i]; ++ struct icedax_TOC_t *p = &g_toc[i]; + if (GETSTART(o) > GETSTART(p)) break; + } + patch_cd_extra(i+1, GETSTART(o)); +@@ -3521,7 +3521,7 @@ static void it_reset(struct iterator *th + + + static int it_hasNextTrack(struct iterator *this); +-static struct TOC_t *it_getNextTrack(struct iterator *this); ++static struct icedax_TOC_t *it_getNextTrack(struct iterator *this); + + static int it_hasNextTrack(struct iterator *this) + { +@@ -3530,7 +3530,7 @@ static int it_hasNextTrack(struct iterat + + + +-static struct TOC_t *it_getNextTrack(struct iterator *this) ++static struct icedax_TOC_t *it_getNextTrack(struct iterator *this) + { + /* if ( (*this->hasNextTrack)(this) == 0 ) return NULL; */ + if ( this->index > (int)cdtracks+1 ) return NULL; +@@ -3581,7 +3581,7 @@ long Get_AudioStartSector(unsigned long + if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT; + + while (i.hasNextTrack(&i)) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + + if (GETTRACK(p) == p_track) { + if (IS__DATA(p)) { +@@ -3611,7 +3611,7 @@ long Get_StartSector(unsigned long p_tra + if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT; + + while (i.hasNextTrack(&i)) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + + if (GETTRACK(p) == p_track) { + return GETSTART(p); +@@ -3635,7 +3635,7 @@ long Get_EndSector(unsigned long p_track + if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT; + + while (i.hasNextTrack(&i)) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + if (GETTRACK(p) == p_track) { + p = i.getNextTrack(&i); + if (p == NULL) { +@@ -3667,7 +3667,7 @@ long FirstAudioTrack(void) + else i.reset(&i); + + while (i.hasNextTrack(&i)) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + unsigned ii = GETTRACK(p); + + if (ii == CDROM_LEADOUT) break; +@@ -3685,7 +3685,7 @@ long FirstDataTrack(void) + else i.reset(&i); + + while (i.hasNextTrack(&i)) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + if (IS__DATA(p)) { + return GETTRACK(p); + } +@@ -3706,7 +3706,7 @@ long LastAudioTrack(void) + else i.reset(&i); + + while (i.hasNextTrack(&i)) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + if (IS__AUDIO(p) && (GETTRACK(p) != CDROM_LEADOUT)) { + j = GETTRACK(p); + } +@@ -3728,7 +3728,7 @@ long Get_LastSectorOnCd(unsigned long p_ + if (p_track == cdtracks + 1) p_track = CDROM_LEADOUT; + + while (i.hasNextTrack(&i)) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + + if (GETTRACK(p) < p_track) + continue; +@@ -3747,9 +3747,9 @@ int Get_Track(unsigned long sector) + else i.reset(&i); + + if (i.hasNextTrack(&i)) { +- TOC_t *o = i.getNextTrack(&i); ++ icedax_TOC_t *o = i.getNextTrack(&i); + while (i.hasNextTrack(&i)) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + if ((GETSTART(o) <= sector) && (GETSTART(p) > sector)) { + if (IS__DATA(o)) { + return -1; +@@ -3770,7 +3770,7 @@ int CheckTrackrange(unsigned long from, + else i.reset(&i); + + while (i.hasNextTrack(&i)) { +- TOC_t *p = i.getNextTrack(&i); ++ icedax_TOC_t *p = i.getNextTrack(&i); + + if (GETTRACK(p) < from) + continue; +diff -up cdiopara/icedax/toc.h.wrk cdiopara/icedax/toc.h +--- cdiopara/icedax/toc.h.wrk 2013-05-14 14:41:35.646726988 +0200 ++++ cdiopara/icedax/toc.h 2013-05-14 14:42:06.556954562 +0200 +@@ -12,7 +12,8 @@ + + /* @(#)toc.h 1.9 06/02/19 Copyright 1998,1999 Heiko Eissfeldt, Copyright 2006 J. Schilling */ + +-#define MAXTRK 100 /* maximum of audio tracks (without a hidden track) */ ++//defined in libcdio: ++//#define MAXTRK 100 /* maximum of audio tracks (without a hidden track) */ + + extern unsigned cdtracks; + extern int have_multisession; +diff -up cdiopara/readom/readom.c.wrk cdiopara/readom/readom.c +--- cdiopara/readom/readom.c.wrk 2013-06-25 16:13:03.587078284 +0200 ++++ cdiopara/readom/readom.c 2013-06-25 16:13:27.466480361 +0200 +@@ -1146,7 +1146,7 @@ fread_2448_16(SCSI *usalp, rparm_t *rp, + { + + if (rp->ismmc) { +- track_t trackdesc; ++ wodim_track_t trackdesc; + int ret; + int i; + char *p; +diff -up cdiopara/wodim/auinfo.c.wrk cdiopara/wodim/auinfo.c +--- cdiopara/wodim/auinfo.c.wrk 2013-06-25 16:40:14.572918883 +0200 ++++ cdiopara/wodim/auinfo.c 2013-06-25 16:40:45.335248444 +0200 +@@ -46,16 +46,16 @@ + extern int debug; + extern int xdebug; + +-BOOL auinfosize(char *name, track_t *trackp); +-void auinfo(char *name, int track, track_t *trackp); +-textptr_t *gettextptr(int track, track_t *trackp); ++BOOL auinfosize(char *name, wodim_track_t *trackp); ++void auinfo(char *name, int track, wodim_track_t *trackp); ++textptr_t *gettextptr(int track, wodim_track_t *trackp); + static char *savestr(char *name); + static char *readtag(char *name); + static char *readtstr(char *name); +-void setmcn(char *mcn, track_t *trackp); ++void setmcn(char *mcn, wodim_track_t *trackp); + static void isrc_illchar(char *isrc, int c); +-void setisrc(char *isrc, track_t *trackp); +-void setindex(char *tindex, track_t *trackp); ++void setisrc(char *isrc, wodim_track_t *trackp); ++void setindex(char *tindex, wodim_track_t *trackp); + + #ifdef XXX + int +@@ -68,7 +68,7 @@ main(int argc, char *argv[]) + #endif + + BOOL +-auinfosize(char *name, track_t *trackp) ++auinfosize(char *name, wodim_track_t *trackp) + { + const char *p; + const char *tlp; +@@ -145,11 +145,11 @@ auinfosize(char *name, track_t *trackp) + } + + void +-auinfo(char *name, int track, track_t *trackp) ++auinfo(char *name, int track, wodim_track_t *trackp) + { + char infname[1024]; + char *p; +- track_t *tp = &trackp[track]; ++ wodim_track_t *tp = &trackp[track]; + textptr_t *txp; + long l; + long tno = -1; +@@ -303,7 +303,7 @@ auinfo(char *name, int track, track_t *t + } + + textptr_t * +-gettextptr(int track, track_t *trackp) ++gettextptr(int track, wodim_track_t *trackp) + { + register textptr_t *txp; + +@@ -366,7 +366,7 @@ readtstr(char *name) + * Media catalog number is a 13 digit number. + */ + void +-setmcn(char *mcn, track_t *trackp) ++setmcn(char *mcn, wodim_track_t *trackp) + { + register char *p; + +@@ -404,7 +404,7 @@ isrc_illchar(char *isrc, int c) + * CC-OOO-YY-SSSSS + */ + void +-setisrc(char *isrc, track_t *trackp) ++setisrc(char *isrc, wodim_track_t *trackp) + { + char ibuf[13]; + char *ip; +@@ -482,7 +482,7 @@ illchar: + } + + void +-setindex(char *tindex, track_t *trackp) ++setindex(char *tindex, wodim_track_t *trackp) + { + char *p; + int i; +diff -up cdiopara/wodim/cd_misc.c.wrk cdiopara/wodim/cd_misc.c +--- cdiopara/wodim/cd_misc.c.wrk 2013-06-25 16:52:56.893056513 +0200 ++++ cdiopara/wodim/cd_misc.c 2013-06-25 16:54:56.960519199 +0200 +@@ -42,8 +42,8 @@ + int from_bcd(int b); + int to_bcd(int i); + long msf_to_lba(int m, int s, int f, BOOL force_positive); +-BOOL lba_to_msf(long lba, msf_t *mp); +-void sec_to_msf(long sec, msf_t *mp); ++BOOL lba_to_msf(long lba, wodim_msf_t *mp); ++void sec_to_msf(long sec, wodim_msf_t *mp); + void print_min_atip(long li, long lo); + + int +@@ -73,7 +73,7 @@ msf_to_lba(int m, int s, int f, BOOL for + } + + BOOL +-lba_to_msf(long lba, msf_t *mp) ++lba_to_msf(long lba, wodim_msf_t *mp) + { + int m; + int s; +@@ -110,7 +110,7 @@ lba_to_msf(long lba, msf_t *mp) + } + + void +-sec_to_msf(long sec, msf_t *mp) ++sec_to_msf(long sec, wodim_msf_t *mp) + { + int m; + int s; +@@ -128,7 +128,7 @@ sec_to_msf(long sec, msf_t *mp) + void + print_min_atip(long li, long lo) + { +- msf_t msf; ++ wodim_msf_t msf; + + if (li < 0) { + lba_to_msf(li, &msf); +diff -up cdiopara/wodim/cdr_drv.c.wrk cdiopara/wodim/cdr_drv.c +--- cdiopara/wodim/cdr_drv.c.wrk 2013-06-25 16:42:28.603492864 +0200 ++++ cdiopara/wodim/cdr_drv.c 2013-06-25 16:43:07.938976575 +0200 +@@ -77,7 +77,7 @@ int format_dummy(SCSI *usalp, cdr_t *, i + int drive_getdisktype(SCSI *usalp, cdr_t *dp); + int cmd_ill(SCSI *usalp); + int cmd_dummy(SCSI *usalp, cdr_t *); +-int no_sendcue(SCSI *usalp, cdr_t *, track_t *trackp); ++int no_sendcue(SCSI *usalp, cdr_t *, wodim_track_t *trackp); + int buf_dummy(SCSI *usalp, long *sp, long *fp); + BOOL set_cdrcmds(char *name, cdr_t **dpp); + cdr_t *get_cdrcmds(SCSI *usalp); +@@ -165,7 +165,7 @@ cmd_dummy(SCSI *usalp, cdr_t *dp) + } + + int +-no_sendcue(SCSI *usalp, cdr_t *dp, track_t *trackp) ++no_sendcue(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + errmsgno(EX_BAD, "SAO writing not available or not implemented for this drive.\n"); + return (-1); +diff -up cdiopara/wodim/cdtext.c.wrk cdiopara/wodim/cdtext.c +--- cdiopara/wodim/cdtext.c.wrk 2013-06-25 16:44:38.388059921 +0200 ++++ cdiopara/wodim/cdtext.c 2013-06-25 16:44:59.599309190 +0200 +@@ -119,8 +119,8 @@ int textlen; + BOOL checktextfile(char *fname); + static void setuptextdata(Uchar *bp, int len); + static BOOL cdtext_crc_ok(struct textpack *p); +-void packtext(int tracks, track_t *trackp); +-static BOOL anytext(int pack_type, int tracks, track_t *trackp); ++void packtext(int tracks, wodim_track_t *trackp); ++static BOOL anytext(int pack_type, int tracks, wodim_track_t *trackp); + static void fillup_pack(txtarg_t *ap); + static void fillpacks(txtarg_t *ap, char *from, int len, int track_no, int pack_type); + int write_cdtext(SCSI *usalp, cdr_t *dp, long startsec); +@@ -295,7 +295,7 @@ static BOOL cdtext_crc_ok(struct textpac + } + + +-void packtext(int tracks, track_t *trackp) ++void packtext(int tracks, wodim_track_t *trackp) + { + int type; + int i; +@@ -373,7 +373,7 @@ void packtext(int tracks, track_t *track + #endif + } + +-static BOOL anytext(int pack_type, int tracks, track_t *trackp) ++static BOOL anytext(int pack_type, int tracks, wodim_track_t *trackp) + { + register int i; + register char *p; +diff -up cdiopara/wodim/clone.c.wrk cdiopara/wodim/clone.c +--- cdiopara/wodim/clone.c.wrk 2013-06-25 17:33:21.013643927 +0200 ++++ cdiopara/wodim/clone.c 2013-06-25 17:43:07.932151568 +0200 +@@ -52,8 +52,8 @@ + + /*#define SAO_RAW*/ + +-void clone_toc(track_t *trackp); +-void clone_tracktype(track_t *trackp); ++void clone_toc(wodim_track_t *trackp); ++void clone_tracktype(wodim_track_t *trackp); + + extern int lverbose; + extern int xdebug; +@@ -72,11 +72,11 @@ static long loutstart; + /* + * Read Clone TOC description from full toc file. + */ +-void clone_toc(track_t *trackp) ++void clone_toc(wodim_track_t *trackp) + { + char filename[1024]; +- msf_t m; +- msf_t mr; ++ wodim_msf_t m; ++ wodim_msf_t mr; + struct tocheader *tp; + struct ftrackdesc *fp; + int f; +@@ -208,7 +208,7 @@ void clone_toc(track_t *trackp) + * Control 4 = data + * Control 5 = packet data + */ +-void clone_tracktype(track_t *trackp) ++void clone_tracktype(wodim_track_t *trackp) + { + int tracks = trackp->tracks; + int sectype; +diff -up cdiopara/wodim/cue.c.wrk cdiopara/wodim/cue.c +--- cdiopara/wodim/cue.c.wrk 2013-06-25 17:44:52.030231911 +0200 ++++ cdiopara/wodim/cue.c 2013-06-25 17:46:01.606959365 +0200 +@@ -238,22 +238,22 @@ static keyw_t dtypes[] = { + }; + + +-int parsecue(char *cuefname, track_t trackp[]); +-void fparsecue(FILE *f, track_t trackp[]); +-static void parse_mcn(track_t trackp[], state_t *sp); +-static void parse_textfile(track_t trackp[], state_t *sp); +-static void parse_file(track_t trackp[], state_t *sp); +-static void parse_flags(track_t trackp[], state_t *sp); +-static void parse_index(track_t trackp[], state_t *sp); +-static void parse_isrc(track_t trackp[], state_t *sp); +-static void parse_performer(track_t trackp[], state_t *sp); +-static void parse_postgap(track_t trackp[], state_t *sp); +-static void parse_pregap(track_t trackp[], state_t *sp); +-static void parse_songwriter(track_t trackp[], state_t *sp); +-static void parse_title(track_t trackp[], state_t *sp); +-static void parse_track(track_t trackp[], state_t *sp); ++int parsecue(char *cuefname, wodim_track_t trackp[]); ++void fparsecue(FILE *f, wodim_track_t trackp[]); ++static void parse_mcn(wodim_track_t trackp[], state_t *sp); ++static void parse_textfile(wodim_track_t trackp[], state_t *sp); ++static void parse_file(wodim_track_t trackp[], state_t *sp); ++static void parse_flags(wodim_track_t trackp[], state_t *sp); ++static void parse_index(wodim_track_t trackp[], state_t *sp); ++static void parse_isrc(wodim_track_t trackp[], state_t *sp); ++static void parse_performer(wodim_track_t trackp[], state_t *sp); ++static void parse_postgap(wodim_track_t trackp[], state_t *sp); ++static void parse_pregap(wodim_track_t trackp[], state_t *sp); ++static void parse_songwriter(wodim_track_t trackp[], state_t *sp); ++static void parse_title(wodim_track_t trackp[], state_t *sp); ++static void parse_track(wodim_track_t trackp[], state_t *sp); + static void parse_offset(long *lp); +-static void newtrack(track_t trackp[], state_t *sp); ++static void newtrack(wodim_track_t trackp[], state_t *sp); + + static keyw_t *lookup(char *word, keyw_t table[]); + static void wdebug(void); +@@ -286,7 +286,7 @@ int + main(int argc, char *argv[]) + { + int i; +- track_t track[MAX_TRACK+2]; /* Max tracks + track 0 + track AA */ ++ wodim_track_t track[MAX_TRACK+2]; /* Max tracks + track 0 + track AA */ + + save_args(argc, argv); + +@@ -304,7 +304,7 @@ extern int xdebug; + #endif + + int +-parsecue(char *cuefname, track_t trackp[]) ++parsecue(char *cuefname, wodim_track_t trackp[]) + { + FILE *f = cueopen(cuefname); + +@@ -313,7 +313,7 @@ parsecue(char *cuefname, track_t trackp[ + } + + void +-fparsecue(FILE *f, track_t trackp[]) ++fparsecue(FILE *f, wodim_track_t trackp[]) + { + char *word; + struct keyw *kp; +@@ -402,7 +402,7 @@ fparsecue(FILE *f, track_t trackp[]) + } + + static void +-parse_mcn(track_t trackp[], state_t *sp) ++parse_mcn(wodim_track_t trackp[], state_t *sp) + { + char *word; + textptr_t *txp; +@@ -419,7 +419,7 @@ parse_mcn(track_t trackp[], state_t *sp) + } + + static void +-parse_textfile(track_t trackp[], state_t *sp) ++parse_textfile(wodim_track_t trackp[], state_t *sp) + { + char *word; + +@@ -444,7 +444,7 @@ parse_textfile(track_t trackp[], state_t + } + + static void +-parse_file(track_t trackp[], state_t *sp) ++parse_file(wodim_track_t trackp[], state_t *sp) + { + char cname[1024]; + char newname[1024]; +@@ -543,7 +543,7 @@ parse_file(track_t trackp[], state_t *sp + } + + static void +-parse_flags(track_t trackp[], state_t *sp) ++parse_flags(wodim_track_t trackp[], state_t *sp) + { + struct keyw *kp; + char *word; +@@ -575,7 +575,7 @@ parse_flags(track_t trackp[], state_t *s + } + + static void +-parse_index(track_t trackp[], state_t *sp) ++parse_index(wodim_track_t trackp[], state_t *sp) + { + char *word; + long l; +@@ -634,7 +634,7 @@ parse_index(track_t trackp[], state_t *s + } + + static void +-parse_isrc(track_t trackp[], state_t *sp) ++parse_isrc(wodim_track_t trackp[], state_t *sp) + { + char *word; + textptr_t *txp; +@@ -657,7 +657,7 @@ parse_isrc(track_t trackp[], state_t *sp + } + + static void +-parse_performer(track_t trackp[], state_t *sp) ++parse_performer(wodim_track_t trackp[], state_t *sp) + { + char *word; + textptr_t *txp; +@@ -670,7 +670,7 @@ parse_performer(track_t trackp[], state_ + } + + static void +-parse_postgap(track_t trackp[], state_t *sp) ++parse_postgap(wodim_track_t trackp[], state_t *sp) + { + long l; + +@@ -685,7 +685,7 @@ parse_postgap(track_t trackp[], state_t + } + + static void +-parse_pregap(track_t trackp[], state_t *sp) ++parse_pregap(wodim_track_t trackp[], state_t *sp) + { + long l; + +@@ -701,7 +701,7 @@ parse_pregap(track_t trackp[], state_t * + } + + static void +-parse_songwriter(track_t trackp[], state_t *sp) ++parse_songwriter(wodim_track_t trackp[], state_t *sp) + { + char *word; + textptr_t *txp; +@@ -714,7 +714,7 @@ parse_songwriter(track_t trackp[], state + } + + static void +-parse_title(track_t trackp[], state_t *sp) ++parse_title(wodim_track_t trackp[], state_t *sp) + { + char *word; + textptr_t *txp; +@@ -727,7 +727,7 @@ parse_title(track_t trackp[], state_t *s + } + + static void +-parse_track(track_t trackp[], state_t *sp) ++parse_track(wodim_track_t trackp[], state_t *sp) + { + struct keyw *kp; + char *word; +@@ -878,7 +878,7 @@ parse_offset(long *lp) + + /*--------------------------------------------------------------------------*/ + static void +-newtrack(track_t trackp[], state_t *sp) ++newtrack(wodim_track_t trackp[], state_t *sp) + { + register int i; + register int track = sp->track; +diff -up cdiopara/wodim/diskid.c.wrk cdiopara/wodim/diskid.c +--- cdiopara/wodim/diskid.c.wrk 2013-06-25 18:02:27.661472904 +0200 ++++ cdiopara/wodim/diskid.c 2013-06-25 18:03:26.453101549 +0200 +@@ -39,13 +39,13 @@ + + #include "wodim.h" + +-void pr_manufacturer(msf_t *mp, BOOL rw, BOOL audio); +-static struct disk_man *man_ptr(msf_t *mp); +-int manufacturer_id(msf_t *mp); +-long disk_rcap(msf_t *mp, long maxblock, BOOL rw, BOOL audio); ++void pr_manufacturer(wodim_msf_t *mp, BOOL rw, BOOL audio); ++static struct disk_man *man_ptr(wodim_msf_t *mp); ++int manufacturer_id(wodim_msf_t *mp); ++long disk_rcap(wodim_msf_t *mp, long maxblock, BOOL rw, BOOL audio); + + struct disk_man { +- msf_t mi_msf; ++ wodim_msf_t mi_msf; + char mi_num; + char *mi_name; + }; +@@ -328,7 +328,7 @@ static struct disk_man dman[] = { + #define ndman (sizeof (dman)/sizeof (dman[0])) + + static struct disk_man * +-man_ptr(msf_t *mp) ++man_ptr(wodim_msf_t *mp) + { + struct disk_man * dp; + int frame; +@@ -363,7 +363,7 @@ man_ptr(msf_t *mp) + return (NULL); + } + +-void pr_manufacturer(msf_t *mp, BOOL rw, BOOL audio) ++void pr_manufacturer(wodim_msf_t *mp, BOOL rw, BOOL audio) + { + struct disk_man * dp; + struct disk_man xdman; +@@ -417,7 +417,7 @@ void pr_manufacturer(msf_t *mp, BOOL rw, + } + } + +-int manufacturer_id(msf_t *mp) ++int manufacturer_id(wodim_msf_t *mp) + { + struct disk_man * dp; + +@@ -428,7 +428,7 @@ int manufacturer_id(msf_t *mp) + } + + struct disk_rcap { +- msf_t ci_msf; /* Lead in start time */ ++ wodim_msf_t ci_msf; /* Lead in start time */ + long ci_cap; /* Lead out start time */ + long ci_rcap; /* Abs max lead out start */ + }; +@@ -505,7 +505,7 @@ static struct disk_rcap rcap[] = { + }; + + long +-disk_rcap(msf_t *mp, long maxblock, BOOL rw, BOOL audio) ++disk_rcap(wodim_msf_t *mp, long maxblock, BOOL rw, BOOL audio) + { + struct disk_rcap * dp; + +diff -up cdiopara/wodim/drv_7501.c.wrk cdiopara/wodim/drv_7501.c +--- cdiopara/wodim/drv_7501.c.wrk 2013-06-25 18:08:14.575166824 +0200 ++++ cdiopara/wodim/drv_7501.c 2013-06-25 18:14:44.030252075 +0200 +@@ -225,18 +225,18 @@ static int cw7501_attach(SCSI *usalp, cd + static int cw7501_init(SCSI *usalp, cdr_t *dp); + static int cw7501_getdisktype(SCSI *usalp, cdr_t *dp); + static int cw7501_speed_select(SCSI *usalp, cdr_t *dp, int *speedp); +-static int cw7501_next_wr_addr(SCSI *usalp, track_t *trackp, long *ap); ++static int cw7501_next_wr_addr(SCSI *usalp, wodim_track_t *trackp, long *ap); + static int cw7501_write(SCSI *usalp, caddr_t bp, long sectaddr, long size, + int blocks, BOOL islast); +-static int cw7501_write_leadin(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int cw7501_open_track(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int cw7501_close_track(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int cw7501_open_session(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int cw7501_gen_cue(track_t *trackp, void *vcuep, BOOL needgap); ++static int cw7501_write_leadin(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int cw7501_open_track(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int cw7501_close_track(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int cw7501_open_session(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int cw7501_gen_cue(wodim_track_t *trackp, void *vcuep, BOOL needgap); + static void fillcue(struct cw7501_cue *cp, int ca, int tno, int idx, +- int dataform, int scms, msf_t *mp); +-static int cw7501_send_cue(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int cw7501_fixate(SCSI *usalp, cdr_t *dp, track_t *trackp); ++ int dataform, int scms, wodim_msf_t *mp); ++static int cw7501_send_cue(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int cw7501_fixate(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + static int cw7501_rezero(SCSI *usalp, int reset, int dwreset); + static int cw7501_read_trackinfo(SCSI *usalp, Uchar *bp, int count, + int track, int mode); +@@ -461,7 +461,7 @@ cw7501_speed_select(SCSI *usalp, cdr_t * + } + + static int +-cw7501_next_wr_addr(SCSI *usalp, track_t *trackp, long *ap) ++cw7501_next_wr_addr(SCSI *usalp, wodim_track_t *trackp, long *ap) + { + struct cw7501_nwa *nwa; + Uchar buf[256]; +@@ -520,7 +520,7 @@ cw7501_write(SCSI *usalp, + } + + static int +-cw7501_write_leadin(SCSI *usalp, cdr_t *dp, track_t *trackp) ++cw7501_write_leadin(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + Uint i; + long startsec = 0L; +@@ -572,7 +572,7 @@ static Uchar db2phys[] = { + }; + + static int +-cw7501_open_track(SCSI *usalp, cdr_t *dp, track_t *trackp) ++cw7501_open_track(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + struct scsi_mode_page_header *mp; + Uchar mode[256]; +@@ -632,7 +632,7 @@ cw7501_open_track(SCSI *usalp, cdr_t *dp + + + static int +-cw7501_close_track(SCSI *usalp, cdr_t *dp, track_t *trackp) ++cw7501_close_track(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + if (!is_tao(trackp) && !is_packet(trackp)) { + return (0); +@@ -641,7 +641,7 @@ cw7501_close_track(SCSI *usalp, cdr_t *d + } + + static int +-cw7501_open_session(SCSI *usalp, cdr_t *dp, track_t *trackp) ++cw7501_open_session(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + struct cw7501_mode_data md; + int count; +@@ -695,7 +695,7 @@ cw7501_open_session(SCSI *usalp, cdr_t * + } + + static int +-cw7501_fixate(SCSI *usalp, cdr_t *dp, track_t *trackp) ++cw7501_fixate(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + if (!is_tao(trackp) && !is_packet(trackp)) { + return (scsi_flush_cache(usalp, FALSE)); +@@ -711,7 +711,7 @@ cw7501_fixate(SCSI *usalp, cdr_t *dp, tr + /*--------------------------------------------------------------------------*/ + + static int +-cw7501_gen_cue(track_t *trackp, void *vcuep, BOOL needgap) ++cw7501_gen_cue(wodim_track_t *trackp, void *vcuep, BOOL needgap) + { + int tracks = trackp->tracks; + int i; +@@ -721,7 +721,7 @@ cw7501_gen_cue(track_t *trackp, void *vc + int ncue = 0; + int icue = 0; + int pgsize; +- msf_t m; ++ wodim_msf_t m; + int ctl; + int df; + int scms; +@@ -820,7 +820,7 @@ fillcue(struct cw7501_cue *cp /* The tar + int idx /* Index for this entry */, + int dataform /* Data format for this entry */, + int scms /* Serial copy management */, +- msf_t *mp /* MSF value for this entry */) ++ wodim_msf_t *mp /* MSF value for this entry */) + { + cp->cs_ctladr = ca; + if (tno <= 99) +@@ -838,7 +838,7 @@ fillcue(struct cw7501_cue *cp /* The tar + } + + static int +-cw7501_send_cue(SCSI *usalp, cdr_t *dp, track_t *trackp) ++cw7501_send_cue(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + struct cw7501_cue *cp; + int ncue; +diff -up cdiopara/wodim/drv_jvc.c.wrk cdiopara/wodim/drv_jvc.c +--- cdiopara/wodim/drv_jvc.c.wrk 2013-06-25 18:17:15.654847220 +0200 ++++ cdiopara/wodim/drv_jvc.c 2013-06-25 18:20:04.868629843 +0200 +@@ -220,15 +220,15 @@ static int teac_attach(SCSI *usalp, cdr_ + static int teac_init(SCSI *usalp, cdr_t *dp); + static int teac_getdisktype(SCSI *usalp, cdr_t *dp); + static int speed_select_teac(SCSI *usalp, cdr_t *dp, int *speedp); +-static int select_secsize_teac(SCSI *usalp, track_t *trackp); +-static int next_wr_addr_jvc(SCSI *usalp, track_t *, long *ap); ++static int select_secsize_teac(SCSI *usalp, wodim_track_t *trackp); ++static int next_wr_addr_jvc(SCSI *usalp, wodim_track_t *, long *ap); + static int write_teac_xg1(SCSI *usalp, caddr_t, long, long, int, BOOL); + static int cdr_write_teac(SCSI *usalp, caddr_t bp, long sectaddr, long size, + int blocks, BOOL islast); +-static int open_track_jvc(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int teac_fixation(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int close_track_teac(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int teac_open_session(SCSI *usalp, cdr_t *dp, track_t *trackp); ++static int open_track_jvc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int teac_fixation(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int close_track_teac(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int teac_open_session(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + static int initsub_teac(SCSI *usalp, int toctype, int multi); + static int teac_doopc(SCSI *usalp); + static int teac_opc(SCSI *usalp, caddr_t, int cnt, int doopc); +@@ -278,9 +278,9 @@ cdr_t cdr_teac_cdr50 = { + next_wr_addr_jvc, + (int(*)(SCSI *, Ulong))cmd_ill, /* reserve_track */ + cdr_write_teac, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_jvc, + close_track_teac, + teac_open_session, +@@ -372,7 +372,7 @@ speed_select_teac(SCSI *usalp, cdr_t *dp + } + + static int +-select_secsize_teac(SCSI *usalp, track_t *trackp) ++select_secsize_teac(SCSI *usalp, wodim_track_t *trackp) + { + struct scsi_mode_data md; + int count = sizeof (struct scsi_mode_header) + +@@ -403,7 +403,7 @@ select_secsize_teac(SCSI *usalp, track_t + } + + static int +-next_wr_addr_jvc(SCSI *usalp, track_t *trackp, long *ap) ++next_wr_addr_jvc(SCSI *usalp, wodim_track_t *trackp, long *ap) + { + if (trackp != 0 && trackp->track > 0) { + *ap = lba_addr; +@@ -473,7 +473,7 @@ cdr_write_teac(SCSI *usalp, + } + + static int +-open_track_jvc(SCSI *usalp, cdr_t *dp, track_t *trackp) ++open_track_jvc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + int status; + long blocks; +@@ -601,7 +601,7 @@ if (!is_last(trackp) && trackp[1].pregap + static char sector[3000]; + + static int +-close_track_teac(SCSI *usalp, cdr_t *dp, track_t *trackp) ++close_track_teac(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + int ret = 0; + +@@ -698,7 +698,7 @@ teac_attach(SCSI *usalp, cdr_t *dp) + } + + static int +-teac_fixation(SCSI *usalp, cdr_t *dp, track_t *trackp) ++teac_fixation(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + long lba; + int status; +@@ -811,7 +811,7 @@ extern char *buf; + } + + static int +-teac_open_session(SCSI *usalp, cdr_t *dp, track_t *trackp) ++teac_open_session(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + Uint i; + +diff -up cdiopara/wodim/drv_mmc.c.wrk cdiopara/wodim/drv_mmc.c +--- cdiopara/wodim/drv_mmc.c.wrk 2013-06-25 18:24:35.494485316 +0200 ++++ cdiopara/wodim/drv_mmc.c 2013-06-25 18:25:57.345350411 +0200 +@@ -110,18 +110,18 @@ static int speed_select_mmc(SCSI *usalp, + static int speed_select_mdvd(SCSI *usalp, cdr_t *dp, int *speedp); + static int mmc_set_speed(SCSI *usalp, int readspeed, int writespeed, + int rotctl); +-static int next_wr_addr_mmc(SCSI *usalp, track_t *trackp, long *ap); +-static int next_wr_addr_mdvd(SCSI *usalp, track_t *trackp, long *ap); +-static int write_leadin_mmc(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int open_track_mmc(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int open_track_mdvd(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int close_track_mmc(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int close_track_mdvd(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int open_session_mmc(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int open_session_mdvd(SCSI *usalp, cdr_t *dp, track_t *trackp); ++static int next_wr_addr_mmc(SCSI *usalp, wodim_track_t *trackp, long *ap); ++static int next_wr_addr_mdvd(SCSI *usalp, wodim_track_t *trackp, long *ap); ++static int write_leadin_mmc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int open_track_mmc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int open_track_mdvd(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int close_track_mmc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int close_track_mdvd(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int open_session_mmc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int open_session_mdvd(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + static int waitfix_mmc(SCSI *usalp, int secs); +-static int fixate_mmc(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int fixate_mdvd(SCSI *usalp, cdr_t *dp, track_t *trackp); ++static int fixate_mmc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int fixate_mdvd(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + static int blank_mmc(SCSI *usalp, cdr_t *dp, long addr, int blanktype); + static int format_mdvd(SCSI *usalp, cdr_t *dp, int formattype); + static int send_opc_mmc(SCSI *usalp, caddr_t, int cnt, int doopc); +@@ -130,10 +130,10 @@ static int opt1_mdvd(SCSI *usalp, cdr_t + static int opt2_mmc(SCSI *usalp, cdr_t *dp); + static int scsi_sony_write(SCSI *usalp, caddr_t bp, long sectaddr, long size, + int blocks, BOOL islast); +-static int gen_cue_mmc(track_t *trackp, void *vcuep, BOOL needgap); ++static int gen_cue_mmc(wodim_track_t *trackp, void *vcuep, BOOL needgap); + static void fillcue(struct mmc_cue *cp, int ca, int tno, int idx, int dataform, +- int scms, msf_t *mp); +-static int send_cue_mmc(SCSI *usalp, cdr_t *dp, track_t *trackp); ++ int scms, wodim_msf_t *mp); ++static int send_cue_mmc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + static int stats_mmc(SCSI *usalp, cdr_t *dp); + static BOOL mmc_isplextor(SCSI *usalp); + static BOOL mmc_isyamaha(SCSI *usalp); +@@ -251,8 +251,8 @@ cdr_t cdr_mdvd = { + next_wr_addr_mdvd, + (int(*)(SCSI *, Ulong))cmd_ill, /* reserve_track */ + scsi_cdr_write, +- (int(*)__PR((track_t *, void *, BOOL)))cmd_dummy, /* gen_cue */ +- (int(*)__PR((SCSI *usalp, cdr_t *, track_t *)))cmd_dummy, /* send_cue */ ++ (int(*)__PR((wodim_track_t *, void *, BOOL)))cmd_dummy, /* gen_cue */ ++ (int(*)__PR((SCSI *usalp, cdr_t *, wodim_track_t *)))cmd_dummy, /* send_cue */ + write_leadin_mmc, + open_track_mdvd, + close_track_mdvd, +@@ -337,19 +337,19 @@ cdr_t cdr_cd = { + (int(*)(SCSI *, cdr_t *, int))cmd_dummy, /* recover */ + speed_select_mmc, + select_secsize, +- (int(*)(SCSI *usalp, track_t *, long *))cmd_ill, /* next_wr_addr */ ++ (int(*)(SCSI *usalp, wodim_track_t *, long *))cmd_ill, /* next_wr_addr */ + (int(*)(SCSI *, Ulong))cmd_ill, /* reserve_track */ + scsi_cdr_write, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_mmc, + close_track_mmc, +- (int(*)(SCSI *usalp, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *usalp, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset, +- (int(*)(SCSI *usalp, cdr_t *, track_t *))cmd_dummy, /* fixation */ ++ (int(*)(SCSI *usalp, cdr_t *, wodim_track_t *))cmd_dummy, /* fixation */ + cmd_dummy, /* stats */ + blank_dummy, + format_dummy, +@@ -381,19 +381,19 @@ cdr_t cdr_oldcd = { + (int(*)(SCSI *, cdr_t *, int))cmd_dummy, /* recover */ + speed_select_mmc, + select_secsize, +- (int(*)(SCSI *usal, track_t *, long *))cmd_ill, /* next_wr_addr */ ++ (int(*)(SCSI *usal, wodim_track_t *, long *))cmd_ill, /* next_wr_addr */ + (int(*)(SCSI *, Ulong))cmd_ill, /* reserve_track */ + scsi_cdr_write, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_mmc, + close_track_mmc, +- (int(*)(SCSI *usalp, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *usalp, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset_philips, +- (int(*)(SCSI *usalp, cdr_t *, track_t *))cmd_dummy, /* fixation */ ++ (int(*)(SCSI *usalp, cdr_t *, wodim_track_t *))cmd_dummy, /* fixation */ + cmd_dummy, /* stats */ + blank_dummy, + format_dummy, +@@ -426,19 +426,19 @@ cdr_t cdr_cd_dvd = { + (int(*)(SCSI *, cdr_t *, int))cmd_dummy, /* recover */ + speed_select_mmc, + select_secsize, +- (int(*)(SCSI *usalp, track_t *, long *))cmd_ill, /* next_wr_addr */ ++ (int(*)(SCSI *usalp, wodim_track_t *, long *))cmd_ill, /* next_wr_addr */ + (int(*)(SCSI *, Ulong))cmd_ill, /* reserve_track */ + scsi_cdr_write, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_mmc, + close_track_mmc, +- (int(*)(SCSI *usalp, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *usalp, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset, +- (int(*)(SCSI *usalp, cdr_t *, track_t *))cmd_dummy, /* fixation */ ++ (int(*)(SCSI *usalp, cdr_t *, wodim_track_t *))cmd_dummy, /* fixation */ + cmd_dummy, /* stats */ + blank_dummy, + format_dummy, +@@ -1549,7 +1549,7 @@ extern char *buf; + dstat_t *dsp = dp->cdr_dstat; + struct disk_info *dip; + Uchar mode[0x100]; +- msf_t msf; ++ wodim_msf_t msf; + BOOL did_atip = FALSE; + BOOL did_dummy = FALSE; + int rplus; +@@ -2116,7 +2116,7 @@ speed_select_mdvd(SCSI *usalp, cdr_t *dp + } + + static int +-next_wr_addr_mmc(SCSI *usalp, track_t *trackp, long *ap) ++next_wr_addr_mmc(SCSI *usalp, wodim_track_t *trackp, long *ap) + { + struct track_info track_info; + long next_addr; +@@ -2157,7 +2157,7 @@ next_wr_addr_mmc(SCSI *usalp, track_t *t + } + + static int +-write_leadin_mmc(SCSI *usalp, cdr_t *dp, track_t *trackp) ++write_leadin_mmc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + Uint i; + long startsec = 0L; +@@ -2247,7 +2247,7 @@ int st2mode[] = { + }; + + static int +-next_wr_addr_mdvd(SCSI *usalp, track_t *trackp, long *ap) ++next_wr_addr_mdvd(SCSI *usalp, wodim_track_t *trackp, long *ap) + { + int track=0; + struct track_info track_info; +@@ -2287,7 +2287,7 @@ next_wr_addr_mdvd(SCSI *usalp, track_t * + } + + static int +-open_track_mmc(SCSI *usalp, cdr_t *dp, track_t *trackp) ++open_track_mmc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + Uchar mode[0x100]; + int len; +@@ -2364,7 +2364,7 @@ open_track_mmc(SCSI *usalp, cdr_t *dp, t + } + + static int +-open_track_mdvd(SCSI *usalp, cdr_t *dp, track_t *trackp) ++open_track_mdvd(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + Uchar mode[0x100]; + int len; +@@ -2400,7 +2400,7 @@ open_track_mdvd(SCSI *usalp, cdr_t *dp, + } + + static int +-close_track_mmc(SCSI *usalp, cdr_t *dp, track_t *trackp) ++close_track_mmc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + int ret; + +@@ -2423,7 +2423,7 @@ close_track_mmc(SCSI *usalp, cdr_t *dp, + } + + static int +-close_track_mdvd(SCSI *usalp, cdr_t *dp, track_t *trackp) ++close_track_mdvd(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + int ret; + if (!is_packet(trackp)) +@@ -2454,7 +2454,7 @@ int toc2sess[] = { + }; + + static int +-open_session_mmc(SCSI *usalp, cdr_t *dp, track_t *trackp) ++open_session_mmc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + Uchar mode[0x100]; + int len; +@@ -2523,7 +2523,7 @@ open_session_mmc(SCSI *usalp, cdr_t *dp, + } + + static int +-open_session_mdvd(SCSI *usalp, cdr_t *dp, track_t *trackp) ++open_session_mdvd(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + Uchar mode[0x100]; + int tracks = trackp->tracks; +@@ -2633,7 +2633,7 @@ waitfix_mmc(SCSI *usalp, int secs) + } + + static int +-fixate_mmc(SCSI *usalp, cdr_t *dp, track_t *trackp) ++fixate_mmc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + int ret = 0; + int key = 0; +@@ -2738,7 +2738,7 @@ fixate_mmc(SCSI *usalp, cdr_t *dp, track + } + + static int +-fixate_mdvd(SCSI *usalp, cdr_t *dp, track_t *trackp) ++fixate_mdvd(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + int ret; + if (scsi_flush_cache(usalp, (dp->cdr_cmdflags&F_IMMED) != 0) < 0) { +@@ -2960,7 +2960,7 @@ opt1_mmc(SCSI *usalp, cdr_t *dp) + } + dp->cdr_dstat->ds_cdrflags = oflags; + if (oflags & RF_PRATIP) { +- msf_t msf; ++ wodim_msf_t msf; + lba_to_msf(dp->cdr_dstat->ds_first_leadin, &msf); + printf("New start of lead in: %ld (%02d:%02d/%02d)\n", + (long)dp->cdr_dstat->ds_first_leadin, +@@ -2998,7 +2998,7 @@ opt1_mmc(SCSI *usalp, cdr_t *dp) + else + gcode = gigarec_plextor(usalp, 0); + if (gcode != 0) { +- msf_t msf; ++ wodim_msf_t msf; + + dp->cdr_dstat->ds_first_leadin = + gigarec_mult(gcode, dp->cdr_dstat->ds_first_leadin); +@@ -3126,7 +3126,7 @@ opt1_mdvd(SCSI *usalp, cdr_t *dp) + } + dp->cdr_dstat->ds_cdrflags = oflags; + if (oflags & RF_PRATIP) { +- msf_t msf; ++ wodim_msf_t msf; + lba_to_msf(dp->cdr_dstat->ds_first_leadin, &msf); + printf("New start of lead in: %ld (%02d:%02d/%02d)\n", + (long)dp->cdr_dstat->ds_first_leadin, +@@ -3175,7 +3175,7 @@ Uchar db2df[] = { + }; + + static int +-gen_cue_mmc(track_t *trackp, void *vcuep, BOOL needgap) ++gen_cue_mmc(wodim_track_t *trackp, void *vcuep, BOOL needgap) + { + int tracks = trackp->tracks; + int i; +@@ -3185,7 +3185,7 @@ gen_cue_mmc(track_t *trackp, void *vcuep + int ncue = 0; + int icue = 0; + int pgsize; +- msf_t m; ++ wodim_msf_t m; + int ctl; + int df; + int scms; +@@ -3318,7 +3318,7 @@ fillcue(struct mmc_cue *cp /* The targe + int idx /* Index for this entry */, + int dataform /* Data format for this entry */, + int scms /* Serial copy management */, +- msf_t *mp /* MSF value for this entry */) ++ wodim_msf_t *mp /* MSF value for this entry */) + { + cp->cs_ctladr = ca; /* XXX wie lead in */ + cp->cs_tno = tno; +@@ -3331,7 +3331,7 @@ fillcue(struct mmc_cue *cp /* The targe + } + + static int +-send_cue_mmc(SCSI *usalp, cdr_t *dp, track_t *trackp) ++send_cue_mmc(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + struct mmc_cue *cp; + int ncue; +diff -up cdiopara/wodim/drv_philips.c.wrk cdiopara/wodim/drv_philips.c +--- cdiopara/wodim/drv_philips.c.wrk 2013-06-25 18:34:35.454829395 +0200 ++++ cdiopara/wodim/drv_philips.c 2013-06-25 18:36:03.525761201 +0200 +@@ -67,18 +67,18 @@ static int philips_getdisktype(SCSI *usa + static BOOL capacity_philips(SCSI *usalp, long *lp); + static int first_writable_addr_philips(SCSI *usalp, long *, int, int, int, + int); +-static int next_wr_addr_philips(SCSI *usalp, track_t *trackp, long *ap); ++static int next_wr_addr_philips(SCSI *usalp, wodim_track_t *trackp, long *ap); + static int reserve_track_philips(SCSI *usalp, unsigned long); + static int scsi_cdr_write_philips(SCSI *usalp, caddr_t bp, long sectaddr, + long size, int blocks, BOOL islast); + static int write_track_info_philips(SCSI *usalp, int); + static int write_track_philips(SCSI *usalp, long, int); +-static int open_track_philips(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int open_track_plasmon(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int open_track_oldphilips(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int open_track_yamaha(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int close_track_philips(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int fixation_philips(SCSI *usalp, cdr_t *dp, track_t *trackp); ++static int open_track_philips(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int open_track_plasmon(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int open_track_oldphilips(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int open_track_yamaha(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int close_track_philips(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int fixation_philips(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + + static int philips_attach(SCSI *usalp, cdr_t *); + static int plasmon_attach(SCSI *usalp, cdr_t *); +@@ -159,12 +159,12 @@ cdr_t cdr_philips_cdd521O = { + next_wr_addr_philips, + reserve_track_philips, + scsi_cdr_write_philips, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_oldphilips, + close_track_philips, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset_philips, +@@ -200,12 +200,12 @@ cdr_t cdr_philips_dumb = { + next_wr_addr_philips, + reserve_track_philips, + scsi_cdr_write_philips, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_oldphilips, + close_track_philips, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset_philips, +@@ -241,12 +241,12 @@ cdr_t cdr_philips_cdd521 = { + next_wr_addr_philips, + reserve_track_philips, + scsi_cdr_write_philips, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_philips, + close_track_philips, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset_philips, +@@ -283,12 +283,12 @@ cdr_t cdr_philips_cdd522 = { + next_wr_addr_philips, + reserve_track_philips, + scsi_cdr_write_philips, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_philips, + close_track_philips, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset_philips, +@@ -324,12 +324,12 @@ cdr_t cdr_tyuden_ew50 = { + next_wr_addr_philips, + reserve_track_philips, + scsi_cdr_write_philips, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_philips, + close_track_philips, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset_philips, +@@ -365,12 +365,12 @@ cdr_t cdr_kodak_pcd600 = { + next_wr_addr_philips, + reserve_track_philips, + scsi_cdr_write_philips, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_oldphilips, + close_track_philips, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset_philips, +@@ -406,12 +406,12 @@ cdr_t cdr_plasmon_rf4100 = { + next_wr_addr_philips, + reserve_track_philips, + scsi_cdr_write_philips, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_plasmon, + close_track_philips, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset_philips, +@@ -447,13 +447,13 @@ cdr_t cdr_pioneer_dw_s114x = { + next_wr_addr_philips, + reserve_track_philips, + scsi_cdr_write_philips, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + /* open_track_yamaha,*/ + /*???*/ open_track_oldphilips, + close_track_philips, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset_philips, +@@ -490,12 +490,12 @@ cdr_t cdr_yamaha_cdr100 = { + next_wr_addr_philips, + reserve_track_philips, + scsi_cdr_write_philips, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_yamaha, + close_track_philips, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset_philips, +@@ -532,12 +532,12 @@ cdr_t cdr_ricoh_ro1060 = { + next_wr_addr_philips, + reserve_track_philips, + scsi_cdr_write_philips, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_philips, + close_track_philips, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset_philips, +@@ -574,12 +574,12 @@ cdr_t cdr_ricoh_ro1420 = { + next_wr_addr_philips, + reserve_track_philips, + scsi_cdr_write_philips, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ + no_sendcue, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_philips, + close_track_philips, +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, + cmd_dummy, + cmd_dummy, /* abort */ + read_session_offset_philips, +@@ -835,11 +835,11 @@ philips_getdisktype(SCSI *usalp, cdr_t * + long dummy; + long lilen; + long lolen; +- msf_t msf; ++ wodim_msf_t msf; + int audio = -1; + + usalp->silent++; +- dummy = (*dp->cdr_next_wr_address)(usalp, (track_t *)0, &lilen); ++ dummy = (*dp->cdr_next_wr_address)(usalp, (wodim_track_t *)0, &lilen); + usalp->silent--; + + /* +@@ -972,7 +972,7 @@ first_writable_addr_philips(SCSI *usalp, + } + + static int +-next_wr_addr_philips(SCSI *usalp, track_t *trackp, long *ap) ++next_wr_addr_philips(SCSI *usalp, wodim_track_t *trackp, long *ap) + { + + /* if (first_writable_addr_philips(usalp, ap, 0, 0, 0, 1) < 0)*/ +@@ -1054,7 +1054,7 @@ write_track_philips(SCSI *usalp, + } + + static int +-open_track_philips(SCSI *usalp, cdr_t *dp, track_t *trackp) ++open_track_philips(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + if (select_secsize(usalp, trackp->secsize) < 0) + return (-1); +@@ -1069,7 +1069,7 @@ open_track_philips(SCSI *usalp, cdr_t *d + } + + static int +-open_track_plasmon(SCSI *usalp, cdr_t *dp, track_t *trackp) ++open_track_plasmon(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + if (select_secsize(usalp, trackp->secsize) < 0) + return (-1); +@@ -1081,7 +1081,7 @@ open_track_plasmon(SCSI *usalp, cdr_t *d + } + + static int +-open_track_oldphilips(SCSI *usalp, cdr_t *dp, track_t *trackp) ++open_track_oldphilips(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + if (write_track_philips(usalp, 0, trackp->sectype) < 0) + return (-1); +@@ -1090,7 +1090,7 @@ open_track_oldphilips(SCSI *usalp, cdr_t + } + + static int +-open_track_yamaha(SCSI *usalp, cdr_t *dp, track_t *trackp) ++open_track_yamaha(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + if (select_secsize(usalp, trackp->secsize) < 0) + return (-1); +@@ -1102,12 +1102,12 @@ open_track_yamaha(SCSI *usalp, cdr_t *dp + } + + static int +-close_track_philips(SCSI *usalp, cdr_t *dp, track_t *trackp) ++close_track_philips(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + return (scsi_flush_cache(usalp, FALSE)); + } + +-static int fixation_philips(SCSI *usalp, cdr_t *dp, track_t *trackp) ++static int fixation_philips(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + register struct usal_cmd *scmd = usalp->scmd; + +diff -up cdiopara/wodim/drv_simul.c.wrk cdiopara/wodim/drv_simul.c +--- cdiopara/wodim/drv_simul.c.wrk 2013-06-25 18:37:30.686683498 +0200 ++++ cdiopara/wodim/drv_simul.c 2013-06-25 18:38:09.542094684 +0200 +@@ -66,13 +66,13 @@ static cdr_t *identify_simul(SCSI *usalp + static int init_simul(SCSI *usalp, cdr_t *dp); + static int getdisktype_simul(SCSI *usalp, cdr_t *dp); + static int speed_select_simul(SCSI *usalp, cdr_t *dp, int *speedp); +-static int next_wr_addr_simul(SCSI *usalp, track_t *trackp, long *ap); ++static int next_wr_addr_simul(SCSI *usalp, wodim_track_t *trackp, long *ap); + static int cdr_write_simul(SCSI *usalp, caddr_t bp, long sectaddr, long size, + int blocks, BOOL islast); +-static int open_track_simul(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int close_track_simul(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int open_session_simul(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int fixate_simul(SCSI *usalp, cdr_t *dp, track_t *trackp); ++static int open_track_simul(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int close_track_simul(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int open_session_simul(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int fixate_simul(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + static void tv_sub(struct timeval *tvp1, struct timeval *tvp2); + + static int simul_load(SCSI *usalp, cdr_t *dp) +@@ -108,9 +108,9 @@ cdr_t cdr_cdr_simul = { + next_wr_addr_simul, + (int(*)(SCSI *, Ulong))cmd_ill, /* reserve_track */ + cdr_write_simul, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ +- (int(*)(SCSI *usalp, cdr_t *, track_t *))cmd_dummy, /* send_cue */ +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(SCSI *usalp, cdr_t *, wodim_track_t *))cmd_dummy, /* send_cue */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_simul, + close_track_simul, + open_session_simul, +@@ -149,9 +149,9 @@ cdr_t cdr_dvd_simul = { + next_wr_addr_simul, + (int(*)(SCSI *, Ulong))cmd_ill, /* reserve_track */ + cdr_write_simul, +- (int(*)(track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ +- (int(*)(SCSI *usalp, cdr_t *, track_t *))cmd_dummy, /* send_cue */ +- (int(*)(SCSI *, cdr_t *, track_t *))cmd_dummy, /* leadin */ ++ (int(*)(wodim_track_t *, void *, BOOL))cmd_dummy, /* gen_cue */ ++ (int(*)(SCSI *usalp, cdr_t *, wodim_track_t *))cmd_dummy, /* send_cue */ ++ (int(*)(SCSI *, cdr_t *, wodim_track_t *))cmd_dummy, /* leadin */ + open_track_simul, + close_track_simul, + open_session_simul, +@@ -249,7 +249,7 @@ speed_select_simul(SCSI *usalp, cdr_t *d + } + + static int +-next_wr_addr_simul(SCSI *usalp, track_t *trackp, long *ap) ++next_wr_addr_simul(SCSI *usalp, wodim_track_t *trackp, long *ap) + { + /* + * This will most likely not 100% correct for TAO CDs +@@ -345,14 +345,14 @@ cdr_write_simul(SCSI *usalp, caddr_t bp + } + + static int +-open_track_simul(SCSI *usalp, cdr_t *dp, track_t *trackp) ++open_track_simul(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + sleep_min = 999 * 1000000; + return (0); + } + + static int +-close_track_simul(SCSI *usalp, cdr_t *dp, track_t *trackp) ++close_track_simul(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + if (lverbose) { + printf("Remaining reserve time in drive buffer: %d.%3.3d ms\n", +@@ -368,14 +368,14 @@ close_track_simul(SCSI *usalp, cdr_t *dp + } + + static int +-open_session_simul(SCSI *usalp, cdr_t *dp, track_t *trackp) ++open_session_simul(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + simul_nwa = 0L; + return (0); + } + + static int +-fixate_simul(SCSI *usalp, cdr_t *dp, track_t *trackp) ++fixate_simul(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + return (0); + } +diff -up cdiopara/wodim/drv_sony.c.wrk cdiopara/wodim/drv_sony.c +--- cdiopara/wodim/drv_sony.c.wrk 2013-06-25 18:42:41.039821118 +0200 ++++ cdiopara/wodim/drv_sony.c 2013-06-25 18:43:35.479307474 +0200 +@@ -213,12 +213,12 @@ static int write_continue_sony(SCSI *usa + long size, int blocks, BOOL islast); + static int discontinue_sony(SCSI *usalp); + static int write_track_sony(SCSI *usalp, long track, int sectype); +-static int close_track_sony(SCSI *usalp, cdr_t *dp, track_t *trackp); ++static int close_track_sony(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + static int flush_sony(SCSI *usalp, int track); +-static int finalize_sony(SCSI *usalp, cdr_t *dp, track_t *trackp); ++static int finalize_sony(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + static int recover_sony(SCSI *usalp, cdr_t *dp, int track); + static int set_wr_parameter_sony(SCSI *usalp, caddr_t bp, int size); +-static int next_wr_addr_sony(SCSI *usalp, track_t *trackp, long *ap); ++static int next_wr_addr_sony(SCSI *usalp, wodim_track_t *trackp, long *ap); + static int reserve_track_sony(SCSI *usalp, unsigned long len); + static int init_sony(SCSI *usalp, cdr_t *dp); + static int getdisktype_sony(SCSI *usalp, cdr_t *dp); +@@ -229,14 +229,14 @@ static int next_writable_address_sony(SC + int sectype, int tracktype); + static int new_track_sony(SCSI *usalp, int track, int sectype, + int tracktype); +-static int open_track_sony(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int open_session_sony(SCSI *usalp, cdr_t *dp, track_t *trackp); ++static int open_track_sony(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int open_session_sony(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + static int abort_session_sony(SCSI *usalp, cdr_t *dp); + static int get_page22_sony(SCSI *usalp, char *mode); +-static int gen_cue_sony(track_t *trackp, void *vcuep, BOOL needgap); +-static void fillcue(struct sony_cue *cp, int ca, int tno, int idx, int dataform, int scms, msf_t *mp); +-static int send_cue_sony(SCSI *usalp, cdr_t *dp, track_t *trackp); +-static int write_leadin_sony(SCSI *usalp, cdr_t *dp, track_t *trackp); ++static int gen_cue_sony(wodim_track_t *trackp, void *vcuep, BOOL needgap); ++static void fillcue(struct sony_cue *cp, int ca, int tno, int idx, int dataform, int scms, wodim_msf_t *mp); ++static int send_cue_sony(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++static int write_leadin_sony(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + static int sony_attach(SCSI *usalp, cdr_t *dp); + #ifdef SONY_DEBUG + static void print_sony_mp22(struct sony_924_mode_page_22 *xp, int len); +@@ -383,7 +383,7 @@ write_track_sony(SCSI *usalp, + + /* XXX NOCH NICHT FERTIG */ + static int +-close_track_sony(SCSI *usalp, cdr_t *dp, track_t *trackp) ++close_track_sony(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + register struct usal_cmd *scmd = usalp->scmd; + int track = 0; +@@ -420,7 +420,7 @@ close_track_sony(SCSI *usalp, cdr_t *dp, + } + + static int +-finalize_sony(SCSI *usalp, cdr_t *dp, track_t *trackp) ++finalize_sony(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + register struct usal_cmd *scmd = usalp->scmd; + int dummy = track_base(trackp)->tracktype & TOCF_DUMMY; +@@ -517,7 +517,7 @@ set_wr_parameter_sony(SCSI *usalp, caddr + } + + static int +-next_wr_addr_sony(SCSI *usalp, track_t *trackp, long *ap) ++next_wr_addr_sony(SCSI *usalp, wodim_track_t *trackp, long *ap) + { + if (next_writable_address_sony(usalp, ap, 0, 0, 0) < 0) + return (-1); +@@ -559,7 +559,7 @@ getdisktype_sony(SCSI *usalp, cdr_t *dp) + dstat_t *dsp = dp->cdr_dstat; + long dummy; + long lst; +- msf_t msf; ++ wodim_msf_t msf; + + char mode[256]; + struct scsi_mode_page_header *mp; +@@ -626,7 +626,7 @@ getdisktype_sony(SCSI *usalp, cdr_t *dp) + static void + di_to_dstat_sony(struct sony_924_mode_page_22 *dip, dstat_t *dsp) + { +- msf_t msf; ++ wodim_msf_t msf; + + dsp->ds_diskid = a_to_u_4_byte(dip->disk_id_code); + #ifdef PROTOTYPES +@@ -841,7 +841,7 @@ new_track_sony(SCSI *usalp, int track, i + } + + static int +-open_track_sony(SCSI *usalp, cdr_t *dp, track_t *trackp) ++open_track_sony(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + if (!is_tao(trackp) && !is_packet(trackp)) { + if (trackp->pregapsize > 0 && (trackp->flags & TI_PREGAP) == 0) { +@@ -874,7 +874,7 @@ open_track_sony(SCSI *usalp, cdr_t *dp, + } + + static int +-open_session_sony(SCSI *usalp, cdr_t *dp, track_t *trackp) ++open_session_sony(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + struct scsi_mode_page_header *mp; + char mode[256]; +@@ -994,7 +994,7 @@ static Uchar db2df[] = { + }; + + static int +-gen_cue_sony(track_t *trackp, void *vcuep, BOOL needgap) ++gen_cue_sony(wodim_track_t *trackp, void *vcuep, BOOL needgap) + { + int tracks = trackp->tracks; + int i; +@@ -1004,7 +1004,7 @@ gen_cue_sony(track_t *trackp, void *vcue + int ncue = 0; + int icue = 0; + int pgsize; +- msf_t m; ++ wodim_msf_t m; + int ctl; + int df; + int scms; +@@ -1110,7 +1110,7 @@ fillcue(struct sony_cue *cp /* The t + int idx /* Index for this entry */, + int dataform /* Data format for this entry */, + int scms /* Serial copy management */, +- msf_t *mp /* MSF value for this entry */) ++ wodim_msf_t *mp /* MSF value for this entry */) + { + cp->cs_ctladr = ca; + if (tno <= 99) +@@ -1126,7 +1126,7 @@ fillcue(struct sony_cue *cp /* The t + } + + static int +-send_cue_sony(SCSI *usalp, cdr_t *dp, track_t *trackp) ++send_cue_sony(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + struct sony_cue *cp; + int ncue; +@@ -1169,7 +1169,7 @@ send_cue_sony(SCSI *usalp, cdr_t *dp, tr + } + + static int +-write_leadin_sony(SCSI *usalp, cdr_t *dp, track_t *trackp) ++write_leadin_sony(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + Uint i; + long startsec = 0L; +diff -up cdiopara/wodim/fifo.c.wrk cdiopara/wodim/fifo.c +--- cdiopara/wodim/fifo.c.wrk 2013-06-25 18:47:09.024350983 +0200 ++++ cdiopara/wodim/fifo.c 2013-06-25 18:47:35.540614992 +0200 +@@ -194,15 +194,15 @@ static char *mkbeosshm(int size); + static void beosshm_child(void); + #endif + +-BOOL init_faio(track_t *trackp, int); ++BOOL init_faio(wodim_track_t *trackp, int); + BOOL await_faio(void); + void kill_faio(void); + int wait_faio(void); +-static void faio_reader(track_t *trackp); +-static void faio_read_track(track_t *trackp); ++static void faio_reader(wodim_track_t *trackp); ++static void faio_read_track(wodim_track_t *trackp); + static void faio_wait_on_buffer(faio_t *f, fowner_t s, unsigned long delay, + unsigned long max_wait); +-static int faio_read_segment(int fd, faio_t *f, track_t *track, long secno, ++static int faio_read_segment(int fd, faio_t *f, wodim_track_t *track, long secno, + int len); + static faio_t *faio_ref(int n); + int faio_read_buf(int f, char *bp, int size); +@@ -425,7 +425,7 @@ static BOOL faio_didwait; + + + BOOL +-init_faio(track_t *trackp, int bufsize) ++init_faio(wodim_track_t *trackp, int bufsize) + { + int n; + faio_t *f; +@@ -582,7 +582,7 @@ wait_faio() + } + + static void +-faio_reader(track_t *trackp) ++faio_reader(wodim_track_t *trackp) + { + /* This function should not return, but _exit. */ + Uint trackno; +@@ -623,7 +623,7 @@ faio_ref(int n) + + + static void +-faio_read_track(track_t *trackp) ++faio_read_track(wodim_track_t *trackp) + { + int fd = -1; + int bytespt = trackp->secsize * trackp->secspt; +@@ -704,7 +704,7 @@ faio_wait_on_buffer(faio_t *f, fowner_t + } + + static int +-faio_read_segment(int fd, faio_t *f, track_t *trackp, long secno, int len) ++faio_read_segment(int fd, faio_t *f, wodim_track_t *trackp, long secno, int len) + { + int l; + +@@ -821,7 +821,7 @@ fifo_percent(BOOL addone) + #include "wodim.h" + + void init_fifo(long); +-BOOL init_faio(track_t *track, int); ++BOOL init_faio(wodim_track_t *track, int); + BOOL await_faio(void); + void kill_faio(void); + int wait_faio(void); +@@ -836,7 +836,7 @@ void init_fifo(long fs) + errmsgno(EX_BAD, "Fifo not supported.\n"); + } + +-BOOL init_faio(track_t *track, ++BOOL init_faio(wodim_track_t *track, + int bufsize /* The size of a single transfer buffer */) + { + return (FALSE); +diff -up cdiopara/wodim/movesect.c.wrk cdiopara/wodim/movesect.c +--- cdiopara/wodim/movesect.c.wrk 2013-06-25 15:42:48.986166461 +0200 ++++ cdiopara/wodim/movesect.c 2013-06-25 15:43:07.045269496 +0200 +@@ -37,7 +37,7 @@ + #include "wodim.h" + #include "movesect.h" + +-void scatter_secs(track_t *trackp, char *bp, int nsecs); ++void scatter_secs(wodim_track_t *trackp, char *bp, int nsecs); + + /* + * Scatter input sector size records over buffer to make them +@@ -69,7 +69,7 @@ void scatter_secs(track_t *trackp, char + * Sector_0 must never be moved. + */ + void +-scatter_secs(track_t *trackp, char *bp, int nsecs) ++scatter_secs(wodim_track_t *trackp, char *bp, int nsecs) + { + char *from; + char *to; +diff -up cdiopara/wodim/movesect.h.wrk cdiopara/wodim/movesect.h +--- cdiopara/wodim/movesect.h.wrk 2013-06-25 15:42:19.921000633 +0200 ++++ cdiopara/wodim/movesect.h 2013-06-25 15:42:35.156087555 +0200 +@@ -40,6 +40,6 @@ + #define fill2048(p, val) fillbytes(p, 2048, val) + #define fill96(p, val) fillbytes(p, 96, val) + +-extern void scatter_secs(track_t *trackp, char *bp, int nsecs); ++extern void scatter_secs(wodim_track_t *trackp, char *bp, int nsecs); + + #endif +diff -up cdiopara/wodim/sector.c.wrk cdiopara/wodim/sector.c +--- cdiopara/wodim/sector.c.wrk 2013-06-25 18:53:58.999549774 +0200 ++++ cdiopara/wodim/sector.c 2013-06-25 18:54:25.509826416 +0200 +@@ -55,8 +55,8 @@ + #endif + + int encspeed(BOOL be_verbose); +-void encsectors(track_t *trackp, Uchar *bp, int address, int nsecs); +-void scrsectors(track_t *trackp, Uchar *bp, int address, int nsecs); ++void encsectors(wodim_track_t *trackp, Uchar *bp, int address, int nsecs); ++void scrsectors(wodim_track_t *trackp, Uchar *bp, int address, int nsecs); + void encodesector(Uchar *sp, int sectype, int address); + void fillsector(Uchar *sp, int sectype, int address); + +@@ -105,7 +105,7 @@ void fillsector(Uchar *sp, int sectype, + int + encspeed(BOOL be_verbose) + { +- track_t t[1]; ++ wodim_track_t t[1]; + Uchar sect[2352]; + int i; + struct timeval tv; +@@ -141,7 +141,7 @@ encspeed(BOOL be_verbose) + * Encode sectors according to trackp->sectype + */ + void +-encsectors(track_t *trackp, Uchar *bp, int address, int nsecs) ++encsectors(wodim_track_t *trackp, Uchar *bp, int address, int nsecs) + { + int sectype = trackp->sectype; + +@@ -169,7 +169,7 @@ encsectors(track_t *trackp, Uchar *bp, i + * Scramble data sectors without coding (needed for clone writing) + */ + void +-scrsectors(track_t *trackp, Uchar *bp, int address, int nsecs) ++scrsectors(wodim_track_t *trackp, Uchar *bp, int address, int nsecs) + { + /* + * In Clone write mode, we cannot expect that the sector type +@@ -187,7 +187,7 @@ scrsectors(track_t *trackp, Uchar *bp, i + } + #else + void +-scrsectors(track_t *trackp, Uchar *bp, int address, int nsecs) ++scrsectors(wodim_track_t *trackp, Uchar *bp, int address, int nsecs) + { + comerrno(EX_BAD, "Cannot write in clone RAW mode.\n"); + } +diff -up cdiopara/wodim/subchan.c.wrk cdiopara/wodim/subchan.c +--- cdiopara/wodim/subchan.c.wrk 2013-06-27 15:23:49.864130939 +0200 ++++ cdiopara/wodim/subchan.c 2013-06-27 15:24:59.699507721 +0200 +@@ -43,14 +43,14 @@ + #include "wodim.h" + #include "crc16.h" + +-int do_leadin(track_t *trackp); +-int write_leadin(SCSI *usalp, cdr_t *dp, track_t *trackp, int leadinstart); +-int write_leadout(SCSI *usalp, cdr_t *dp, track_t *trackp); +-void fillsubch(track_t *trackp, Uchar *sp, int secno, int nsecs); +-void filltpoint(Uchar *sub, int ctrl_adr, int point, msf_t *mp); +-void fillttime(Uchar *sub, msf_t *mp); +-static void filldsubq(Uchar *sub, int ca, int t, int i, msf_t *mrp, +- msf_t *mp); ++int do_leadin(wodim_track_t *trackp); ++int write_leadin(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp, int leadinstart); ++int write_leadout(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); ++void fillsubch(wodim_track_t *trackp, Uchar *sp, int secno, int nsecs); ++void filltpoint(Uchar *sub, int ctrl_adr, int point, wodim_msf_t *mp); ++void fillttime(Uchar *sub, wodim_msf_t *mp); ++static void filldsubq(Uchar *sub, int ca, int t, int i, wodim_msf_t *mrp, ++ wodim_msf_t *mp); + static void fillmcn(Uchar *sub, Uchar *mcn); + static void fillisrc(Uchar *sub, Uchar *isrc); + static int ascii2q(int c); +@@ -58,7 +58,7 @@ static void qpto16(Uchar *sub, Uchar *su + void qpto96(Uchar *sub, Uchar *subq, int dop); + void addrw(Uchar *sub, Uchar *subrwptr); + void qwto16(Uchar *subq, Uchar *subptr); +-void subrecodesecs(track_t *trackp, Uchar *bp, int address, int nsecs); ++void subrecodesecs(wodim_track_t *trackp, Uchar *bp, int address, int nsecs); + static void subinterleave(Uchar *sub); + + /*#define TEST_CRC*/ +@@ -93,10 +93,10 @@ extern int xdebug; + * Prepare master sunchannel data for RAW TOC. + */ + int +-do_leadin(track_t *trackp) ++do_leadin(wodim_track_t *trackp) + { + int tracks = trackp->tracks; +- msf_t m; ++ wodim_msf_t m; + int ctrl; + int i; + int toctype = trackp[0].tracktype & TOC_MASK; +@@ -183,9 +183,9 @@ do_leadin(track_t *trackp) + * subchannel frames for the lead-in. + */ + int +-write_leadin(SCSI *usalp, cdr_t *dp, track_t *trackp, int leadinstart) ++write_leadin(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp, int leadinstart) + { +- msf_t m; ++ wodim_msf_t m; + int i; + Uint j; + Uchar *bp = usalp->bufptr; +@@ -198,7 +198,7 @@ write_leadin(SCSI *usalp, cdr_t *dp, tra + int startsec; + long bytes = 0L; + int textoff = 0; +- msf_t msf; ++ wodim_msf_t msf; + + secsize = trackp[0].secsize; + secspt = trackp[0].secspt; +@@ -292,11 +292,11 @@ write_leadin(SCSI *usalp, cdr_t *dp, tra + * Write Track 0xAA (lead-out) + */ + int +-write_leadout(SCSI *usalp, cdr_t *dp, track_t *trackp) ++write_leadout(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + int tracks = trackp->tracks; +- msf_t m; +- msf_t mr; ++ wodim_msf_t m; ++ wodim_msf_t mr; + int ctrl; + int i; + int j; +@@ -313,7 +313,7 @@ write_leadout(SCSI *usalp, cdr_t *dp, tr + int leadoutstart; + Uchar sub[12]; + BOOL p; +- msf_t msf; ++ wodim_msf_t msf; + + fillbytes(sub, 12, '\0'); + +@@ -397,13 +397,13 @@ write_leadout(SCSI *usalp, cdr_t *dp, tr + * the data part of a CD (bewteen lead-in and lead-out). + */ + void +-fillsubch(track_t *trackp, ++fillsubch(wodim_track_t *trackp, + Uchar *sp /* Sector data pointer */, + int secno /* Starting sector # */, + int nsecs /* # of sectors to fill */) + { +- msf_t m; +- msf_t mr; ++ wodim_msf_t m; ++ wodim_msf_t mr; + int ctrl; + int i; + int rsecno; +@@ -563,7 +563,7 @@ static Uchar lastindex = 255; + * Ax Werte einf�llen. + */ + void +-filltpoint(Uchar *sub, int ctrl_adr, int point, msf_t *mp) ++filltpoint(Uchar *sub, int ctrl_adr, int point, wodim_msf_t *mp) + { + sub[0] = ctrl_adr; + sub[2] = point; +@@ -577,7 +577,7 @@ filltpoint(Uchar *sub, int ctrl_adr, int + * Aktuelle Zeit in TOC Sub-Q einf�llen. + */ + void +-fillttime(Uchar *sub, msf_t *mp) ++fillttime(Uchar *sub, wodim_msf_t *mp) + { + sub[3] = to_bcd(mp->msf_min); + sub[4] = to_bcd(mp->msf_sec); +@@ -588,7 +588,7 @@ fillttime(Uchar *sub, msf_t *mp) + * Q-Sub in Datenbereich f�llen. + */ + static void +-filldsubq(Uchar *sub, int ca, int t, int i, msf_t *mrp, msf_t *mp) ++filldsubq(Uchar *sub, int ca, int t, int i, wodim_msf_t *mrp, wodim_msf_t *mp) + { + sub[0] = ca; + sub[1] = to_bcd(t); +@@ -856,7 +856,7 @@ qwto16(Uchar *subq, Uchar *subptr) + * Recode subchannels of sectors from 2352 + 96 bytes to 2352 + 16 bytes + */ + void +-subrecodesecs(track_t *trackp, Uchar *bp, int address, int nsecs) ++subrecodesecs(wodim_track_t *trackp, Uchar *bp, int address, int nsecs) + { + bp += 2352; + while (--nsecs >= 0) { +@@ -867,7 +867,7 @@ subrecodesecs(track_t *trackp, Uchar *bp + + #ifndef HAVE_LIB_EDC_ECC + void +-encsectors(track_t *trackp, Uchar *bp, int address, int nsecs) ++encsectors(wodim_track_t *trackp, Uchar *bp, int address, int nsecs) + { + int sectype = trackp->sectype; + +@@ -878,7 +878,7 @@ encsectors(track_t *trackp, Uchar *bp, i + } + + void +-scrsectors(track_t *trackp, Uchar *bp, int address, int nsecs) ++scrsectors(wodim_track_t *trackp, Uchar *bp, int address, int nsecs) + { + comerrno(EX_BAD, "Cannot write in clone RAW mode.\n"); + } +diff -up cdiopara/wodim/wm_packet.c.wrk cdiopara/wodim/wm_packet.c +--- cdiopara/wodim/wm_packet.c.wrk 2013-06-27 15:26:58.973141891 +0200 ++++ cdiopara/wodim/wm_packet.c 2013-06-27 15:27:22.066263842 +0200 +@@ -51,10 +51,10 @@ extern int lverbose; + + extern char *buf; /* The transfer buffer */ + +-int write_packet_data(SCSI *usalp, cdr_t *dp, track_t *trackp); ++int write_packet_data(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + + int +-write_packet_data(SCSI *usalp, cdr_t *dp, track_t *trackp) ++write_packet_data(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + int track = trackp->trackno; + int f = -1; +diff -up cdiopara/wodim/wm_session.c.wrk cdiopara/wodim/wm_session.c +--- cdiopara/wodim/wm_session.c.wrk 2013-06-27 15:29:40.932998275 +0200 ++++ cdiopara/wodim/wm_session.c 2013-06-27 15:30:03.907119952 +0200 +@@ -48,4 +48,4 @@ extern int lverbose; + + extern char *buf; /* The transfer buffer */ + +-int write_session_data(SCSI *usalp, cdr_t *dp, track_t *trackp); ++int write_session_data(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); +diff -up cdiopara/wodim/wm_track.c.wrk cdiopara/wodim/wm_track.c +--- cdiopara/wodim/wm_track.c.wrk 2013-06-27 15:28:45.701705951 +0200 ++++ cdiopara/wodim/wm_track.c 2013-06-27 15:29:29.673938661 +0200 +@@ -47,4 +47,4 @@ extern int lverbose; + + extern char *buf; /* The transfer buffer */ + +-int write_track_data(cdr_t *dp, int track, track_t *trackp); ++int write_track_data(cdr_t *dp, int track, wodim_track_t *trackp); +diff -up cdiopara/wodim/wodim.c.wrk cdiopara/wodim/wodim.c +--- cdiopara/wodim/wodim.c.wrk 2013-06-25 16:38:32.153811969 +0200 ++++ cdiopara/wodim/wodim.c 2013-06-25 16:30:08.636892373 +0200 +@@ -205,31 +205,31 @@ static void intfifo(int sig); + static void exscsi(int excode, void *arg); + static void excdr(int excode, void *arg); + int read_buf(int f, char *bp, int size); +-int fill_buf(int f, track_t *trackp, long secno, char *bp, int size); +-int get_buf(int f, track_t *trackp, long secno, char **bpp, int size); ++int fill_buf(int f, wodim_track_t *trackp, long secno, char *bp, int size); ++int get_buf(int f, wodim_track_t *trackp, long secno, char **bpp, int size); + int write_secs(SCSI *usalp, cdr_t *dp, char *bp, long startsec, int bytespt, + int secspt, BOOL islast); +-static int write_track_data(SCSI *usalp, cdr_t *, track_t *); +-int pad_track(SCSI *usalp, cdr_t *dp, track_t *trackp, long startsec, ++static int write_track_data(SCSI *usalp, cdr_t *, wodim_track_t *); ++int pad_track(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp, long startsec, + Llong amt, BOOL dolast, Llong *bytesp); +-int write_buf(SCSI *usalp, cdr_t *dp, track_t *trackp, char *bp, ++int write_buf(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp, char *bp, + long startsec, Llong amt, int secsize, BOOL dolast, + Llong *bytesp); +-static void printdata(int, track_t *); +-static void printaudio(int, track_t *); +-static void checkfile(int, track_t *); +-static int checkfiles(int, track_t *); +-static void setleadinout(int, track_t *); +-static void setpregaps(int, track_t *); +-static long checktsize(int, track_t *); +-static void opentracks(track_t *); +-static void checksize(track_t *); ++static void printdata(int, wodim_track_t *); ++static void printaudio(int, wodim_track_t *); ++static void checkfile(int, wodim_track_t *); ++static int checkfiles(int, wodim_track_t *); ++static void setleadinout(int, wodim_track_t *); ++static void setpregaps(int, wodim_track_t *); ++static long checktsize(int, wodim_track_t *); ++static void opentracks(wodim_track_t *); ++static void checksize(wodim_track_t *); + static BOOL checkdsize(SCSI *usalp, cdr_t *dp, long tsize, int flags); + static void raise_fdlim(void); + static void raise_memlock(void); +-static int gargs(int, char **, int *, track_t *, char **, int *, cdr_t **, ++static int gargs(int, char **, int *, wodim_track_t *, char **, int *, cdr_t **, + int *, long *, int *, int *); +-static void set_trsizes(cdr_t *, int, track_t *); ++static void set_trsizes(cdr_t *, int, wodim_track_t *); + void load_media(SCSI *usalp, cdr_t *, BOOL); + void unload_media(SCSI *usalp, cdr_t *, int); + void reload_media(SCSI *usalp, cdr_t *); +@@ -287,7 +287,7 @@ int main(int argc, char *argv[]) + int tracks = 0; + int trackno; + long tsize; +- track_t track[MAX_TRACK+2]; /* Max tracks + track 0 + track AA */ ++ wodim_track_t track[MAX_TRACK+2]; /* Max tracks + track 0 + track AA */ + cdr_t *dp = (cdr_t *)0; + long startsec = 0L; + int errs = 0; +@@ -1860,7 +1860,7 @@ read_buf(int f, char *bp, int size) + } + + int +-fill_buf(int f, track_t *trackp, long secno, char *bp, int size) ++fill_buf(int f, wodim_track_t *trackp, long secno, char *bp, int size) + { + int amount = 0; + int nsecs; +@@ -1936,7 +1936,7 @@ fill_buf(int f, track_t *trackp, long se + } + + int +-get_buf(int f, track_t *trackp, long secno, char **bpp, int size) ++get_buf(int f, wodim_track_t *trackp, long secno, char **bpp, int size) + { + if (fs > 0) { + /* return (faio_read_buf(f, *bpp, size));*/ +@@ -1987,7 +1987,7 @@ again: + } + + static int +-write_track_data(SCSI *usalp, cdr_t *dp, track_t *trackp) ++write_track_data(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp) + { + int track = trackp->trackno; + int f = -1; +@@ -2270,7 +2270,7 @@ int oper = -1; + } + + int +-pad_track(SCSI *usalp, cdr_t *dp, track_t *trackp, long startsec, Llong amt, ++pad_track(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp, long startsec, Llong amt, + BOOL dolast, Llong *bytesp) + { + int track = trackp->trackno; +@@ -2404,7 +2404,7 @@ int oper = -1; + + #ifdef USE_WRITE_BUF + int +-write_buf(SCSI *usalp, cdr_t *dp, track_t *trackp, char *bp, long startsec, ++write_buf(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp, char *bp, long startsec, + Llong amt, int secsize, BOOL dolast, Llong *bytesp) + { + int track = trackp->trackno; +@@ -2467,7 +2467,7 @@ write_buf(SCSI *usalp, cdr_t *dp, track_ + #endif /* USE_WRITE_BUF */ + + static void +-printdata(int track, track_t *trackp) ++printdata(int track, wodim_track_t *trackp) + { + if (trackp->itracksize >= 0) { + printf("Track %02d: data %4lld MB ", +@@ -2494,7 +2494,7 @@ printdata(int track, track_t *trackp) + } + + static void +-printaudio(int track, track_t *trackp) ++printaudio(int track, wodim_track_t *trackp) + { + if (trackp->itracksize >= 0) { + printf("Track %02d: audio %4lld MB (%02d:%02d.%02d) %spreemp%s%s", +@@ -2542,7 +2542,7 @@ printaudio(int track, track_t *trackp) + } + + static void +-checkfile(int track, track_t *trackp) ++checkfile(int track, wodim_track_t *trackp) + { + if (trackp->itracksize > 0 && + is_audio(trackp) && +@@ -2571,7 +2571,7 @@ checkfile(int track, track_t *trackp) + } + + static int +-checkfiles(int tracks, track_t *trackp) ++checkfiles(int tracks, wodim_track_t *trackp) + { + int i; + int isaudio = 1; +@@ -2596,7 +2596,7 @@ checkfiles(int tracks, track_t *trackp) + } + + static void +-setleadinout(int tracks, track_t *trackp) ++setleadinout(int tracks, wodim_track_t *trackp) + { + /* + * Set some values for track 0 (the lead-in) +@@ -2631,12 +2631,12 @@ setleadinout(int tracks, track_t *trackp + } + + static void +-setpregaps(int tracks, track_t *trackp) ++setpregaps(int tracks, wodim_track_t *trackp) + { + int i; + int sectype; + long pregapsize; +- track_t *tp; ++ wodim_track_t *tp; + + sectype = trackp[1].sectype; + sectype &= ST_MASK; +@@ -2674,13 +2674,13 @@ setpregaps(int tracks, track_t *trackp) + * Check total size of the medium + */ + static long +-checktsize(int tracks, track_t *trackp) ++checktsize(int tracks, wodim_track_t *trackp) + { + int i; + Llong curr; + Llong total = -150; /* CD track #1 pregap compensation */ + Ullong btotal; +- track_t *tp; ++ wodim_track_t *tp; + + if (trackp->flags & TI_DVD) + total = 0; +@@ -2751,9 +2751,9 @@ checktsize(int tracks, track_t *trackp) + } + + static void +-opentracks(track_t *trackp) ++opentracks(wodim_track_t *trackp) + { +- track_t *tp; ++ wodim_track_t *tp; + int i; + int tracks = trackp[0].tracks; + +@@ -2825,7 +2825,7 @@ opentracks(track_t *trackp) + } + + static void +-checksize(track_t *trackp) ++checksize(wodim_track_t *trackp) + { + struct stat st; + Llong lsize; +@@ -2890,7 +2890,7 @@ checkdsize(SCSI *usalp, cdr_t *dp, long + int profile; + + usalp->silent++; +- (*dp->cdr_next_wr_address)(usalp, (track_t *)0, &startsec); ++ (*dp->cdr_next_wr_address)(usalp, (wodim_track_t *)0, &startsec); + usalp->silent--; + + /* +@@ -3098,7 +3098,7 @@ char *opts = + #define M_RAW 4 /* Raw mode */ + #define M_PACKET 8 /* Packed mode */ + static int +-gargs(int ac, char **av, int *tracksp, track_t *trackp, char **devp, ++gargs(int ac, char **av, int *tracksp, wodim_track_t *trackp, char **devp, + int *timeoutp, cdr_t **dpp, int *speedp, long *flagsp, int *blankp, + int *formatp) + { +@@ -3809,7 +3809,7 @@ gargs(int ac, char **av, int *tracksp, t + } + + static void +-set_trsizes(cdr_t *dp, int tracks, track_t *trackp) ++set_trsizes(cdr_t *dp, int tracks, wodim_track_t *trackp) + { + int i; + int secsize; +@@ -4110,7 +4110,7 @@ print_msinfo(SCSI *usalp, cdr_t *dp) + if (lverbose) + printf("session offset: %ld\n", off); + +- if (dp->cdr_next_wr_address(usalp, (track_t *)0, &fa) < 0) { ++ if (dp->cdr_next_wr_address(usalp, (wodim_track_t *)0, &fa) < 0) { + errmsgno(EX_BAD, "Cannot read first writable address\n"); + return; + } +diff -up cdiopara/wodim/wodim.h.wrk cdiopara/wodim/wodim.h +--- cdiopara/wodim/wodim.h.wrk 2013-06-25 15:07:16.550727303 +0200 ++++ cdiopara/wodim/wodim.h 2013-06-25 16:57:07.110050011 +0200 +@@ -186,7 +186,9 @@ typedef struct track { + long *tindex; /* Track index descriptor */ + char *isrc; /* ISRC code for this track / disk MCN */ + void *text; /* Opaque CD-Text data (txtptr_t *) */ +-} track_t; ++} wodim_track_t; ++ ++#define track_t taka_neexistuje + + #define track_base(tp) ((tp) - (tp)->track) + +@@ -515,8 +517,9 @@ typedef struct msf { + char msf_min; + char msf_sec; + char msf_frame; +-} msf_t; ++} wodim_msf_t; + ++#define msf_t nahradzuj_msf + /* + * Definitions for read TOC/PMA/ATIP command + */ +@@ -673,7 +676,7 @@ struct disk_status { + * cdr_open_session() + * cdr_fixate() + * +- * Called with (track_t *) 0 or pointer to current track: ++ * Called with (wodim_track_t *) 0 or pointer to current track: + * cdr_next_wr_address() + * + * Called with pointer to current track: +@@ -751,23 +754,23 @@ struct cdr_cmd { + /* set sector size */ + int (*cdr_set_secsize)(SCSI *usalp, int secsize); + /* get next writable addr. */ +- int (*cdr_next_wr_address)(SCSI *usalp, track_t *trackp, long *ap); ++ int (*cdr_next_wr_address)(SCSI *usalp, wodim_track_t *trackp, long *ap); + /* reserve track for future use */ + int (*cdr_reserve_track)(SCSI *usalp, Ulong len); + int (*cdr_write_trackdata)(SCSI *usalp, caddr_t buf, long daddr, long bytecnt, + int seccnt, BOOL islast); + /* generate cue sheet */ +- int (*cdr_gen_cue)(track_t *trackp, void *cuep, BOOL needgap); ++ int (*cdr_gen_cue)(wodim_track_t *trackp, void *cuep, BOOL needgap); + /* send cue sheet */ +- int (*cdr_send_cue)(SCSI *usalp, cdr_t *, track_t *trackp); ++ int (*cdr_send_cue)(SCSI *usalp, cdr_t *, wodim_track_t *trackp); + /* write leadin */ +- int (*cdr_write_leadin)(SCSI *usalp, cdr_t *, track_t *trackp); ++ int (*cdr_write_leadin)(SCSI *usalp, cdr_t *, wodim_track_t *trackp); + /* open new track */ +- int (*cdr_open_track)(SCSI *usalp, cdr_t *, track_t *trackp); ++ int (*cdr_open_track)(SCSI *usalp, cdr_t *, wodim_track_t *trackp); + /* close written track */ +- int (*cdr_close_track)(SCSI *usalp, cdr_t *, track_t *trackp); ++ int (*cdr_close_track)(SCSI *usalp, cdr_t *, wodim_track_t *trackp); + /* open new session */ +- int (*cdr_open_session)(SCSI *usalp, cdr_t *, track_t *trackp); ++ int (*cdr_open_session)(SCSI *usalp, cdr_t *, wodim_track_t *trackp); + /* really needed ??? */ + int (*cdr_close_session)(SCSI *usalp, cdr_t *); + /* abort current write */ +@@ -775,7 +778,7 @@ struct cdr_cmd { + /* read session offset*/ + int (*cdr_session_offset)(SCSI *usalp, long *soff); + /* write toc on disk */ +- int (*cdr_fixate)(SCSI *usalp, cdr_t *, track_t *trackp); ++ int (*cdr_fixate)(SCSI *usalp, cdr_t *, wodim_track_t *trackp); + /* final statistics printing*/ + int (*cdr_stats)(SCSI *usalp, cdr_t *); + /* blank something */ +@@ -849,12 +852,12 @@ struct cdr_cmd { + * cdrecord.c + */ + extern int read_buf(int f, char *bp, int size); +-extern int fill_buf(int f, track_t *trackp, long secno, char *bp, int size); +-extern int get_buf(int f, track_t *trackp, long secno, char **bpp, int size); ++extern int fill_buf(int f, wodim_track_t *trackp, long secno, char *bp, int size); ++extern int get_buf(int f, wodim_track_t *trackp, long secno, char **bpp, int size); + #ifdef _SCG_SCSITRANSP_H + extern int write_secs(SCSI *usalp, cdr_t *dp, char *bp, long startsec, + int bytespt, int secspt, BOOL islast); +-extern int pad_track(SCSI *usalp, cdr_t *dp, track_t *trackp, ++extern int pad_track(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp, + long startsec, Llong amt, + BOOL dolast, Llong *bytesp); + extern void load_media(SCSI *usalp, cdr_t *, BOOL); +@@ -870,15 +873,15 @@ extern int getnum(char *arg, long *valp) + extern int from_bcd(int b); + extern int to_bcd(int i); + extern long msf_to_lba(int m, int s, int f, BOOL force_positive); +-extern BOOL lba_to_msf(long lba, msf_t *mp); +-extern void sec_to_msf(long sec, msf_t *mp); ++extern BOOL lba_to_msf(long lba, wodim_msf_t *mp); ++extern void sec_to_msf(long sec, wodim_msf_t *mp); + extern void print_min_atip(long li, long lo); + + /* + * fifo.c + */ + extern void init_fifo(long); +-extern BOOL init_faio(track_t *track, int); ++extern BOOL init_faio(wodim_track_t *track, int); + extern BOOL await_faio(void); + extern void kill_faio(void); + extern int wait_faio(void); +@@ -891,21 +894,21 @@ extern int fifo_percent(BOOL addone); + * wm_session.c + */ + #ifdef _SCG_SCSITRANSP_H +-extern int write_session_data(SCSI *usalp, cdr_t *dp, track_t *trackp); ++extern int write_session_data(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + #endif + + /* + * wm_track.c + */ + #ifdef _SCG_SCSITRANSP_H +-/*extern int write_track_data __PR((SCSI *usalp, cdr_t *dp, track_t *trackp));*/ ++/*extern int write_track_data __PR((SCSI *usalp, cdr_t *dp, wodim_track_t *trackp));*/ + #endif + + /* + * wm_packet.c + */ + #ifdef _SCG_SCSITRANSP_H +-extern int write_packet_data(SCSI *usalp, cdr_t *dp, track_t *trackp); ++extern int write_packet_data(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + #endif + + /* +@@ -1103,7 +1106,7 @@ int format_dummy(SCSI *usalp, cdr_t *, i + extern int drive_getdisktype(SCSI *usalp, cdr_t *dp); + extern int cmd_ill(SCSI *usalp); + extern int cmd_dummy(SCSI *usalp, cdr_t *); +-extern int no_sendcue(SCSI *usalp, cdr_t *, track_t *trackp); ++extern int no_sendcue(SCSI *usalp, cdr_t *, wodim_track_t *trackp); + extern int buf_dummy(SCSI *usalp, long *sp, long *fp); + #endif + extern BOOL set_cdrcmds(char *name, cdr_t **dpp); +@@ -1137,68 +1140,68 @@ extern off_t wavsize(int f); + /* + * auinfo.c + */ +-extern BOOL auinfosize(char *name, track_t *trackp); +-extern void auinfo(char *name, int track, track_t *trackp); ++extern BOOL auinfosize(char *name, wodim_track_t *trackp); ++extern void auinfo(char *name, int track, wodim_track_t *trackp); + #ifdef CDTEXT_H +-extern textptr_t *gettextptr(int track, track_t *trackp); ++extern textptr_t *gettextptr(int track, wodim_track_t *trackp); + #endif +-extern void setmcn(char *mcn, track_t *trackp); +-extern void setisrc(char *isrc, track_t *trackp); +-extern void setindex(char *tindex, track_t *trackp); ++extern void setmcn(char *mcn, wodim_track_t *trackp); ++extern void setisrc(char *isrc, wodim_track_t *trackp); ++extern void setindex(char *tindex, wodim_track_t *trackp); + + /* + * diskid.c + */ +-extern void pr_manufacturer(msf_t *mp, BOOL rw, BOOL audio); +-extern int manufacturer_id(msf_t *mp); +-extern long disk_rcap(msf_t *mp, long maxblock, BOOL rw, BOOL audio); ++extern void pr_manufacturer(wodim_msf_t *mp, BOOL rw, BOOL audio); ++extern int manufacturer_id(wodim_msf_t *mp); ++extern long disk_rcap(wodim_msf_t *mp, long maxblock, BOOL rw, BOOL audio); + + /*--------------------------------------------------------------------------*/ + /* Test only */ + /*--------------------------------------------------------------------------*/ + #ifdef _SCSIMMC_H +-/*extern int do_cue __PR((track_t *trackp, struct mmc_cue **cuep));*/ ++/*extern int do_cue __PR((wodim_track_t *trackp, struct mmc_cue **cuep));*/ + #else +-/*extern int do_cue __PR((track_t *trackp, void *cuep));*/ ++/*extern int do_cue __PR((wodim_track_t *trackp, void *cuep));*/ + #endif + + /* + * subchan.c + */ +-extern int do_leadin(track_t *trackp); ++extern int do_leadin(wodim_track_t *trackp); + #ifdef _SCG_SCSITRANSP_H +-extern int write_leadin(SCSI *usalp, cdr_t *dp, track_t *trackp, ++extern int write_leadin(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp, + int leadinstart); +-extern int write_leadout(SCSI *usalp, cdr_t *dp, track_t *trackp); ++extern int write_leadout(SCSI *usalp, cdr_t *dp, wodim_track_t *trackp); + #endif +-extern void fillsubch(track_t *trackp, Uchar *sp, int secno, int nsecs); +-extern void filltpoint(Uchar *sub, int ctrl_adr, int point, msf_t *mp); +-extern void fillttime(Uchar *sub, msf_t *mp); ++extern void fillsubch(wodim_track_t *trackp, Uchar *sp, int secno, int nsecs); ++extern void filltpoint(Uchar *sub, int ctrl_adr, int point, wodim_msf_t *mp); ++extern void fillttime(Uchar *sub, wodim_msf_t *mp); + extern void qpto96(Uchar *sub, Uchar *subq, int dop); + extern void addrw(Uchar *sub, Uchar *subrwptr); + extern void qwto16(Uchar *subq, Uchar *subptr); +-extern void subrecodesecs(track_t *trackp, Uchar *bp, int address, int nsecs); ++extern void subrecodesecs(wodim_track_t *trackp, Uchar *bp, int address, int nsecs); + + /* + * sector.c + */ + extern int encspeed(BOOL be_verbose); +-extern void encsectors(track_t *trackp, Uchar *bp, int address, int nsecs); +-extern void scrsectors(track_t *trackp, Uchar *bp, int address, int nsecs); ++extern void encsectors(wodim_track_t *trackp, Uchar *bp, int address, int nsecs); ++extern void scrsectors(wodim_track_t *trackp, Uchar *bp, int address, int nsecs); + extern void encodesector(Uchar *sp, int sectype, int address); + extern void fillsector(Uchar *sp, int sectype, int address); + + /* + * clone.c + */ +-extern void clone_toc(track_t *trackp); +-extern void clone_tracktype(track_t *trackp); ++extern void clone_toc(wodim_track_t *trackp); ++extern void clone_tracktype(wodim_track_t *trackp); + + /* + * cdtext.c + */ + extern BOOL checktextfile(char *fname); +-extern void packtext(int tracks, track_t *trackp); ++extern void packtext(int tracks, wodim_track_t *trackp); + #ifdef _SCG_SCSITRANSP_H + extern int write_cdtext(SCSI *usalp, cdr_t *dp, long startsec); + #endif +@@ -1206,7 +1209,7 @@ extern int write_cdtext(SCSI *usalp, cdr + /* + * cue.c + */ +-extern int parsecue(char *cuefname, track_t trackp[]); ++extern int parsecue(char *cuefname, wodim_track_t trackp[]); + #ifdef EOF /* stdio.h has been included */ +-extern void fparsecue(FILE *f, track_t trackp[]); ++extern void fparsecue(FILE *f, wodim_track_t trackp[]); + #endif diff --git a/SOURCES/cdrkit-1.1.11-ppc64le_elfheader.patch b/SOURCES/cdrkit-1.1.11-ppc64le_elfheader.patch new file mode 100644 index 0000000..0542b4e --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-ppc64le_elfheader.patch @@ -0,0 +1,13 @@ +diff -up wrk/include/glibc_elf.h.wrk wrk/include/glibc_elf.h +--- wrk/include/glibc_elf.h.wrk 2014-09-19 16:04:45.546981432 +0200 ++++ wrk/include/glibc_elf.h 2014-09-19 16:38:55.407991682 +0200 +@@ -2081,7 +2081,8 @@ typedef Elf32_Addr Elf32_Conflict; + #define R_PPC64_DTPREL16_HIGHESTA 106 /* half16 (sym+add)@dtprel@highesta */ + + /* Keep this the last entry. */ +-#define R_PPC64_NUM 107 ++//symbol conflicting with system headers on ppc64le and nowhere used ++//#define R_PPC64_NUM 107 + + /* PowerPC64 specific values for the Dyn d_tag field. */ + #define DT_PPC64_GLINK (DT_LOPROC + 0) diff --git a/SOURCES/cdrkit-1.1.11-readsegfault.patch b/SOURCES/cdrkit-1.1.11-readsegfault.patch new file mode 100644 index 0000000..a3a1305 --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-readsegfault.patch @@ -0,0 +1,12 @@ +diff -up cdrkit-1.1.11/readom/readom.c.readsegfault cdrkit-1.1.11/readom/readom.c +--- cdrkit-1.1.11/readom/readom.c.readsegfault 2011-03-07 15:51:46.889441591 +0100 ++++ cdrkit-1.1.11/readom/readom.c 2011-03-07 15:51:50.702938263 +0100 +@@ -906,7 +906,7 @@ read_ftoc(SCSI *usalp, parm_t *parmp, BO + + + strcpy(filename, "toc.dat"); +- if (strcmp(parmp->name, "/dev/null") != 0) { ++ if (parmp != NULL && strcmp(parmp->name, "/dev/null") != 0) { + + len = strlen(parmp->name); + if (len > (sizeof (filename)-5)) { diff --git a/SOURCES/cdrkit-1.1.11-rootstat.patch b/SOURCES/cdrkit-1.1.11-rootstat.patch new file mode 100644 index 0000000..d9ceb3b --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-rootstat.patch @@ -0,0 +1,31 @@ +diff -up cdrkit-1.1.11/genisoimage/tree.c.rootstat cdrkit-1.1.11/genisoimage/tree.c +--- cdrkit-1.1.11/genisoimage/tree.c.rootstat 2011-01-25 14:15:36.766389403 +0100 ++++ cdrkit-1.1.11/genisoimage/tree.c 2011-01-25 14:17:24.804643126 +0100 +@@ -48,6 +48,7 @@ + #include + #include + #include ++#include + + extern int allow_limited_size; + +@@ -1421,12 +1422,16 @@ insert_file_entry(struct directory *this + return (0); + } + if (this_dir == root && strcmp(short_name, ".") == 0) +- root_statbuf = statbuf; /* Save this for later on */ ++ memcpy(&root_statbuf, &statbuf, sizeof(root_statbuf)); /* Save this for later on */ + + /* We do this to make sure that the root entries are consistent */ + if (this_dir == root && strcmp(short_name, "..") == 0) { +- statbuf = root_statbuf; +- lstatbuf = root_statbuf; ++ /* for the case .. comes before . */ ++ if (!root_statbuf.st_ctime) { ++ stat_filter(dirname(whole_path), &root_statbuf); ++ } ++ memcpy(&statbuf, &root_statbuf, sizeof(statbuf)); ++ memcpy(&lstatbuf, &root_statbuf, sizeof(lstatbuf)); + } + if (S_ISLNK(lstatbuf.st_mode)) { + diff --git a/SOURCES/cdrkit-1.1.11-usalinst.patch b/SOURCES/cdrkit-1.1.11-usalinst.patch new file mode 100644 index 0000000..de8dbbf --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-usalinst.patch @@ -0,0 +1,33 @@ +diff -up cdrkit-1.1.11/librols/CMakeLists.txt.usalinst cdrkit-1.1.11/librols/CMakeLists.txt +--- cdrkit-1.1.11/librols/CMakeLists.txt.usalinst 2012-07-31 10:51:30.270669381 +0200 ++++ cdrkit-1.1.11/librols/CMakeLists.txt 2012-07-31 10:52:02.365378257 +0200 +@@ -3,5 +3,11 @@ INCLUDE_DIRECTORIES(../include ../libhfs + + SET(LIBROLS_SRCS astoi.c astoll.c astoull.c breakline.c cmpbytes.c comerr.c error.c fexec.c fillbytes.c getargs.c getav0.c getdomainname.c geterrno.c gethostid.c gethostname.c getpagesize.c handlecond.c movebytes.c raisecond.c rename.c saveargs.c seterrno.c spawn.c strcatl.c strdup.c streql.c swabbytes.c usleep.c stdio/cvmod.c stdio/dat.c stdio/fcons.c stdio/fdown.c stdio/fdup.c stdio/ffileread.c stdio/ffilewrite.c stdio/fgetline.c stdio/file_raise.c stdio/fileclose.c stdio/fileluopen.c stdio/filemopen.c stdio/fileopen.c stdio/filepos.c stdio/fileread.c stdio/filereopen.c stdio/fileseek.c stdio/filesize.c stdio/filestat.c stdio/filewrite.c stdio/flag.c stdio/flush.c stdio/fpipe.c stdio/niread.c stdio/niwrite.c stdio/nixread.c stdio/nixwrite.c stdio/openfd.c stdio/peekc.c default.c) + +-ADD_LIBRARY (rols STATIC ${CMAKE_CURRENT_SOURCE_DIR}/../include/xconfig.h ${CMAKE_CURRENT_SOURCE_DIR}/../include/align.h ${LIBROLS_SRCS}) ++ADD_LIBRARY (rols SHARED ${CMAKE_CURRENT_SOURCE_DIR}/../include/xconfig.h ${CMAKE_CURRENT_SOURCE_DIR}/../include/align.h ${LIBROLS_SRCS}) ++SET_TARGET_PROPERTIES(rols PROPERTIES ++ VERSION 0.0.1 ++ SOVERSION 0 ++) ++ ++INSTALL(TARGETS rols DESTINATION lib${LIB_SUFFIX}) + +diff -up cdrkit-1.1.11/libusal/CMakeLists.txt.usalinst cdrkit-1.1.11/libusal/CMakeLists.txt +--- cdrkit-1.1.11/libusal/CMakeLists.txt.usalinst 2012-07-31 10:51:30.302670085 +0200 ++++ cdrkit-1.1.11/libusal/CMakeLists.txt 2012-07-31 10:52:09.190528942 +0200 +@@ -6,5 +6,12 @@ ADD_DEFINITIONS(-DUSE_RCMD_RSH) + #SET(LIBSCG_SRCS rdummy.c usalsettarget.c usaltimes.c scsi-linux-ata.c scsi-linux-pg.c scsi-linux-sg.c scsierrs.c scsihack.c scsihelp.c scsiopen.c scsitransp.c) + SET(LIBSCG_SRCS usalsettarget.c usaltimes.c scsierrs.c scsihack.c scsihelp.c scsiopen.c scsitransp.c scsi-remote.c) + LINK_DIRECTORIES(../librols) +-ADD_LIBRARY (usal STATIC ${LIBSCG_SRCS}) ++ADD_LIBRARY (usal SHARED ${LIBSCG_SRCS}) ++ + TARGET_LINK_LIBRARIES(usal ${SCG_SELF_LIBS}) ++SET_TARGET_PROPERTIES(usal PROPERTIES ++ VERSION 0.0.1 ++ SOVERSION 0 ++) ++INSTALL(TARGETS usal DESTINATION lib${LIB_SUFFIX}) ++INSTALL(FILES usal/scsicdb.h usal/aspi-dos.h usal/usalcmd.h usal/usalio.h usal/scsireg.h usal/usalops.h usal/scsidefs.h usal/spti-wnt.h usal/srb_os2.h usal/scsitransp.h usal/aspi-win32.h usal/scsisense.h usaltimes.h pg.h DESTINATION include/usal) diff --git a/SOURCES/cdrkit-1.1.11-utf8.patch b/SOURCES/cdrkit-1.1.11-utf8.patch new file mode 100644 index 0000000..5118509 --- /dev/null +++ b/SOURCES/cdrkit-1.1.11-utf8.patch @@ -0,0 +1,104 @@ +diff -up cdrkit-1.1.11/Changelog.utf8 cdrkit-1.1.11/Changelog +--- cdrkit-1.1.11/Changelog.utf8 2012-07-31 12:38:50.207872763 +0200 ++++ cdrkit-1.1.11/Changelog 2012-07-31 12:38:57.669026934 +0200 +@@ -519,7 +519,7 @@ cdrkit (2.01.01a08+X.12) UNRELEASED; urg + + cdrkit (2.01.01a08+X.11) UNRELEASED; urgency=low + +- * 26_author_locale (ASCII transliteration of J�rg in the standard credits ++ * 26_author_locale (ASCII transliteration of Jörg in the standard credits + message) + * 28_cdda2wav_interface (Linux friendly cdda2wav behaviour) + * 30_doc_typo_fixes (various documentation/message fixes) +@@ -821,8 +821,8 @@ Sun May 16 01:37:11 2004 Joerg Schilling + + Sun May 16 01:26:52 2004 Joerg Schilling + * cdrecord.1 1.95 +- Ei�feldt -> Ei\*sfeldt +- �sec -> \*msec ++ Eißfeldt -> Ei\*sfeldt ++ ľsec -> \*msec + + Sat May 15 23:14:18 2004 Joerg Schilling + * subchan.c 1.19 +@@ -1057,7 +1057,7 @@ Wed Jan 14 15:37:47 2004 Joerg Schilling + Wed Jan 14 01:14:27 2004 Joerg Schilling + * scsi-mac-iokit.c 1.8 + ux_errno wird nun korrekt gesetzt wenn ein Kommando schiefgeht +- Die Sense Daten werden nicht mehr gel�scht ++ Die Sense Daten werden nicht mehr gelöscht + Author ist nun "schily", denn das Modul kommt nun teilweise dirch scgcheck + + Tue Jan 13 20:43:44 2004 Joerg Schilling +@@ -1074,7 +1074,7 @@ Mon Jan 12 00:33:39 2004 Joerg Schilling + + Sun Jan 11 18:42:14 2004 Joerg Schilling + * scsi-linux-sg.c 1.77 +- Versuch das /dev/hd* Interface von Linux-2.6 besser zu unterst�tzen. ++ Versuch das /dev/hd* Interface von Linux-2.6 besser zu unterstützen. + + Sun Jan 11 16:18:48 2004 Joerg Schilling + * scsi-linux-sg.c 1.76 +@@ -6144,7 +6144,7 @@ Mon Oct 26 00:27:22 1998 Joerg Schilling + New manufacturer: Xcitec Inc. + Doremi Media Co., Ltd. + Matsushita Electric Industrial Co.,Ltd. +- CDA Datentr�ger Albrechts GmbH. ++ CDA Datenträger Albrechts GmbH. + + Sun Oct 25 13:00:22 1998 Joerg Schilling + * cdrecord.c 1.71 +diff -up cdrkit-1.1.11/doc/icedax/README.utf8 cdrkit-1.1.11/doc/icedax/README +--- cdrkit-1.1.11/doc/icedax/README.utf8 2012-07-31 12:38:18.903226517 +0200 ++++ cdrkit-1.1.11/doc/icedax/README 2012-07-31 12:38:18.902226496 +0200 +@@ -387,7 +387,7 @@ and + + + +-From a news posting from Bj�rn Wiberg ++From a news posting from Björn Wiberg + + > The following table was generated using the CDROM.CFG file from Nero + > v3.0.4.2. +diff -up cdrkit-1.1.11/doc/icedax/THANKS.utf8 cdrkit-1.1.11/doc/icedax/THANKS +--- cdrkit-1.1.11/doc/icedax/THANKS.utf8 2012-07-31 12:38:18.901226475 +0200 ++++ cdrkit-1.1.11/doc/icedax/THANKS 2012-07-31 12:38:18.901226475 +0200 +@@ -5,7 +5,7 @@ http://www.mode.net/ + + and + +-Fraunhofer Institut f�r integrierte Schaltungen (FhG-IIS) ++Fraunhofer Institut für integrierte Schaltungen (FhG-IIS) + http://www.iis.fhg.de/ + + Code for extraction of ISRC and MCN codes as well as MD5 signatures +@@ -33,4 +33,4 @@ Francesco Chemolli (getopt_long patches) + Thanks to all testers and finally Jim McLaughlin for supplying + the first cdda-reader source code (that got me started). + +-Heiko Ei�feldt ++Heiko Eißfeldt +diff -up cdrkit-1.1.11/doc/READMEs/README.ATAPI.utf8 cdrkit-1.1.11/doc/READMEs/README.ATAPI +--- cdrkit-1.1.11/doc/READMEs/README.ATAPI.utf8 2012-07-31 12:38:18.899226433 +0200 ++++ cdrkit-1.1.11/doc/READMEs/README.ATAPI 2012-07-31 12:38:18.900226454 +0200 +@@ -279,7 +279,7 @@ selectively telling the kernel what to u + this would not be needed if the Linux SCSI CD-ROM driver would be more + up to date and supports standard conforming drives. + +-J�rg Schilling ++Jörg Schilling + + -------------------------------------------------- + Here is a hint from Alan Brown : +diff -up cdrkit-1.1.11/doc/READMEs/README.cdplus.utf8 cdrkit-1.1.11/doc/READMEs/README.cdplus +--- cdrkit-1.1.11/doc/READMEs/README.cdplus.utf8 2012-07-31 12:38:18.900226454 +0200 ++++ cdrkit-1.1.11/doc/READMEs/README.cdplus 2012-07-31 12:38:18.900226454 +0200 +@@ -63,7 +63,7 @@ Note: If you want to create an HFS hybri + use the '-part' option to genisoimage. Otherwise, the data track will be mounted + as an ISO9660/Joliet CD when used on a Mac. + +-J�rg ++Jörg + + Edited for cdrkit by Christian Fromme and Eduard Bloch + diff --git a/SOURCES/cdrkit-1.1.8-werror.patch b/SOURCES/cdrkit-1.1.8-werror.patch new file mode 100644 index 0000000..c5189ed --- /dev/null +++ b/SOURCES/cdrkit-1.1.8-werror.patch @@ -0,0 +1,206 @@ +diff -up cdrkit-1.1.8/wodim/wodim.c.werror cdrkit-1.1.8/wodim/wodim.c +--- cdrkit-1.1.8/wodim/wodim.c.werror 2008-05-27 15:34:03.000000000 +0200 ++++ cdrkit-1.1.8/wodim/wodim.c 2008-05-27 15:36:22.000000000 +0200 +@@ -4089,7 +4089,7 @@ audioread(SCSI *usalp, cdr_t *dp, int fl + + read_scsi(usalp, buf, 1000, 1); + printf("XXX:\n"); +- write(1, buf, 512); /* FIXME: handle return value */ ++ do{int ret;ret=write(1, buf, 512);}while(0); /* FIXME: handle return value */ + unload_media(usalp, dp, flags); + comexit(0); + #endif +diff -up cdrkit-1.1.8/wodim/isosize.c.werror cdrkit-1.1.8/wodim/isosize.c +--- cdrkit-1.1.8/wodim/isosize.c.werror 2008-05-27 15:41:36.000000000 +0200 ++++ cdrkit-1.1.8/wodim/isosize.c 2008-05-27 15:42:12.000000000 +0200 +@@ -69,7 +69,7 @@ isosize(int f) + vp = (struct iso9660_pr_voldesc *) &vd; + + do { +- read(f, &vd, sizeof (vd)); /* FIXME: check return value */ ++ do{int ret;ret=read(f, &vd, sizeof (vd));}while(0); /* FIXME: check return value */ + if (GET_UBYTE(vd.vd_type) == VD_PRIMARY) + break; + +diff -up cdrkit-1.1.8/icedax/toc.c.werror cdrkit-1.1.8/icedax/toc.c +--- cdrkit-1.1.8/icedax/toc.c.werror 2008-05-27 15:34:03.000000000 +0200 ++++ cdrkit-1.1.8/icedax/toc.c 2008-05-27 15:41:11.000000000 +0200 +@@ -1071,7 +1071,7 @@ static int handle_userchoice(char *p, un + /* get user response. */ + do { + fprintf(stderr, "please choose one (0-%u): ", nr); +- scanf("%u", &user_choice); /* FIXME: check return value */ ++ do{int ret;ret=scanf("%u", &user_choice);}while(0); /* FIXME: check return value */ + } while (user_choice > nr); + + if (user_choice == nr) +diff -up cdrkit-1.1.8/genisoimage/diag/dump.c.werror cdrkit-1.1.8/genisoimage/diag/dump.c +--- cdrkit-1.1.8/genisoimage/diag/dump.c.werror 2008-05-27 15:34:03.000000000 +0200 ++++ cdrkit-1.1.8/genisoimage/diag/dump.c 2008-05-27 15:34:03.000000000 +0200 +@@ -368,7 +368,7 @@ main(int argc, char *argv[]) + do { + if (file_addr < (off_t)0) file_addr = (off_t)0; + showblock(1); +- read(STDIN_FILENO, &c, 1); /* FIXME: check return value */ ++ do{int ret;ret=read(STDIN_FILENO, &c, 1);}while(0); /* FIXME: check return value */ + if (c == 'a') + file_addr -= PAGE; + if (c == 'b') +@@ -378,11 +378,11 @@ main(int argc, char *argv[]) + printf("Enter new starting block (in hex):"); + if (sizeof (file_addr) > sizeof (long)) { + Llong ll; +- scanf("%llx", &ll); /* FIXME: check return value */ ++ do{int ret;ret=scanf("%llx", &ll);}while(0); /* FIXME: check return value */ + file_addr = (off_t)ll; + } else { + long l; +- scanf("%lx", &l); /* FIXME: check return value */ ++ do{int ret;ret=scanf("%lx", &l);}while(0); /* FIXME: check return value */ + file_addr = (off_t)l; + } + file_addr = file_addr << 11; +@@ -392,7 +392,7 @@ main(int argc, char *argv[]) + if (c == 'f') { + crsr2(20, 1); + printf("Enter new search string:"); +- fgets((char *)search, sizeof (search), stdin); /* FIXME: check return value */ ++ do{char *ret;ret=fgets((char *)search, sizeof (search), stdin);}while(0); /* FIXME: check return value */ + while (search[strlen((char *)search)-1] == '\n') + search[strlen((char *)search)-1] = 0; + crsr2(20, 1); +diff -up cdrkit-1.1.8/genisoimage/diag/isoinfo.c.werror cdrkit-1.1.8/genisoimage/diag/isoinfo.c +--- cdrkit-1.1.8/genisoimage/diag/isoinfo.c.werror 2008-05-27 15:34:03.000000000 +0200 ++++ cdrkit-1.1.8/genisoimage/diag/isoinfo.c 2008-05-27 15:34:03.000000000 +0200 +@@ -651,7 +651,7 @@ extract_file(struct iso_directory_record + #endif + len -= tlen; + extent++; +- write(STDOUT_FILENO, buff, tlen); /* FIXME: check return value */ ++ do{int ret;ret=write(STDOUT_FILENO, buff, tlen);}while(0); /* FIXME: check return value */ + } + } + +diff -up cdrkit-1.1.8/genisoimage/diag/isodump.c.werror cdrkit-1.1.8/genisoimage/diag/isodump.c +--- cdrkit-1.1.8/genisoimage/diag/isodump.c.werror 2008-05-27 15:34:03.000000000 +0200 ++++ cdrkit-1.1.8/genisoimage/diag/isodump.c 2008-05-27 15:34:03.000000000 +0200 +@@ -655,7 +655,7 @@ main(int argc, char *argv[]) + if (file_addr < 0) + file_addr = (off_t)0; + showblock(1); +- read(STDIN_FILENO, &c, 1); /* FIXME: check return value */ ++ do{int ret;ret=read(STDIN_FILENO, &c, 1);}while(0); /* FIXME: check return value */ + if (c == 'a') + file_addr -= blocksize; + if (c == 'b') +@@ -665,11 +665,11 @@ main(int argc, char *argv[]) + printf("Enter new starting block (in hex):"); + if (sizeof (file_addr) > sizeof (long)) { + Llong ll; +- scanf("%llx", &ll); /* FIXME: check return value */ ++ do{int ret;ret=scanf("%llx", &ll);}while(0); /* FIXME: check return value */ + file_addr = (off_t)ll; + } else { + long l; +- scanf("%lx", &l); /* FIXME: check return value */ ++ do{int ret;ret=scanf("%lx", &l);}while(0); /* FIXME: check return value */ + file_addr = (off_t)l; + } + file_addr = file_addr * blocksize; +@@ -679,7 +679,7 @@ main(int argc, char *argv[]) + if (c == 'f') { + crsr2(20, 1); + printf("Enter new search string:"); +- fgets((char *)search, sizeof (search), stdin); /* FIXME: check return value */ ++ do{char *ret;ret=fgets((char *)search, sizeof (search), stdin);}while(0); /* FIXME: check return value */ + while (search[strlen((char *)search)-1] == '\n') + search[strlen((char *)search)-1] = 0; + crsr2(20, 1); +diff -up cdrkit-1.1.8/genisoimage/diag/isovfy.c.werror cdrkit-1.1.8/genisoimage/diag/isovfy.c +--- cdrkit-1.1.8/genisoimage/diag/isovfy.c.werror 2008-05-27 15:34:03.000000000 +0200 ++++ cdrkit-1.1.8/genisoimage/diag/isovfy.c 2008-05-27 15:34:03.000000000 +0200 +@@ -591,11 +591,11 @@ check_path_tables(int typel_extent, int + readsecs(typel_extent * blocksize / 2048, typel, ISO_BLOCKS(path_table_size)); + #else + lseek(fileno(infile), (off_t)((off_t)typel_extent) * blocksize, SEEK_SET); +- read(fileno(infile), typel, path_table_size); /* FIXME: check return value */ ++ do{int ret;ret=read(fileno(infile), typel, path_table_size);}while(0); /* FIXME: check return value */ + #endif + typem = (char *) malloc(path_table_size); + lseek(fileno(infile), (off_t)((off_t)typem_extent) * blocksize, SEEK_SET); +- read(fileno(infile), typem, path_table_size); /* FIXME: check return value */ ++ do{int ret;ret=read(fileno(infile), typem, path_table_size);}while(0); /* FIXME: check return value */ + + j = path_table_size; + pnt = typel; +diff -up cdrkit-1.1.8/genisoimage/jte.c.werror cdrkit-1.1.8/genisoimage/jte.c +--- cdrkit-1.1.8/genisoimage/jte.c.werror 2008-05-27 15:34:03.000000000 +0200 ++++ cdrkit-1.1.8/genisoimage/jte.c 2008-05-27 15:34:03.000000000 +0200 +@@ -36,6 +36,8 @@ + #include "vms.h" + #endif + ++#include "md5.h" ++ + /* Different types used in building our state list below */ + #define JTET_FILE_MATCH 1 + #define JTET_NOMATCH 2 +@@ -643,7 +645,7 @@ static void flush_bz2_chunk(void *buffer + + err = BZ2_bzCompressInit(&c_stream, 9, 0, 0); + comp_buf = malloc(2 * size); /* Worst case */ +- c_stream.next_out = comp_buf; ++ c_stream.next_out = (char *)comp_buf; + c_stream.avail_out = 2 * size; + c_stream.next_in = buffer; + c_stream.avail_in = size; +@@ -691,7 +693,7 @@ static void write_compressed_chunk(unsig + if (!uncomp_buf) + { + #ifdef USE_LIBSCHILY +- comerr("failed to allocate %d bytes for template compression buffer\n", uncomp_size); ++ comerr("failed to allocate %d bytes for template compression buffer\n", (int)uncomp_size); + #else + fprintf(stderr, "failed to allocate %d bytes for template compression buffer\n", uncomp_size); + exit(1); +@@ -1019,8 +1021,8 @@ void write_jt_match_record(char *filenam + #endif + } + if (first_block) +- rsync64_sum = rsync64(buf, MIN_JIGDO_FILE_SIZE); +- checksum_update(iso_context, buf, use); ++ rsync64_sum = rsync64((unsigned char *)buf, MIN_JIGDO_FILE_SIZE); ++ checksum_update(iso_context, (unsigned char *)buf, use); + // mk_MD5Update(&iso_context, buf, use); + remain -= use; + first_block = 0; +@@ -1033,7 +1035,7 @@ void write_jt_match_record(char *filenam + { + int pad_size = sector_size - (size % sector_size); + memset(buf, 0, pad_size); +- checksum_update(iso_context, buf, pad_size); ++ checksum_update(iso_context, (unsigned char *)buf, pad_size); + // mk_MD5Update(&iso_context, buf, pad_size); + } + +@@ -1041,7 +1043,7 @@ void write_jt_match_record(char *filenam + if (size % sector_size) + { + int pad_size = sector_size - (size % sector_size); +- write_compressed_chunk(buf, pad_size); ++ write_compressed_chunk((unsigned char *)buf, pad_size); + add_unmatched_entry(pad_size); + } + } +diff -up cdrkit-1.1.8/genisoimage/eltorito.c.werror cdrkit-1.1.8/genisoimage/eltorito.c +--- cdrkit-1.1.8/genisoimage/eltorito.c.werror 2008-05-27 15:34:03.000000000 +0200 ++++ cdrkit-1.1.8/genisoimage/eltorito.c 2008-05-27 15:34:03.000000000 +0200 +@@ -660,7 +660,7 @@ fill_boot_desc(struct eltorito_defaultbo + set_731(bi_table.bi_length, de->size); + set_731(bi_table.bi_csum, bi_checksum); + +- write(bootimage, &bi_table, sizeof (bi_table)); /* FIXME: check return value */ ++ do{int ret;ret=write(bootimage, &bi_table, sizeof (bi_table));}while(0); /* FIXME: check return value */ + close(bootimage); + } + }/* fill_boot_desc(... */ diff --git a/SOURCES/cdrkit-1.1.9-buffer_overflow.patch b/SOURCES/cdrkit-1.1.9-buffer_overflow.patch new file mode 100644 index 0000000..b93d8d2 --- /dev/null +++ b/SOURCES/cdrkit-1.1.9-buffer_overflow.patch @@ -0,0 +1,66 @@ +diff -ru origin-1.1.9/wodim/scsi_cdr.c master-1.1.9/wodim/scsi_cdr.c +--- origin-1.1.9/wodim/scsi_cdr.c 2008-02-25 12:14:07.000000000 +0100 ++++ master-1.1.9/wodim/scsi_cdr.c 2009-07-16 12:01:29.000000000 +0200 +@@ -2181,26 +2181,30 @@ + if (inq->add_len == 0) { + if (usalp->dev == DEV_UNKNOWN && got_inquiry) { + usalp->dev = DEV_ACB5500; +- strcpy(inq->vendor_info, +- "ADAPTEC ACB-5500 FAKE"); ++ strncpy(inq->vendor_info, "ADAPTEC ", 8); ++ strncpy(inq->prod_ident,"ACB-5500 ", 16); ++ strncpy(inq->prod_revision, "FAKE", 4); + + } else switch (usalp->dev) { +- + case DEV_ACB40X0: +- strcpy(inq->vendor_info, +- "ADAPTEC ACB-40X0 FAKE"); ++ strncpy(inq->vendor_info, "ADAPTEC ", 8); ++ strncpy(inq->prod_ident, "ACB-40X0 ",16); ++ strncpy(inq->prod_revision, "FAKE", 4); + break; + case DEV_ACB4000: +- strcpy(inq->vendor_info, +- "ADAPTEC ACB-4000 FAKE"); ++ strncpy(inq->vendor_info, "ADAPTEC ",8); ++ strncpy(inq->prod_ident, "ACB-4000 ",16); ++ strncpy(inq->prod_revision, "FAKE",4); + break; + case DEV_ACB4010: +- strcpy(inq->vendor_info, +- "ADAPTEC ACB-4010 FAKE"); ++ strncpy(inq->vendor_info, "ADAPTEC ",8); ++ strncpy(inq->prod_ident, "ACB-4010 ",16); ++ strncpy(inq->prod_revision, "FAKE",4); + break; + case DEV_ACB4070: +- strcpy(inq->vendor_info, +- "ADAPTEC ACB-4070 FAKE"); ++ strncpy(inq->vendor_info,"ADAPTEC ",8); ++ strncpy(inq->prod_ident, "ACB-4070 ", 16); ++ strncpy(inq->prod_revision, "FAKE",4 ); + break; + } + } else if (inq->add_len < 31) { +@@ -2230,14 +2234,16 @@ + + case INQ_SEQD: + if (usalp->dev == DEV_SC4000) { +- strcpy(inq->vendor_info, +- "SYSGEN SC4000 FAKE"); ++ strncpy(inq->vendor_info,"SYSGEN ",8); ++ strncpy(inq->prod_ident, "SC4000 ",16); ++ strncpy(inq->prod_revision, "FAKE",4); + } else if (inq->add_len == 0 && + inq->removable && + inq->ansi_version == 1) { + usalp->dev = DEV_MT02; +- strcpy(inq->vendor_info, +- "EMULEX MT02 FAKE"); ++ strncpy(inq->vendor_info,"EMULEX ",8); ++ strncpy(inq->prod_ident, "MT02 ",16); ++ strncpy(inq->prod_revision, "FAKE",4); + } + break; + diff --git a/SOURCES/cdrkit-1.1.9-efi-boot.patch b/SOURCES/cdrkit-1.1.9-efi-boot.patch new file mode 100644 index 0000000..45f910b --- /dev/null +++ b/SOURCES/cdrkit-1.1.9-efi-boot.patch @@ -0,0 +1,204 @@ +diff --git a/doc/icedax/tracknames.pl b/doc/icedax/tracknames.pl +old mode 100755 +new mode 100644 +index 09f0fcf..801b89e +--- a/doc/icedax/tracknames.pl ++++ b/doc/icedax/tracknames.pl +@@ -1,4 +1,4 @@ +-#!/usr/local/bin/perl ++#!/usr/bin/perl + # A quick perl hack to get rename files pulled in with icedax. + # by billo@billo.com + # +diff --git a/genisoimage/eltorito.c b/genisoimage/eltorito.c +index b97bdf1..5d7c2d1 100644 +--- a/genisoimage/eltorito.c ++++ b/genisoimage/eltorito.c +@@ -59,7 +59,7 @@ static void get_torito_desc(struct eltorito_boot_descriptor *boot_desc); + static void fill_boot_desc(struct eltorito_defaultboot_entry *boot_desc_entry, + struct eltorito_boot_entry_info *boot_entry); + void get_boot_entry(void); +-void new_boot_entry(void); ++void new_boot_entry(); + static int tvd_write(FILE *outfile); + + +@@ -283,6 +283,7 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc) + int i; + int offset; + struct eltorito_defaultboot_entry boot_desc_record; ++ struct eltorito_sectionheader_entry section_header; + + memset(boot_desc, 0, sizeof (*boot_desc)); + boot_desc->type[0] = 0; +@@ -317,7 +318,7 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc) + */ + memset(&valid_desc, 0, sizeof (valid_desc)); + valid_desc.headerid[0] = 1; +- valid_desc.arch[0] = EL_TORITO_ARCH_x86; ++ valid_desc.arch[0] = first_boot_entry->arch; + + /* + * we'll shove start of publisher id into id field, +@@ -347,10 +348,53 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc) + /* now write it to the virtual boot catalog */ + memcpy(de2->table, &valid_desc, 32); + +- for (current_boot_entry = first_boot_entry, offset = sizeof (valid_desc); +- current_boot_entry != NULL; +- current_boot_entry = current_boot_entry->next, +- offset += sizeof (boot_desc_record)) { ++ /* Fill the first entry, since it's special and already has the ++ * matching header via the validation header... */ ++ offset = sizeof (valid_desc); ++ current_boot_entry = first_boot_entry; ++ ++ if (offset >= SECTOR_SIZE) { ++#ifdef USE_LIBSCHILY ++ comerrno(EX_BAD, "Too many El Torito boot entries\n"); ++#else ++ fprintf(stderr, "Too many El Torito boot entries\n"); ++ exit(1); ++#endif ++ } ++ fill_boot_desc(&boot_desc_record, current_boot_entry); ++ memcpy(de2->table + offset, &boot_desc_record, ++ sizeof (boot_desc_record)); ++ ++ offset += sizeof(boot_desc_record); ++ ++ for (current_boot_entry = current_boot_entry->next; ++ current_boot_entry != NULL; ++ current_boot_entry = current_boot_entry->next) { ++ struct eltorito_sectionheader_entry section_header; ++ ++ if (offset >= SECTOR_SIZE) { ++#ifdef USE_LIBSCHILY ++ comerrno(EX_BAD, ++ "Too many El Torito boot entries\n"); ++#else ++ fprintf(stderr, ++ "Too many El Torito boot entries\n"); ++ exit(1); ++#endif ++ } ++ ++ memset(§ion_header, '\0', sizeof(section_header)); ++ if (current_boot_entry->next) ++ section_header.headerid[0] = EL_TORITO_SECTION_HEADER; ++ else ++ section_header.headerid[0] = EL_TORITO_LAST_SECTION_HEADER; ++ ++ section_header.arch[0] = current_boot_entry->arch; ++ set_721(section_header.num_entries, 1); ++ ++ memcpy(de2->table + offset, §ion_header, ++ sizeof(section_header)); ++ offset += sizeof(section_header); + + if (offset >= SECTOR_SIZE) { + #ifdef USE_LIBSCHILY +@@ -365,6 +409,8 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc) + fill_boot_desc(&boot_desc_record, current_boot_entry); + memcpy(de2->table + offset, &boot_desc_record, + sizeof (boot_desc_record)); ++ offset += sizeof (boot_desc_record); ++ + } + }/* get_torito_desc(... */ + +diff --git a/genisoimage/genisoimage.c b/genisoimage/genisoimage.c +index a5b0b46..8add1ac 100644 +--- a/genisoimage/genisoimage.c ++++ b/genisoimage/genisoimage.c +@@ -47,6 +47,7 @@ + + #include + #include "genisoimage.h" ++#include "iso9660.h" + #include + #include + #include +@@ -523,6 +524,8 @@ static const struct ld_option ld_options[] = + '\0', NULL, "Set debug flag", ONE_DASH}, + {{"eltorito-boot", required_argument, NULL, 'b'}, + 'b', "FILE", "Set El Torito boot image name", ONE_DASH}, ++ {{"efi-boot", required_argument, NULL, 'e'}, ++ 'e', "FILE", "Set EFI boot image name", ONE_DASH}, + {{"eltorito-alt-boot", no_argument, NULL, OPTION_ALT_BOOT}, + '\0', NULL, "Start specifying alternative El Torito boot parameters", ONE_DASH}, + {{"sparc-boot", required_argument, NULL, 'B'}, +@@ -1502,6 +1505,7 @@ int main(int argc, char *argv[]) + all_files = 0; + break; + case 'b': ++ case 'e': + do_sort++; /* We sort bootcat/botimage */ + use_eltorito++; + boot_image = optarg; /* pathname of the boot image */ +@@ -1517,6 +1521,10 @@ int main(int argc, char *argv[]) + #endif + } + get_boot_entry(); ++ if (c == 'e') ++ current_boot_entry->arch = EL_TORITO_ARCH_EFI; ++ else ++ current_boot_entry->arch = EL_TORITO_ARCH_x86; + current_boot_entry->boot_image = boot_image; + break; + case OPTION_ALT_BOOT: +diff --git a/genisoimage/genisoimage.h b/genisoimage/genisoimage.h +index bbedfb0..76e5e21 100644 +--- a/genisoimage/genisoimage.h ++++ b/genisoimage/genisoimage.h +@@ -293,6 +293,7 @@ struct deferred_write { + struct eltorito_boot_entry_info { + struct eltorito_boot_entry_info *next; + char *boot_image; ++ char arch; + int not_bootable; + int no_emul_boot; + int hard_disk_boot; +diff --git a/genisoimage/iso9660.h b/genisoimage/iso9660.h +index c74c2a9..c8b7a05 100644 +--- a/genisoimage/iso9660.h ++++ b/genisoimage/iso9660.h +@@ -62,10 +62,14 @@ struct iso_volume_descriptor { + #define EL_TORITO_ARCH_x86 0 + #define EL_TORITO_ARCH_PPC 1 + #define EL_TORITO_ARCH_MAC 2 ++#define EL_TORITO_ARCH_EFI 0xef + + #define EL_TORITO_BOOTABLE 0x88 + #define EL_TORITO_NOT_BOOTABLE 0 + ++#define EL_TORITO_SECTION_HEADER 0x90 ++#define EL_TORITO_LAST_SECTION_HEADER 0x91 ++ + #define EL_TORITO_MEDIA_NOEMUL 0 + #define EL_TORITO_MEDIA_12FLOP 1 + #define EL_TORITO_MEDIA_144FLOP 2 +@@ -173,7 +177,7 @@ struct eltorito_validation_entry { + struct eltorito_defaultboot_entry { + char boot_id [ISODCL(1, 1)]; /* 711 */ + char boot_media [ISODCL(2, 2)]; +- char loadseg [ISODCL(3, 4)]; /* 711 */ ++ char loadseg [ISODCL(3, 4)]; /* 712 */ + char sys_type [ISODCL(5, 5)]; + char pad1 [ISODCL(6, 6)]; + char nsect [ISODCL(7, 8)]; +@@ -181,6 +185,14 @@ struct eltorito_defaultboot_entry { + char pad2 [ISODCL(13, 32)]; + }; + ++/* El Torito Section Header Entry in boot catalog */ ++struct eltorito_sectionheader_entry { ++ char headerid [ISODCL(1, 1)]; /* 711 */ ++ char arch [ISODCL(2, 2)]; ++ char num_entries [ISODCL(3, 4)]; /* 711 */ ++ char id [ISODCL(5, 32)]; ++}; ++ + /* + * XXX JS: The next two structures have odd lengths! + * Some compilers (e.g. on Sun3/mc68020) padd the structures to even length. diff --git a/SOURCES/cdrkit-1.1.9-no_mp3.patch b/SOURCES/cdrkit-1.1.9-no_mp3.patch new file mode 100644 index 0000000..6948e4e --- /dev/null +++ b/SOURCES/cdrkit-1.1.9-no_mp3.patch @@ -0,0 +1,50 @@ +diff -up cdrkit-1.1.9/icedax/cdda2ogg.1.no_mp3 cdrkit-1.1.9/icedax/cdda2ogg.1 +--- cdrkit-1.1.9/icedax/cdda2ogg.1.no_mp3 2009-06-15 14:48:44.930637082 +0200 ++++ cdrkit-1.1.9/icedax/cdda2ogg.1 2009-06-15 14:50:35.596769274 +0200 +@@ -1,12 +1,11 @@ + '\" + .TH "cdda2ogg" "1" + .SH "NAME" +-cdda2ogg, cdda2mp3 \(em extract audio CD audio tracks and encode them ++cdda2ogg \(em extract audio CD audio tracks and encode them + .SH "SYNOPSIS" + .PP + .B cdda2ogg + .PP +-.B cdda2mp3 + .SH "DESCRIPTION" + .PP + .B cdda2ogg is a simple script that uses the +@@ -15,9 +14,6 @@ command to extract all audio tracks with + .B icedax + command and encode them using the + .B ogg123 +-respective +-.I +-MP3 + encoder. The scripts are not intended to be full-featured music archiving + programs, but only for quick storing of few audio data. + It does not use databases like CDDB or have any extra features. You may look +@@ -36,8 +32,6 @@ for more information. + .SH "CONFIGURATION" + .PP + .B cdda2ogg +-and +-.B cdda2mp3 + have predefined values for reading and labeling of the target files. + You can overwrite them with following environment variables: + +@@ -65,11 +59,11 @@ Additional options passed to + The base part of the filename of resulting audio files. This can also be specified as the first argument to the script. + + .PP +-See cdda2ogg (cdda2mp3) script file to get the default values ++See cdda2ogg script file to get the default values + .PP + System administrator can also set default values by creating of a shell + include file, defining the variables for the POSIX shell, and storing them as +-/etc/default/cdda2ogg (resp. cdda2mp3). ++/etc/default/cdda2ogg. + .SH "EXAMPLES" + .PP + .B CDDA_DEVICE=/dev/cdrom1 cdda2ogg diff --git a/SPECS/cdrkit.spec b/SPECS/cdrkit.spec new file mode 100644 index 0000000..b3b4ac1 --- /dev/null +++ b/SPECS/cdrkit.spec @@ -0,0 +1,491 @@ +Summary: A collection of CD/DVD utilities +Name: cdrkit +Version: 1.1.11 +Release: 25%{?dist} +License: GPLv2 +Group: Applications/System +URL: http://cdrkit.org/ +Source: http://cdrkit.org/releases/cdrkit-%{version}.tar.gz + +Patch1: cdrkit-1.1.8-werror.patch +Patch2: cdrkit-1.1.9-efi-boot.patch +Patch4: cdrkit-1.1.9-no_mp3.patch +Patch5: cdrkit-1.1.9-buffer_overflow.patch +Patch6: cdrkit-1.1.10-build-fix.patch +Patch7: cdrkit-1.1.11-manpagefix.patch +Patch8: cdrkit-1.1.11-rootstat.patch +Patch9: cdrkit-1.1.11-usalinst.patch +Patch10: cdrkit-1.1.11-readsegfault.patch +Patch11: cdrkit-1.1.11-format.patch +Patch12: cdrkit-1.1.11-handler.patch +Patch13: cdrkit-1.1.11-dvdman.patch +Patch14: cdrkit-1.1.11-paranoiacdda.patch +Patch15: cdrkit-1.1.11-utf8.patch +Patch16: cdrkit-1.1.11-cmakewarn.patch +Patch17: cdrkit-1.1.11-memset.patch +Patch18: cdrkit-1.1.11-paranoiacdio.patch +Patch19: cdrkit-1.1.11-ppc64le_elfheader.patch +Patch20: cdrkit-1.1.11-kernel-release.patch +Patch21: cdrkit-1.1.11-device-name.patch + +BuildRequires: cmake libcap-devel zlib-devel perl file-devel bzip2-devel + +%description +cdrkit is a collection of CD/DVD utilities. + +%package -n wodim +Summary: A command line CD/DVD recording program +Group: Applications/Archiving +Obsoletes: dvdrecord <= 0:0.1.5 +Provides: dvdrecord = 0:0.1.5.1 +Obsoletes: cdrecord < 9:2.01-12 +Provides: cdrecord = 9:2.01-12 +Requires: libusal = %{version}-%{release} +Requires(preun): %{_sbindir}/alternatives coreutils +Requires(post): %{_sbindir}/alternatives coreutils + +%description -n wodim +Wodim is an application for creating audio and data CDs. Wodim +works with many different brands of CD recorders, fully supports +multi-sessions and provides human-readable error messages. + +%package -n genisoimage +Summary: Creates an image of an ISO9660 file-system +Group: Applications/System +Obsoletes: mkisofs < 9:2.01-12 +Provides: mkisofs = 9:2.01-12 +Requires: libusal = %{version}-%{release} +Requires(preun): %{_sbindir}/alternatives coreutils +Requires(post): %{_sbindir}/alternatives coreutils + +%description -n genisoimage +The genisoimage program is used as a pre-mastering program; i.e., it +generates the ISO9660 file-system. Genisoimage takes a snapshot of +a given directory tree and generates a binary image of the tree +which will correspond to an ISO9660 file-system when written to +a block device. Genisoimage is used for writing CD-ROMs, and includes +support for creating boot-able El Torito CD-ROMs. + +Install the genisoimage package if you need a program for writing +CD-ROMs. + +%package -n dirsplit +Summary: Utility to split directories +Group: Applications/System +Requires: perl >= 4:5.8.1 +Requires: genisoimage = %{version}-%{release} + +%description -n dirsplit +This utility is used to split directories into chunks before burning. +Chunk size is usually set to fit to a CD/DVD. + +%package -n icedax +Group: Applications/Multimedia +Summary: A utility for sampling/copying .wav files from digital audio CDs +Obsoletes: cdda2wav < 9:2.01-12 +Provides: cdda2wav = 9:2.01-12 +Requires: libusal = %{version}-%{release} +Requires(preun): %{_sbindir}/alternatives chkconfig coreutils +Requires(post): %{_sbindir}/alternatives chkconfig coreutils +Requires: vorbis-tools +Requires: cdparanoia libcdio-paranoia +BuildRequires: cdparanoia-devel libcdio-paranoia-devel + +%description -n icedax +Icedax is a sampling utility for CD-ROM drives that are capable of +providing a CD's audio data in digital form to your host. Audio data +read from the CD can be saved as .wav or .sun format sound files. +Recording formats include stereo/mono, 8/12/16 bits and different +rates. Icedax can also be used as a CD player. + +%package -n libusal +Summary: Library to communicate with SCSI devices +Group: Development/Libraries + +%description -n libusal +The libusal package contains C libraries that allows applications +to communicate with SCSI devices and is well suitable for writing +CD-R media. + +%package -n libusal-devel +Summary: Development files for libusal +Group: Development/Libraries +Requires: libusal = %{version}-%{release} + +%description -n libusal-devel +The libusal-devel package contains C libraries and header files +for developing applications that use libusal for communication with +SCSI devices. + +%prep +%setup -q +%patch1 -p1 -b .werror +%patch2 -p1 -b .efi +%patch4 -p1 -b .no_mp3 +%patch5 -p1 -b .buffer_overflow +%patch6 -p1 -b .build-fix +%patch7 -p1 -b .manpagefix +%patch8 -p1 -b .rootstat +%patch9 -p1 -b .usalinst +%patch10 -p1 -b .readsegfault +%patch11 -p1 -b .format +%patch12 -p1 -b .handler +%patch13 -p1 -b .dvdman +%patch14 -p1 -b .paranoiacdda +# not using -b since otherwise backup files would be included into rpm +%patch15 -p1 +%patch16 -p1 -b .cmakewarn +%patch17 -p1 -b .edcspeed +%patch18 -p1 -b .paranoiacdio +%patch19 -p1 -b .elfheader +%patch20 -p1 -b .kernel +%patch21 -p1 -b .device_name + +# we do not want bundled paranoia library +rm -rf libparanoia + +find . -type f -print0 | xargs -0 perl -pi -e 's#/usr/local/bin/perl#/usr/bin/perl#g' +find doc -type f -print0 | xargs -0 chmod a-x + + +%build +mkdir fedora +cd fedora +export CFLAGS="$RPM_OPT_FLAGS -Wall -Werror -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-array-bounds -fno-strict-aliasing" +export CXXFLAGS="$CFLAGS" +export FFLAGS="$CFLAGS" +%cmake CMAKE_VERBOSE=1 \ + -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ + -DBUILD_SHARED_LIBS:BOOL=ON \ +.. + +make VERBOSE=1 %{?_smp_mflags} + +%install +cd fedora +make install DESTDIR=$RPM_BUILD_ROOT +perl -pi -e 's#^require v5.8.1;##g' $RPM_BUILD_ROOT%{_bindir}/dirsplit +ln -s genisoimage $RPM_BUILD_ROOT%{_bindir}/mkisofs +ln -s genisoimage $RPM_BUILD_ROOT%{_bindir}/mkhybrid +ln -s icedax $RPM_BUILD_ROOT%{_bindir}/cdda2wav +ln -s wodim $RPM_BUILD_ROOT%{_bindir}/cdrecord +ln -s wodim $RPM_BUILD_ROOT%{_bindir}/dvdrecord + +#do not include empty fedora/* directories in debuginfo package +cd .. +rm -rf fedora + +# missing man page. Do symlink like in debian +ln -sf wodim.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/netscsid.1.gz + +# we don't need cdda2mp3 since we don't have any mp3 {en,de}coder +rm $RPM_BUILD_ROOT%{_bindir}/cdda2mp3 + +%post -n wodim +link=`readlink %{_bindir}/cdrecord` +if [ "$link" == "%{_bindir}/wodim" ]; then + rm -f %{_bindir}/cdrecord +fi +link=`readlink %{_bindir}/dvdrecord` +if [ "$link" == "wodim" ]; then + rm -f %{_bindir}/dvdrecord +fi + +%{_sbindir}/alternatives --install %{_bindir}/cdrecord cdrecord \ + %{_bindir}/wodim 50 \ + --slave %{_mandir}/man1/cdrecord.1.gz cdrecord-cdrecordman \ + %{_mandir}/man1/wodim.1.gz \ + --slave %{_bindir}/dvdrecord cdrecord-dvdrecord %{_bindir}/wodim \ + --slave %{_mandir}/man1/dvdrecord.1.gz cdrecord-dvdrecordman \ + %{_mandir}/man1/wodim.1.gz \ + --slave %{_bindir}/readcd cdrecord-readcd %{_bindir}/readom \ + --slave %{_mandir}/man1/readcd.1.gz cdrecord-readcdman \ + %{_mandir}/man1/readom.1.gz + +%preun -n wodim +if [ $1 = 0 ]; then + %{_sbindir}/alternatives --remove cdrecord %{_bindir}/wodim +fi + +%post -n genisoimage +link=`readlink %{_bindir}/mkisofs` +if [ "$link" == "genisoimage" ]; then + rm -f %{_bindir}/mkisofs +fi + +%{_sbindir}/alternatives --install %{_bindir}/mkisofs mkisofs \ + %{_bindir}/genisoimage 50 \ + --slave %{_mandir}/man1/mkisofs.1.gz mkisofs-mkisofsman \ + %{_mandir}/man1/genisoimage.1.gz \ + --slave %{_bindir}/mkhybrid mkisofs-mkhybrid %{_bindir}/genisoimage \ + --slave %{_mandir}/man1/mkhybrid.1.gz mkisofs-mkhybridman \ + %{_mandir}/man1/genisoimage.1.gz + +%preun -n genisoimage +if [ $1 = 0 ]; then + %{_sbindir}/alternatives --remove mkisofs %{_bindir}/genisoimage +fi + +%post -n icedax +link=`readlink %{_bindir}/cdda2wav` +if [ "$link" == "icedax" ]; then + rm -f %{_bindir}/cdda2wav +fi +%{_sbindir}/alternatives --install %{_bindir}/cdda2wav cdda2wav \ + %{_bindir}/icedax 50 \ + --slave %{_mandir}/man1/cdda2wav.1.gz cdda2wav-cdda2wavman \ + %{_mandir}/man1/icedax.1.gz + +%preun -n icedax +if [ $1 = 0 ]; then + %{_sbindir}/alternatives --remove cdda2wav %{_bindir}/icedax +fi + +%post -n libusal -p /sbin/ldconfig + +%postun -n libusal -p /sbin/ldconfig + +%files -n wodim +%doc Changelog COPYING FAQ FORK START +%doc doc/READMEs doc/wodim +%{_bindir}/devdump +%{_bindir}/wodim +%ghost %{_bindir}/cdrecord +%ghost %{_bindir}/dvdrecord +%{_bindir}/readom +%{_sbindir}/netscsid +%{_mandir}/man1/devdump.* +%{_mandir}/man1/wodim.* +%{_mandir}/man1/netscsid.* +%{_mandir}/man1/readom.* + +%files -n icedax +%doc doc/icedax COPYING +%{_bindir}/icedax +%ghost %{_bindir}/cdda2wav +%{_bindir}/cdda2ogg +%{_mandir}/man1/icedax.* +%{_mandir}/man1/cdda2ogg.* +%{_mandir}/man1/list_audio_tracks.* + +%files -n genisoimage +%doc doc/genisoimage COPYING +%{_bindir}/genisoimage +%ghost %{_bindir}/mkisofs +%ghost %{_bindir}/mkhybrid +%{_bindir}/isodebug +%{_bindir}/isodump +%{_bindir}/isoinfo +%{_bindir}/isovfy +%{_bindir}/pitchplay +%{_bindir}/readmult +%{_mandir}/man5/genisoimagerc.* +%{_mandir}/man1/genisoimage.* +%{_mandir}/man1/isodebug.* +%{_mandir}/man1/isodump.* +%{_mandir}/man1/isoinfo.* +%{_mandir}/man1/isovfy.* +%{_mandir}/man1/pitchplay.* +%{_mandir}/man1/readmult.* + +%files -n dirsplit +%{_bindir}/dirsplit +%{_mandir}/man1/dirsplit.* + +%files -n libusal +%doc doc/plattforms/README.linux Changelog COPYING FAQ FORK START +%{_libdir}/libusal.so.* +%{_libdir}/librols.so.* + +%files -n libusal-devel +%doc COPYING +%{_libdir}/libusal.so +%{_libdir}/librols.so +%{_includedir}/usal + +%changelog +* Tue May 15 2018 Jakub Martisko - 1.1.11-25 +- add support for device names of the form /dev/srN +- fix provided by Frantisek Kluknavsky +- resolves:rhbz#1058446 + +* Thu May 10 2018 Jakub Martisko - 1.1.11-24 +- fix libusal kernel version check +- fix provided by Renaud Métrich +- resolves:rhbz#1524845 + +* Mon Sep 22 2014 Frantisek Kluknavsky - 1.1.11-23 +- removed conflicting #define to fix FTBFS on ppc64le +- resolves:rhbz#1144072 + +* Fri Jan 24 2014 Daniel Mach - 1.1.11-22 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 1.1.11-21 +- Mass rebuild 2013-12-27 + +* Tue Jul 23 2013 Frantisek Kluknavsky - 1.1.11-20 +- do not include empty fedora/* directories in debuginfo package + +* Wed Jul 17 2013 Petr Pisar - 1.1.11-19 +- Perl 5.18 rebuild + +* Wed Jul 17 2013 Frantisek Kluknavsky - 1.1.11-18 +- ported from cdda-paranoia to libcdio-paranoia, modified paranoia-cdda.patch +- fixed bogus date in changelog + +* Mon Feb 25 2013 Frantisek Kluknavsky - 1.1.11-17 +- modified the memset patch, memsetting the whole array + +* Fri Feb 22 2013 Frantisek Kluknavsky - 1.1.11-16 +- changed or deleted faulty and unneeded memset's that caused build failure with gcc-4.8 -Werror + +* Wed Feb 13 2013 Fedora Release Engineering - 1.1.11-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Oct 03 2012 Honza Horak - 1.1.11-14 +- Add coreutils as preun/post requirements for wodim and genisoimage + Resolves: #862554 + +* Mon Aug 27 2012 Honza Horak - 1.1.11-13 +- Add mkhybrid(1) as a symlink to genisoimage(1) +- Spec file cleanup + +* Mon Jul 30 2012 Honza Horak - 1.1.11-12 +- Use system cdparanoia instead of old bundled version +- Build libusal as a shared library +- Messages from rpmlint clean-up + +* Wed Jul 18 2012 Fedora Release Engineering - 1.1.11-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jan 12 2012 Fedora Release Engineering - 1.1.11-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Dec 07 2011 Honza Horak - 1.1.11-9 +- Fix driver specification in man pages + (Resolves: #711623) + +* Thu Jun 02 2011 Honza Horak - 1.1.11-8 +- Fix segmentation fault when icedax exits while sleeping after ctrl-c + (Resolves: #709902) + +* Tue May 17 2011 Honza Horak - 1.1.11-7 +- Fix automatic formatting of DVD+RW if needed + (Resolves: #519465) + +* Thu Mar 17 2011 Honza Horak - 1.1.11-6 +- Added Provides: libusal-static for libusal-devel subpackage + (Resolves: #688347) + +* Mon Mar 07 2011 Honza Horak - 1.1.11-5 +- Fix segmentation fault in readom + (Resolves: #682591) + +* Thu Feb 17 2011 Honza Horak - 1.1.11-4 +- Library libusal is installed in order to be used by other apps + (Resolves: #588508) + https://bugzilla.redhat.com/show_bug.cgi?id=588508 + +* Tue Feb 08 2011 Fedora Release Engineering - 1.1.11-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jan 31 2011 Honza Horak 1.1.11-2 +- fixed man page missing arguments (Resolves: #647024) + https://bugzilla.redhat.com/show_bug.cgi?id=647024 +- fixed erroneous "Unknown file type (unallocated)" warning + (Resolves: #174667) + https://bugzilla.redhat.com/show_bug.cgi?id=174667 + +* Mon Oct 18 2010 Nikola Pajkovsky 1.1.11-1 +- new upstream version 1.1.11 + +* Mon Jun 21 2010 Roman Rakus - 1.1.10-2 +- Added missing manpage for netscsid (symlink to wodim manpage) + +* Wed Jan 20 2010 Nikola Pajkovsky - 1.1.10-1 +- new upstream version 1.1.10 + +* Tue Aug 11 2009 Nikola Pajkovsky 1.1.9-10 +- fix #508449. fix string overflow breakage when using the -root + +* Fri Jul 24 2009 Fedora Release Engineering - 1.1.9-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Jul 16 2009 Nikola Pajkovsky 1.1.9-8 +- fix buffer overflow + +* Fri Jul 10 2009 Adam Jackson 1.1.9-7 +- Move dirsplit to a subpackage to isolate the perl dependency. + +* Mon Jun 15 2009 Roman Rakus - 1.1.9-6 +- rename functions as they conflict with glibc +- Don't push cdda2mp3 because we don't have any mp3 coder + Resolves: #505918 + +* Tue Jun 02 2009 Roman Rakus - 1.1.9-5 +- Added Requires vorbis-tools in icedax (rhbz #503699) + +* Wed Feb 25 2009 Peter Jones - 1.1.9-4 +- Add support for EFI boot images. + +* Mon Feb 23 2009 Fedora Release Engineering - 1.1.9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Feb 12 2009 Roman Rakus - 1.1.9-2 +- Use -fno-strict-aliasing to prevent strict_aliasing warnings/errors + +* Mon Oct 27 2008 Roman Rakus - 1.1.9-1 +- Bump to version 1.1.9 + +* Tue May 27 2008 Roman Rakus - 1.1.8-1 +- Version 1.1.8 - old patches included + - added bzip2-devel to build requirements +- fixed #171510 - preserve directory permissions + +* Wed Feb 27 2008 Harald Hoyer 1.1.6-11 +- refined -Werror patch + +* Mon Feb 25 2008 Harald Hoyer 1.1.6-10 +- patched to compile with -Werror (rhbz#429385) + +* Thu Feb 21 2008 Harald Hoyer 1.1.6-9 +- fixed loop on error message for old dev syntax (rhbz#429386) + +* Thu Feb 21 2008 Harald Hoyer 1.1.6-8 +- added file-devel to build requirements + +* Mon Feb 18 2008 Fedora Release Engineering - 1.1.6-7 +- Autorebuild for GCC 4.3 + +* Tue Sep 25 2007 Harald Hoyer - 1.1.6-6 +- fixed readcd man page symlink + +* Fri Sep 21 2007 Harald Hoyer - 1.1.6-5 +- fixed rhbz#255001 - icedax --devices segfaults +- fixed rhbz#249357 - Typo in wodim output + +* Fri Sep 21 2007 Harald Hoyer - 1.1.6-4 +- play stupid tricks, to let alternatives make the links and + rpm not removing them afterwards +- removed bogus warning for "." and ".." + +* Thu Sep 20 2007 Harald Hoyer - 1.1.6-3 +- fixed rhbz#248262 +- switched to alternatives + +* Fri Aug 17 2007 Harald Hoyer - 1.1.6-2 +- changed license to GPLv2 + +* Wed Jun 20 2007 Harald Hoyer - 1.1.6-1 +- version 1.1.6 +- added readcd symlink + +* Mon Apr 23 2007 Harald Hoyer - 1.1.2-4 +- bump obsoletes/provides + +* Tue Feb 27 2007 Harald Hoyer - 1.1.2-3 +- applied specfile changes as in bug #224365 + +* Wed Jan 24 2007 Harald Hoyer - 1.1.2-1 +- version 1.1.2