Eventually including ../config.h generated by autotools

This commit is contained in:
Thomas Schmitt 2010-05-16 09:07:42 +00:00
parent 9323cceff1
commit edca339338
30 changed files with 144 additions and 4 deletions

View File

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

View File

@ -23,6 +23,9 @@
#define Libburn_detach_done_workeR 1 #define Libburn_detach_done_workeR 1
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include "libburn.h" #include "libburn.h"
#include "transport.h" #include "transport.h"

View File

@ -10,6 +10,10 @@
cc -g -o cleanup -DCleanup_standalonE cleanup.c cc -g -o cleanup -DCleanup_standalonE cleanup.c
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <sys/types.h> #include <sys/types.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>

View File

@ -1,5 +1,9 @@
/* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */ /* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include "crc.h" #include "crc.h"
static unsigned short ccitt_table[256] = { static unsigned short ccitt_table[256] = {
@ -104,6 +108,15 @@ unsigned long crc32_table[256] = {
0x71C0FC00L, 0xE151FD01L, 0xE0E1FE01L, 0x7070FF00L 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_ccitt(unsigned char *q, int len)
{ {
unsigned short crc = 0; 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); crc = ccitt_table[(crc >> 8 ^ *q++) & 0xff] ^ (crc << 8);
return ~crc; 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_32(unsigned char *data, int len)
{ {
unsigned int crc = 0; unsigned int crc = 0;

View File

@ -22,6 +22,10 @@
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>

View File

@ -4,6 +4,10 @@
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#ifdef WIN32 #ifdef WIN32
#include <windows.h> #include <windows.h>

View File

@ -6,6 +6,10 @@
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -1,6 +1,10 @@
/* -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 8; -*- */ /* -*- 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 /* ts A91016 : libburn/ecma130ab.c is the replacement for old libburn/lec.c
Copyright 2009, Thomas Schmitt <scdbackup@gmx.net>, libburnia-project.org Copyright 2009, Thomas Schmitt <scdbackup@gmx.net>, libburnia-project.org

View File

@ -6,6 +6,10 @@
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
@ -399,9 +403,13 @@ int burn_fifo_source_shoveller(struct burn_source *source, int flag)
else else
ret = fs->inp->read_xt( fs->inp, ret = fs->inp->read_xt( fs->inp,
(unsigned char *) bufpt, fs->inp_read_size); (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 */ break; /* EOF */
else if (ret < 0) { } else if (ret < 0) {
libdax_msgs_submit(libdax_messenger, -1, 0x00020153, libdax_msgs_submit(libdax_messenger, -1, 0x00020153,
LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH, LIBDAX_MSGS_SEV_SORRY, LIBDAX_MSGS_PRIO_HIGH,
"Read error on fifo input", errno, 0); "Read error on fifo input", errno, 0);

View File

@ -5,6 +5,10 @@
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <unistd.h> #include <unistd.h>

View File

@ -4,6 +4,10 @@
Copyright (C) 2006 Thomas Schmitt <scdbackup@gmx.net>, provided under GPLv2+ Copyright (C) 2006 Thomas Schmitt <scdbackup@gmx.net>, provided under GPLv2+
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -5,6 +5,10 @@
provided under GPL version 2 or later. provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>

View File

@ -5,6 +5,10 @@
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
/* ts A61009 */ /* ts A61009 */
/* #include <a ssert.h> */ /* #include <a ssert.h> */

View File

@ -5,6 +5,10 @@
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include "null.h" #include "null.h"
#include "libburn.h" #include "libburn.h"
#include <stdlib.h> #include <stdlib.h>

View File

@ -4,6 +4,10 @@
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include "libburn.h" #include "libburn.h"
#include "options.h" #include "options.h"
#include "drive.h" #include "drive.h"

View File

@ -5,6 +5,10 @@
Provided under GPL version 2 or later. 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 */ /* #include <m alloc.h> ts A61013 : not in GNU/Linux man 3 malloc */

View File

@ -7,6 +7,9 @@
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View File

@ -5,6 +5,9 @@
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <stdio.h> #include <stdio.h>

View File

@ -5,6 +5,10 @@
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
/* /*

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 ------ */ /** PORTING : ------- OS dependent headers and definitions ------ */

View File

@ -5,6 +5,10 @@
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>

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 ------ */ /** PORTING : ------- OS dependent headers and definitions ------ */

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 ------ */ /** PORTING : ------- OS dependent headers and definitions ------ */

View File

@ -4,6 +4,11 @@
Copyright (C) 2009 Thomas Schmitt <scdbackup@gmx.net>, provided under GPLv2+ 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 #ifdef Libburn_use_libcdiO

View File

@ -5,6 +5,10 @@
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -5,9 +5,12 @@
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
/* scsi primary commands */ /* scsi primary commands */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -4,6 +4,10 @@
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
/* ts A61008 */ /* ts A61008 */
/* #include <a ssert.h> */ /* #include <a ssert.h> */

View File

@ -5,6 +5,10 @@
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
/* ts A61008 */ /* ts A61008 */
/* #include <a ssert.h> */ /* #include <a ssert.h> */

View File

@ -4,6 +4,10 @@
Provided under GPL version 2 or later. Provided under GPL version 2 or later.
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <string.h> #include <string.h>
/* ts A61008 */ /* ts A61008 */

View File

@ -6,6 +6,10 @@
*/ */
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>