Commit Graph

343 Commits

Author SHA1 Message Date
R. Bernstein
4f0228e99f Fix bug in 0.81 release in adding NetBSD driver. Make device enumerations
match internal structures. (Also corrected the name for the
non-existent AIX driver.)
2008-12-06 22:35:16 -05:00
R. Bernstein
542481d673 Wasn't checking the range of the device id in cdio_have_driver. Add regression test for checking this too.
More git administrivia.
2008-12-06 21:20:51 -05:00
R. Bernstein
f434186567 Makefile.am: Redo target for ChangeLog to use git2cl. NEWS: Note NetBSD driver added. Reset: git administrivia. 2008-12-06 20:04:23 -05:00
rocky
68adc03b85 Increment library numbers 2008-10-20 01:25:10 +00:00
rocky
6ab1f8e448 patch #6548: fix osx handling. See that for more information 2008-10-17 11:58:52 +00:00
rocky
275703a5d6 Remove stray @ character in Makefile.am. Thanks yet again to Steve
Schultz for finding/fixing.
2008-08-31 22:22:56 +00:00
flameeyes
a4b1427fe9 Use the LTLIBICONV variable rather than LIBICONV.
With this change, instead of using the fully qualified path to the
shared object (or the one that the configure think is the fully
qualified path), the path where the library is found will be added to
the search path and just a generic -liconv will be used.

The old variable would be fooled up when /usr/lib/libiconv.so is an LD
script that redirects to /lib/libiconv.so, causing failures with some
linkers.

Also, replace @LIBICONV@ for libcdio itself also with $(LTLIBICONV) or
it will fail to link against on uClibc.
2008-08-31 13:38:21 +00:00
rocky
3d106b4568 Free memory when recovering from errors. 2008-08-30 06:55:50 +00:00
rocky
9c32ef00a0 Was accessing outside of check2list causing wild looping. Turn all
sprintf's to snprintf's and check the return.

Turn check1list and check2list looping into a fixed constant number of
iterations rather than rely on a sentinal.
2008-06-25 07:46:20 +00:00
flameeyes
2453159ffc Make cdtext_keywords a static array of arrays. 2008-06-16 22:41:44 +00:00
flameeyes
a1d1797d3b Replace character pointers in signature_t with properly-sized
character arrays.

The size of sigs has increased a bit but now the sigs array can stay
entirely in .rodata section, with no runtime relocations.

