Commit Graph

429 Commits

Author SHA1 Message Date
R. Bernstein
2d3b7d28b4 Add SCSI-MMC GET CONFIGURATION.
Add Frank Endres' disc type determination via MMC.
Be more careful to suffix with CDIO_MMC which I hope will reduce possible name conflicts.
2010-02-07 21:04:21 -05:00
R. Bernstein
d3a0ba06e1 Move more towards making MMC a library. Start to reorganize more to
break out 1-1 SCSI-MMC commands (in mmc_ll_cmds.c) from higher-level
commands which use the lower-level ones.
2010-02-07 18:35:47 -05:00
R. Bernstein
f93e673fd5 lib/driver/mmc.c - DRY code. Warning - might have introduced breakage here
*mmc*: mmc_start_stop_media -> mmc_start_stop_unit,
 CDIO_MMC_GPCMD_START_STOP -> CDIO_MMC_GPCMD_START_STOP_UNIT
cdio++/mmc.hpp: Regularize Doxygen comment format.
2010-02-06 22:53:03 -05:00
R. Bernstein
1687e2633f Start to split off specific mmc commands from the lower-level internals. 2010-02-06 11:59:35 -05:00
R. Bernstein
b7ef82250e Assume nowadays Standard C is Standard C 2010-01-27 22:24:34 -05:00
R. Bernstein
9edd3db3d2 Better diagnostic messages for MS Window driver. 2010-01-23 21:59:43 -05:00
R. Bernstein
2b4a36f758 Remove more warnings. test/testnrg.c.in -> test/driver/nrg.c.in 2010-01-21 02:58:19 -05:00
R. Bernstein
273ba31e3a In 0.83git now. Fix minor leaks in libcdio 0.82 detected by cppcheck
via Eric Sesterhenn.
2009-10-27 21:00:51 -04:00
R. Bernstein
b2dda51f57 Ignore windows executables and stack dumps. 2009-10-21 12:47:50 -04:00
Nicolas Boullis
8e8b18e197 Remove all remaining uses of CDIO_MIN_DRIVER, CDIO_MAX_DRIVER, CDIO_MIN_DEVICE_DRIVER or CDIO_MAX_DEVICE_DRIVER. 2009-07-13 00:48:24 +02:00
R. Bernstein
b4e36da3e2 Removed cd-paranoia.c by accident. 2009-07-11 19:42:04 -04:00
R. Bernstein
5a0ab057c3 MOSTLYCLEANFILES subsumes MAINTAINERCLEANFILES. As Nicolas Boulis
points out, want only the latter.
2009-07-03 19:37:59 -04:00
R. Bernstein
2c804547f7 Merge branch 'master' of rocky@git.sv.gnu.org:/srv/git/libcdio 2009-07-02 20:29:48 -04:00
R. Bernstein
2522c26ec8 Adapted from patches by Nicolas Boullis on Debian:
* alignment issues on sparc
 * "make check" failure when stderr is not a tty
 * wrong program name in manpages in tarball
 * build failure with hurd
 * "make check" failure on machines with no disc drive
 * make distclean fixes
2009-07-02 20:26:39 -04:00
R. Bernstein
bc634ba342 Merge branch 'master' of rocky@git.sv.gnu.org:/srv/git/libcdio 2009-06-15 09:35:39 -04:00
R. Bernstein
7f8f0f806a Savannah bug #26808 - Multiple definitions of cddb_opts. Helps MinGW/MSys compilation. Patch courtesy of lrn. 2009-06-15 09:31:54 -04:00
rocky
cc08ce617f README.develop: add help2man. Rest - cosmetic changes 2009-05-16 23:01:39 -04:00
R. Bernstein
58d87158cf Add OS/2 driver courtesy of KO Myung-Hun. Security: Add "%s" to cdparanoia's fprintfs 2009-02-08 05:52:49 -05:00
R. Bernstein
37f248aa46 Fix manpage generation on platforms with non-empty EXEEXT,
and fix the VPATH build as well.
2008-12-28 23:11:29 -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
c02aa93af6 Nuke cddb disc ID if --no-cddb option is given. 2008-09-09 14:44:25 +00:00
rocky
1185f7d0f4 Allow compiling cd-info without cddb. Patch thanks to Fabrice Ménard. 2008-09-08 14:45:07 +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
82c7c09a97 Fixes for Mingw+MSYS and DLL support from Carlo Bramini
* configure.ac: Added AC_LIBTOOL_WIN32_DLL for enabling the creation of shared libraries.
* configure.ac: Added -I$(top_srcdir)/include to LIBCDIO_CFLAGS, it allows to build outside the source tree.
* configure.ac: Added LT_NO_UNDEFINED for adding '-no-undefined' switch to libtool when building win32 shared libraries.
* configure.ac: Check for Windows.h presence if under Mingw (included for using Sleep() function).
* configure.ac: Check for more missing functions: setenv(), unsetenv(), sleep(), gmtime_r(), localtime_r().

