Browse Source

Eventually including ../config.h generated by autotools

tags/ZeroEightTwo
Thomas Schmitt 10 years ago
parent
commit
edca339338
30 changed files with 144 additions and 4 deletions
  1. +1
    -1
      cdrskin/cdrskin_timestamp.h
  2. +3
    -0
      libburn/async.c
  3. +4
    -0
      libburn/cleanup.c
  4. +27
    -0
      libburn/crc.c
  5. +4
    -0
      libburn/ddlpa.c
  6. +4
    -0
      libburn/debug.c
  7. +4
    -0
      libburn/drive.c
  8. +4
    -0
      libburn/ecma130ab.c
  9. +10
    -2
      libburn/file.c
  10. +4
    -0
      libburn/init.c
  11. +4
    -0
      libburn/libdax_audioxtr.c
  12. +4
    -0
      libburn/libdax_msgs.c
  13. +4
    -0
      libburn/mmc.c
  14. +4
    -0
      libburn/null.c
  15. +4
    -0
      libburn/options.c
  16. +4
    -0
      libburn/read.c
  17. +3
    -0
      libburn/sbc.c
  18. +3
    -0
      libburn/sector.c
  19. +4
    -0
      libburn/sg-dummy.c
  20. +4
    -0
      libburn/sg-freebsd-port.c
  21. +4
    -0
      libburn/sg-freebsd.c
  22. +4
    -0
      libburn/sg-libcdio.c
  23. +4
    -0
      libburn/sg-linux.c
  24. +5
    -0
      libburn/sg.c
  25. +4
    -0
      libburn/source.c
  26. +4
    -1
      libburn/spc.c
  27. +4
    -0
      libburn/structure.c
  28. +4
    -0
      libburn/toc.c
  29. +4
    -0
      libburn/util.c
  30. +4
    -0
      libburn/write.c

+ 1
- 1
cdrskin/cdrskin_timestamp.h View File

@@ -1 +1 @@
#define Cdrskin_timestamP "2010.05.01.082808"
#define Cdrskin_timestamP "2010.05.16.090624"

+ 3
- 0
libburn/async.c View File

@@ -23,6 +23,9 @@
#define Libburn_detach_done_workeR 1
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include "libburn.h"
#include "transport.h"


+ 4
- 0
libburn/cleanup.c View File

@@ -10,6 +10,10 @@
cc -g -o cleanup -DCleanup_standalonE cleanup.c
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>


+ 27
- 0
libburn/crc.c View File

@@ -1,5 +1,9 @@
/* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include "crc.h"

static unsigned short ccitt_table[256] = {
@@ -104,6 +108,15 @@ unsigned long crc32_table[256] = {
0x71C0FC00L, 0xE151FD01L, 0xE0E1FE01L, 0x7070FF00L
};


/* Exploration ts B00214 :
ECMA-130, 22.3.6 "CRC field"
Generating polynomial: x^16 + x^12 + x^5 + 1
Also known as CRC-16-CCITT, CRC-CCITT

Use in libburn for raw write modes in sector.c.
There is also disabled code in read.c which would use it.
*/
unsigned short crc_ccitt(unsigned char *q, int len)
{
unsigned short crc = 0;
@@ -112,6 +125,20 @@ unsigned short crc_ccitt(unsigned char *q, int len)
crc = ccitt_table[(crc >> 8 ^ *q++) & 0xff] ^ (crc << 8);
return ~crc;
}