Having 128 bytes sized elements also allows for direct random access
on the array without multiplications.
2008-06-16 19:39:30 +00:00
flameeyes
e4afadf511 Make checklists fit entirely in .rodata sections, by marking them constant and using an array of characters rather than a pointer to character. 2008-06-13 19:33:13 +00:00
pjcreath
dde50ca547 Fixed pregap regression failure on non-Intel architectures, removed warnings 2008-06-10 00:45:08 +00:00
rocky
e6a0e3e84e Fix prototype mismatch. Savannah Bug #23228 2008-05-11 09:50:54 +00:00
edsdead
c7d17c3fdc don't shift read_sector_type into reserved field of read cd cdb (resulting in every call being treated as CDIO_MMC_READ_TYPE_ANY) 2008-05-09 09:54:39 +00:00
edsdead
58b9aee8e5 fix incorrect behavior and potential buffer overrun in mmc_read_cd when i_blocks exceeds MAX_CD_READ_BLOCKS 2008-05-09 06:43:53 +00:00
rocky
62d7731703 Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
   (changes lib/udf/udf_time.c, configure.ac, config.h.in)

 - The configure test for bitfield ordering uses AC_TRY_RUN and thus
   doesn't work when cross-compiling; use sneakiness to try and
   determine it at compile time, falling back to the existing runtime
   check if the sneakiness doesn't work
   (changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
   which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)

 - The configure test for "extern long timezone" needlessly uses
   AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
   that latter works when cross-compiling
   (changes configure.ac)

 - MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
   or S_IFSOCK, nor S_ISUID etc
   (changes lib/udf/udf.c and lib/iso9660/xa.c)

 - MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
   of the Linux driver doesn't compile unless it's moved inside the
   "ifdef HAVE_LINUX_CDROM"
   (changes lib/driver/gnu_linux.c)

 - Because the man pages cd-info.1 etc depend on the binaries themselves
   (for help2man reasons), the configure options --without-cd-info etc
   don't actually stop them being compiled. Fixed by only depending on
   man pages for programs that are actually built, which also stops
   the installation of man pages of programs which aren't themselves
   installed
   (changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
karl
8deec6fcc9 gplv3+ 2008-04-22 15:29:11 +00:00
karl
aac7795576 gplv3+ 2008-04-21 18:30:19 +00:00
rocky
4b172d9cc2 netbsd.c: add more ops. Doc functions, bring more in line with other drivers. 2008-03-28 02:03:13 +00:00
rocky
70be01d454 cdio_have_xxx is now private. Add p1.bin to distribution. 2008-03-28 01:28:50 +00:00
rocky
0e463dfc0d Start NetBSD driver 2008-03-27 17:40:50 +00:00
rocky
9040ae06a9 cdio_private.h: Remove type mismatch warning on get_track_pregap_lba
when compiling image drivers.

nrg.c: initialize previously uninitialzied field. Bug found by Robert
       William Fuller.

cvs2cl_usermap: add esdead and karl

NEWS: try to track what's been happening.
2008-03-21 10:19:38 +00:00
edsdead
18f3a6f9a1 support cd-text 2008-03-21 08:06:36 +00:00
karl
3b90a7dda4 update Makefiles to GPLv3+ 2008-03-20 19:02:37 +00:00
edsdead
6808cccedb minor correction to prior commit 2008-03-20 08:14:40 +00:00
edsdead
c0034ec8e1 handle DAO in nrg_read_audio_sectors 2008-03-20 08:07:44 +00:00
edsdead
e4ecb61b05 get isrc from nrg files AND new API char * cdio_get_track_isrc(CdIo_t *,track_t); 2008-03-20 01:40:28 +00:00
edsdead
5223b29276 remove 272 byte offset that emulated 68 sample read offset in author's drive 2008-03-19 04:38:52 +00:00
rocky
51d9652c82 get_track_pregap_lba, get_track_pregap_lsn. Section on "CD-DA pregap" in libcdio manual.
All changes from Robert William Fuller.
2008-03-16 00:12:42 +00:00
rocky
aeadea40e4 Comment typo 2008-03-04 10:27:54 +00:00
rocky
2e34115075 Add checks for memory allocation failures. Patch from Mandriva folks by
Gustavo De Nardin via Vincent Danen. Originally for libcdio 0.78.2

See also https://savannah.gnu.org/patch/?6413
2008-02-08 08:53:32 +00:00
rocky
65e8f2ce29 get_media_changed is static and shouldn't be compiled unless we are on
FreeBSD.
2007-12-30 16:15:21 +00:00
rocky
d9469c2d77 Add get_media_changed method on FreeBSD for drives accessed via CAM (SCSI or ATAPICAM).
Patch thanks to Andriy Gapon.
2007-12-28 01:01:05 +00:00
rocky
ddf569dbea Apply kfreebsd patch from Debian. 2007-12-15 22:36:35 +00:00
rocky
8e48c0ad7f Run a Multimedia command (MMC) specifying the CDB length.
The motivation here is for example ot use in is an undocumented
debug command for LG drives (namely E7), whose length is being
miscalculated by mmc_get_cmd_len(); it doesn't follow the usual
code number to length conventions. Patch supplied by SukkoPera.
2007-11-21 03:01:58 +00:00
flameeyes
00b3c309ef Include config.h before checking for HAVE_JOLIET or it will never build the function. 2007-11-16 21:31:53 +00:00
rocky
40c531fed9 Remove := in Makefiles for portability.
autoconf 1.10 complains about adding AM_PROC_CC_C_O - pander to it.
2007-10-15 04:53:59 +00:00
rocky
eb8a5388ad Go over shared library revision numbers and NEWS in advance of a Oct 27 0.79 release. 2007-10-13 08:42:57 +00:00
flameeyes
bba9e0eb8b Workaround a missing callback, failures are called immediately, sucesses are queued and might not be called properly. 2007-08-11 12:28:25 +00:00
flameeyes
48751a50f3 Borrow the eject code for OSX from xine-lib-1.2-macos branch, as contributed
by Matt Messier. This allows to eject disks on Mac OS X without having to
call an external utility.

Incidentally this fixes libcdio eject function on Mac OS X 10.4 and later, as
hditool was moved from /usr/sbin to /usr/bin.
2007-08-09 02:19:40 +00:00
rocky
83c0d43b97 Small changes 2007-08-04 21:40:46 +00:00
rocky
4fc826a94a Update copyright and email address. 2007-05-27 15:02:13 +00:00
rocky
20759efb0f Fix bug in trying to free cd-text when it hasn't been initialized. 2007-05-27 14:59:23 +00:00
rocky
e52da6ef99 lib/driver/gnu_linux.c: bug #19221 (possibly): memory Leak opening an inaccessible device.
cdchange.c: a stray character got added to the file
2007-03-07 04:35:47 +00:00
rocky
07b1944cb6 Better strtol fix based on SMS's remark. 2007-03-05 11:49:24 +00:00
rocky
0dc4e4d5ae Set errno=0 before calling strtol(). bug #18131 2007-03-05 11:18:49 +00:00
rocky
9e24b5594f Update cdio_read documentation. 2007-02-25 15:58:31 +00:00
rocky
af4f23725b Patch by Gergely Szász to respect --disable-joliet.
(Things may change when UDF is more in use though.) Bug report #18522
2006-12-14 00:45:25 +00:00
gmerlin
e3be1cb109 * Fixed potential security issues 2006-11-28 12:14:16 +00:00