* example/cdchange.c: If sleep() function does not exist, it tries to emulate it with a similar code (require inclusion of Windows.h)

* src/cddb.c:
* lib/cdda_interface/scsi_interface.c: Compilation fails because u_int32_t is undefined. It has been changed to uint32_t to be compliant to all other parts of the libraries.
* lib/cdda_interface/Makefile.am:
* lib/iso9660/Makefile.am:
* lib/cdio++/Makefile.am:
* lib/paranoia/Makefile.am:
* lib/udf/Makefile.am:
* lib/driver/Makefile.am: added LT_NO_UNDEFINED to libtool flags.
* lib/iso9660/iso9660.c: Added replacements for setenv(), unsetenv(), gmtime_r\
(), localtime_r().
2008-06-25 08:01:53 +00:00
flameeyes
3685c0d78e Mark variables and constant as static in source tools, examples and tests. Also replace some char pointers with char arrays. 2008-06-19 15:44:10 +00:00
rocky
49defd1cdc restore tab which got lost in cut-and-past. -- A pox on "make".
Thanks to Steve Schultz again for keeping us (more) honest.
2008-04-26 15:16:06 +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
0e61f3de1a gplv3+ 2008-04-17 17:39:47 +00:00
karl
4f8b039943 gplv3+ 2008-04-14 17:30:26 +00:00
karl
431910a2c0 gplv3+ 2008-04-11 15:44:00 +00:00
karl
3b90a7dda4 update Makefiles to GPLv3+ 2008-03-20 19:02:37 +00:00
rocky
691d64e45b More libiconv escallation. Sigh. 2008-03-15 17:26:13 +00:00
rocky
7b32c1a3de Install pkgconfig files libudf.pc, libcdio++.pc and libiso9660++.pc. Distribute
manual pages for standalone utilities. Suggestions thanks to Nicolas Boullis.
2008-03-15 16:21:28 +00:00
rocky
b04b348e69 test/check_paranoia.sh.in: need to ignore variance in status. 2008-03-08 18:11:11 +00:00
rocky
b78955226e cd-read add --mode='any' which is basically a mmc_read_cd with
CDIO_MMC_READ_TYPE_ANY.
2008-03-06 01:16:49 +00:00
rocky
930f40bd25 Remove what looks like a spurious --output-info (-i) option. 2008-03-03 12:13:34 +00:00
rocky
5f10277136 Add option to cd-paranoia to log summary output to a file. Patch from and
thanks to Daniel Schwarz.
2008-02-29 11:34:15 +00:00
rocky
599b88fd14 Cast to integer because function it seems really might not be
paranoia_mode_t but seems augmented by to additional values below 0. Ugh.
2008-01-19 02:08:27 +00:00
rocky
1f8a5f9d54 cd-info.c iso-info.c More error-tolerant patch from Stanislav Brabec
at SuSE.

 iso9660.hpp: patch to compile libcdio with gcc 4.3 from
Cristian Rodriguez via Stanislav Brabec. Add return statement in
function returning non-void.

mmc-tool.c: remove out-of-bound array access.
2008-01-09 04:26:23 +00:00
rocky
27012a3603 Improper +1 on alloc. 2008-01-03 14:39:29 +00:00
rocky
5afb39d0c1 Remove possible buffer overrun when long joliet names are used.
Savannah Bug #21910.
2007-12-30 15:09:00 +00:00
flameeyes
07f4dffc71 Don't try to use a generic rule for building usage.h or it will fail make distcheck when builddir != srcdir 2007-11-17 11:58:27 +00:00
rocky
d03584ab42 Apparently cygwin's perl sometimes puts in \r's for linefeeds.
Patch from Gary Parks.
2007-11-09 01:25:04 +00:00
rocky
4227500560 Update copyright. 2007-10-21 21:57:09 +00:00
rocky
728ba72929 jp -> ja 2007-10-17 03:12:14 +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
256034ad7a Don't expect TOC reading to report audio mode if we are trying to rip prior to the very first track. And don't give an error here either. 2007-06-18 00:42:08 +00:00
rocky
92ecec76a7 CDDB disc id is an unsigned 32-bit integer, not long which could be
64-bits.
2007-06-16 20:12:16 +00:00
rocky
cd266bbd19 Rename Japan locale to ja. Bug #19880. 2007-05-16 10:00:50 +00:00
rocky
ce30f41003 More potential cdparanoia -> cd-paranoia changes. Note how this
differes from cdparanoia (i.e. not much).
2007-03-09 09:26:43 +00:00