/* Exploration ts B00214 :
ECMA-130, 14.3 "EDC field"
"The EDC codeword must be divisible by the check polynomial:
P(x) = (x^16 + x^15 + x^2 + 1) . (x^16 + x^2 + x + 1)
"

>>> Test whether this coincides with CRC-32 IEEE 802.3
x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10
+ x^8 + x^7 + x^5 + x^4 + x^2 + x + 1

Used for raw writing in sector.c
*/
unsigned int crc_32(unsigned char *data, int len)
{
unsigned int crc = 0;


+ 4
- 0
libburn/ddlpa.c View File

@@ -22,6 +22,10 @@

*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>


+ 4
- 0
libburn/debug.c View File

@@ -4,6 +4,10 @@
Provided under GPL version 2 or later.
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif


#ifdef WIN32
#include <windows.h>


+ 4
- 0
libburn/drive.c View File

@@ -6,6 +6,10 @@
*/


#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include <sys/types.h>
#include <sys/stat.h>



+ 4
- 0
libburn/ecma130ab.c View File

@@ -1,6 +1,10 @@

/* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

/* ts A91016 : libburn/ecma130ab.c is the replacement for old libburn/lec.c

Copyright 2009, Thomas Schmitt <scdbackup@gmx.net>, libburnia-project.org


+ 10
- 2
libburn/file.c View File

@@ -6,6 +6,10 @@
*/


#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif


#include <stdlib.h>
#include <sys/types.h>
@@ -399,9 +403,13 @@ int burn_fifo_source_shoveller(struct burn_source *source, int flag)
else
ret = fs->inp->read_xt( fs->inp,
(unsigned char *) bufpt, fs->inp_read_size);
if (ret == 0)
if (ret == 0) {

/* >>> ??? ts B00326 */
/* >>> report EOF of fifo input and fs->in_counter */;

break; /* EOF */
else if (ret < 0) {
} else if (ret < 0) {
libdax_msgs_submit(libdax_messenger, -1, 0x00020153,
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
"Read error on fifo input", errno, 0);


+ 4
- 0
libburn/init.c View File

@@ -5,6 +5,10 @@
Provided under GPL version 2 or later.
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif


#include <unistd.h>



+ 4
- 0
libburn/libdax_audioxtr.c View File

@@ -4,6 +4,10 @@
Copyright (C) 2006 Thomas Schmitt <scdbackup@gmx.net>, provided under GPLv2+
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>


+ 4
- 0
libburn/libdax_msgs.c View File

@@ -5,6 +5,10 @@
provided under GPL version 2 or later.
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>


+ 4
- 0
libburn/mmc.c View File

@@ -5,6 +5,10 @@
Provided under GPL version 2 or later.
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif


/* ts A61009 */
/* #include <a ssert.h> */


+ 4
- 0
libburn/null.c View File

@@ -5,6 +5,10 @@
*/


#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include "null.h"
#include "libburn.h"
#include <stdlib.h>


+ 4
- 0
libburn/options.c View File

@@ -4,6 +4,10 @@
Provided under GPL version 2 or later.
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include "libburn.h"
#include "options.h"
#include "drive.h"


+ 4
- 0
libburn/read.c View File

@@ -5,6 +5,10 @@
Provided under GPL version 2 or later.
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif


/* #include <m alloc.h> ts A61013 : not in GNU/Linux man 3 malloc */



+ 3
- 0
libburn/sbc.c View File

@@ -7,6 +7,9 @@
Provided under GPL version 2 or later.
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include <string.h>
#include <unistd.h>


+ 3
- 0
libburn/sector.c View File

@@ -5,6 +5,9 @@
Provided under GPL version 2 or later.
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include <stdio.h>



+ 4
- 0
libburn/sg-dummy.c View File

@@ -5,6 +5,10 @@
Provided under GPL version 2 or later.
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif


/*



+ 4
- 0
libburn/sg-freebsd-port.c View File

@@ -95,6 +95,10 @@ Send feedback to libburn-hackers@pykix.org .

*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif


/** PORTING : ------- OS dependent headers and definitions ------ */



+ 4
- 0
libburn/sg-freebsd.c View File

@@ -5,6 +5,10 @@
Provided under GPL version 2 or later.
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include <errno.h>
#include <unistd.h>
#include <stdio.h>


+ 4
- 0
libburn/sg-libcdio.c View File

@@ -94,6 +94,10 @@ Send feedback to libburn-hackers@pykix.org .

*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif


/** PORTING : ------- OS dependent headers and definitions ------ */



+ 4
- 0
libburn/sg-linux.c View File

@@ -104,6 +104,10 @@ Hint: You should also look into sg-freebsd-port.c, which is a younger and

*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif


/** PORTING : ------- OS dependent headers and definitions ------ */



+ 5
- 0
libburn/sg.c View File

@@ -4,6 +4,11 @@
Copyright (C) 2009 Thomas Schmitt <scdbackup@gmx.net>, provided under GPLv2+
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#undef HAVE_CONFIG_H
#endif


#ifdef Libburn_use_libcdiO



+ 4
- 0
libburn/source.c View File

@@ -5,6 +5,10 @@
Provided under GPL version 2 or later.
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif


#include <stdlib.h>
#include <string.h>


+ 4
- 1
libburn/spc.c View File

@@ -5,9 +5,12 @@
Provided under GPL version 2 or later.
*/


/* scsi primary commands */

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>


+ 4
- 0
libburn/structure.c View File

@@ -4,6 +4,10 @@
Provided under GPL version 2 or later.
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

/* ts A61008 */
/* #include <a ssert.h> */



+ 4
- 0
libburn/toc.c View File

@@ -5,6 +5,10 @@
*/


#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

/* ts A61008 */
/* #include <a ssert.h> */



+ 4
- 0
libburn/util.c View File

@@ -4,6 +4,10 @@
Provided under GPL version 2 or later.
*/

#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include <string.h>

/* ts A61008 */


+ 4
- 0
libburn/write.c View File

@@ -6,6 +6,10 @@
*/


#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif

#include <unistd.h>
#include <signal.h>



Loading…
Cancel
Save