home *** CD-ROM | disk | FTP | other *** search
/ Dream 49 / Amiga_Dream_49.iso / beos / utils / mkisofs-1.000 / mkisofs-1.11-beos / BeOS.diffs < prev    next >
Text File  |  1998-01-25  |  11KB  |  365 lines

  1. Only in .: 00-notes
  2. Only in .: BeOS.diffs
  3. Only in .: Makefile
  4. Only in ../mkisofs-1.11: cdwrite.c.diff
  5. Only in .: config.cache
  6. Only in .: config.h
  7. Only in .: config.log
  8. Only in .: config.status
  9. Only in ./diag: Makefile
  10. Only in .: eltorito.o
  11. Only in .: exclude.o
  12. Only in .: files.o
  13. diff -r -c -w -b ../mkisofs-1.11/fnmatch.c ./fnmatch.c
  14. *** ../mkisofs-1.11/fnmatch.c    Wed Apr  9 23:41:45 1997
  15. --- ./fnmatch.c    Sun Jan 25 15:42:00 1998
  16. ***************
  17. *** 17,30 ****
  18.   along with this program; if not, write to the Free Software
  19.   Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.   
  21. ! static char rcsid[] ="$Id: fnmatch.c,v 1.3 1997/03/22 02:53:13 eric Rel $";
  22.   
  23.   #ifdef HAVE_CONFIG_H
  24.   #include <config.h>
  25.   #endif
  26.   
  27.   #include <errno.h>
  28.   #include <fnmatch.h>
  29.   
  30.   #ifndef FNM_FILE_NAME
  31.   #define    FNM_FILE_NAME    FNM_PATHNAME /* Preferred GNU name.  */
  32. --- 17,34 ----
  33.   along with this program; if not, write to the Free Software
  34.   Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  35.   
  36. ! static char rcsid[] ="$Id: fnmatch.c,v 1.1 1998/01/25 20:40:38 chrish Exp chrish $";
  37.   
  38.   #ifdef HAVE_CONFIG_H
  39.   #include <config.h>
  40.   #endif
  41.   
  42.   #include <errno.h>
  43. + #ifndef __BEOS__
  44.   #include <fnmatch.h>
  45. + #else
  46. + #include "fnmatch.h"
  47. + #endif
  48.   
  49.   #ifndef FNM_FILE_NAME
  50.   #define    FNM_FILE_NAME    FNM_PATHNAME /* Preferred GNU name.  */
  51. Only in .: fnmatch.o
  52. Only in .: hash.o
  53. Only in .: match.o
  54. Only in .: mkisofs
  55. Only in .: mkisofs.8.ps
  56. Only in .: mkisofs.o
  57. diff -r -c -w -b ../mkisofs-1.11/multi.c ./multi.c
  58. *** ../mkisofs-1.11/multi.c    Wed Apr  9 23:41:48 1997
  59. --- ./multi.c    Sun Jan 25 15:42:22 1998
  60. ***************
  61. *** 19,25 ****
  62.    * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  
  63.    */
  64.   
  65. ! static char rcsid[] ="$Id: multi.c,v 1.4 1997/03/08 17:08:53 eric Rel $";
  66.   
  67.   #include <stdlib.h>
  68.   #include <string.h>
  69. --- 19,25 ----
  70.    * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  
  71.    */
  72.   
  73. ! static char rcsid[] ="$Id: multi.c,v 1.1 1998/01/25 20:38:07 chrish Exp chrish $";
  74.   
  75.   #include <stdlib.h>
  76.   #include <string.h>
  77. ***************
  78. *** 278,293 ****
  79.      * First, allocate a buffer large enough to read in the entire
  80.      * directory.
  81.      */
  82. !   dirbuff = (char *) e_malloc(isonum_733(mrootp->size));
  83.   
  84. !   readsecs(isonum_733(mrootp->extent), dirbuff,
  85. !        isonum_733(mrootp->size)/SECTOR_SIZE);
  86.   
  87.     /*
  88.      * Next look over the directory, and count up how many entries we
  89.      * have.
  90.      */
  91. !   len = isonum_733(mrootp->size);
  92.     i = 0;
  93.     *nent = 0;
  94.     while(i < len )
  95. --- 278,293 ----
  96.      * First, allocate a buffer large enough to read in the entire
  97.      * directory.
  98.      */
  99. !   dirbuff = (char *) e_malloc(isonum_733((unsigned char *)mrootp->size));
  100.   
  101. !   readsecs(isonum_733((unsigned char *)mrootp->extent), dirbuff,
  102. !        isonum_733((unsigned char *)mrootp->size)/SECTOR_SIZE);
  103.   
  104.     /*
  105.      * Next look over the directory, and count up how many entries we
  106.      * have.
  107.      */
  108. !   len = isonum_733((unsigned char *)mrootp->size);
  109.     i = 0;
  110.     *nent = 0;
  111.     while(i < len )
  112. ***************
  113. *** 329,336 ****
  114.         *pnt = (struct directory_entry *) e_malloc(sizeof(**rtn));
  115.         (*pnt)->next = NULL;
  116.         (*pnt)->isorec = *idr;
  117. !       (*pnt)->starting_block = isonum_733(idr->extent);
  118. !       (*pnt)->size = isonum_733(idr->size);
  119.         (*pnt)->priority = 0;
  120.         (*pnt)->name = NULL;
  121.         (*pnt)->table = NULL;
  122. --- 329,336 ----
  123.         *pnt = (struct directory_entry *) e_malloc(sizeof(**rtn));
  124.         (*pnt)->next = NULL;
  125.         (*pnt)->isorec = *idr;
  126. !       (*pnt)->starting_block = isonum_733((unsigned char *)idr->extent);
  127. !       (*pnt)->size = isonum_733((unsigned char *)idr->size);
  128.         (*pnt)->priority = 0;
  129.         (*pnt)->name = NULL;
  130.         (*pnt)->table = NULL;
  131. ***************
  132. *** 412,419 ****
  133.             free((*pnt)->name);
  134.           }
  135.         (*pnt)->name = strdup("<translation table>");
  136. !       tt_extent = isonum_733(idr->extent);
  137. !       tt_size = isonum_733(idr->size);
  138.       }
  139.         
  140.         pnt++;
  141. --- 412,419 ----
  142.             free((*pnt)->name);
  143.           }
  144.         (*pnt)->name = strdup("<translation table>");
  145. !       tt_extent = isonum_733((unsigned char *)idr->extent);
  146. !       tt_size = isonum_733((unsigned char *)idr->size);
  147.       }
  148.         
  149.         pnt++;
  150. ***************
  151. *** 680,686 ****
  152.         vdp = (struct iso_volume_descriptor *)buffer;
  153.   
  154.         if(    (strncmp(vdp->id, ISO_STANDARD_ID, sizeof vdp->id) == 0)
  155. !       && (isonum_711(vdp->type) == ISO_VD_PRIMARY) )
  156.       {
  157.         break;
  158.       }
  159. --- 680,686 ----
  160.         vdp = (struct iso_volume_descriptor *)buffer;
  161.   
  162.         if(    (strncmp(vdp->id, ISO_STANDARD_ID, sizeof vdp->id) == 0)
  163. !       && (isonum_711((unsigned char *)vdp->type) == ISO_VD_PRIMARY) )
  164.       {
  165.         break;
  166.       }
  167. ***************
  168. *** 697,704 ****
  169.     /*
  170.      * Check the blocksize of the image to make sure it is compatible.
  171.      */
  172. !   if(    (isonum_723 (pri->logical_block_size) != SECTOR_SIZE)
  173. !       || (isonum_723 (pri->volume_set_size) != 1) )
  174.       {
  175.         return NULL;
  176.       }
  177. --- 697,704 ----
  178.     /*
  179.      * Check the blocksize of the image to make sure it is compatible.
  180.      */
  181. !   if(    (isonum_723 ((unsigned char *)pri->logical_block_size) != SECTOR_SIZE)
  182. !       || (isonum_723 ((unsigned char *)pri->volume_set_size) != 1) )
  183.       {
  184.         return NULL;
  185.       }
  186. ***************
  187. *** 737,743 ****
  188.         if( pnt[i]->name != NULL
  189.         && strcmp(pnt[i]->name, "<translation table>") == 0 )
  190.       {
  191. !       ttbl_extent = isonum_733(pnt[i]->isorec.extent);
  192.         ttbl_index = i;
  193.         continue;
  194.       }
  195. --- 737,743 ----
  196.         if( pnt[i]->name != NULL
  197.         && strcmp(pnt[i]->name, "<translation table>") == 0 )
  198.       {
  199. !       ttbl_extent = isonum_733((unsigned char *)pnt[i]->isorec.extent);
  200.         ttbl_index = i;
  201.         continue;
  202.       }
  203. Only in .: multi.o
  204. Only in .: name.o
  205. diff -r -c -w -b ../mkisofs-1.11/rock.c ./rock.c
  206. *** ../mkisofs-1.11/rock.c    Wed Apr  9 23:41:49 1997
  207. --- ./rock.c    Sun Jan 25 15:37:50 1998
  208. ***************
  209. *** 19,25 ****
  210.      along with this program; if not, write to the Free Software
  211.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  212.   
  213. ! static char rcsid[] ="$Id: rock.c,v 1.2 1997/02/23 16:08:07 eric Rel $";
  214.   
  215.   #include <stdlib.h>
  216.   
  217. --- 19,25 ----
  218.      along with this program; if not, write to the Free Software
  219.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  220.   
  221. ! static char rcsid[] ="$Id: rock.c,v 1.1 1998/01/25 20:37:36 chrish Exp chrish $";
  222.   
  223.   #include <stdlib.h>
  224.   
  225. ***************
  226. *** 266,272 ****
  227.       int lenpos, lenval, j0, j1;
  228.       int nchar;
  229.       unsigned char * cpnt, *cpnt1;
  230. !     nchar = readlink(whole_name, symlink_buff, sizeof(symlink_buff));
  231.       symlink_buff[nchar < 0 ? 0 : nchar] = 0;
  232.       set_733(s_entry->isorec.size, 0);
  233.       cpnt = &symlink_buff[0];
  234. --- 266,272 ----
  235.       int lenpos, lenval, j0, j1;
  236.       int nchar;
  237.       unsigned char * cpnt, *cpnt1;
  238. !     nchar = readlink(whole_name, (char *)symlink_buff, sizeof(symlink_buff));
  239.       symlink_buff[nchar < 0 ? 0 : nchar] = 0;
  240.       set_733(s_entry->isorec.size, 0);
  241.       cpnt = &symlink_buff[0];
  242. Only in .: rock.o
  243. diff -r -c -w -b ../mkisofs-1.11/tree.c ./tree.c
  244. *** ../mkisofs-1.11/tree.c    Wed Apr  9 23:41:49 1997
  245. --- ./tree.c    Sun Jan 25 15:34:22 1998
  246. ***************
  247. *** 20,26 ****
  248.      along with this program; if not, write to the Free Software
  249.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  250.   
  251. ! static char rcsid[] ="$Id: tree.c,v 1.7 1997/03/25 03:55:28 eric Rel $";
  252.   
  253.   /* ADD_FILES changes made by Ross Biro biro@yggdrasil.com 2/23/95 */
  254.   
  255. --- 20,26 ----
  256.      along with this program; if not, write to the Free Software
  257.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  258.   
  259. ! static char rcsid[] ="$Id: tree.c,v 1.1 1998/01/25 20:34:15 chrish Exp chrish $";
  260.   
  261.   /* ADD_FILES changes made by Ross Biro biro@yggdrasil.com 2/23/95 */
  262.   
  263. ***************
  264. *** 1072,1078 ****
  265.               break;
  266.           case S_IFLNK:
  267.               nchar = readlink(whole_path, 
  268. !                      symlink_buff, 
  269.                        sizeof(symlink_buff));
  270.               symlink_buff[nchar < 0 ? 0 : nchar] = 0;
  271.               sprintf(buffer,"L\t%s\t%s\n",
  272. --- 1072,1078 ----
  273.               break;
  274.           case S_IFLNK:
  275.               nchar = readlink(whole_path, 
  276. !                      (char *)symlink_buff, 
  277.                        sizeof(symlink_buff));
  278.               symlink_buff[nchar < 0 ? 0 : nchar] = 0;
  279.               sprintf(buffer,"L\t%s\t%s\n",
  280. Only in .: tree.o
  281. diff -r -c -w -b ../mkisofs-1.11/write.c ./write.c
  282. *** ../mkisofs-1.11/write.c    Wed Apr  9 23:43:02 1997
  283. --- ./write.c    Sun Jan 25 16:10:34 1998
  284. ***************
  285. *** 19,28 ****
  286.      along with this program; if not, write to the Free Software
  287.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  288.   
  289. ! static char rcsid[] ="$Id: write.c,v 1.4 1997/04/10 03:33:25 eric Rel $";
  290.   
  291.   #include <string.h>
  292.   #include <stdlib.h>
  293.   #include "mkisofs.h"
  294.   #include "iso9660.h"
  295.   #include <time.h>
  296. --- 19,32 ----
  297.      along with this program; if not, write to the Free Software
  298.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  299.   
  300. ! static char rcsid[] ="$Id: write.c,v 1.1 1998/01/25 20:34:41 chrish Exp chrish $";
  301.   
  302.   #include <string.h>
  303.   #include <stdlib.h>
  304. + #ifdef __BEOS__
  305. + /* So we don't define NAME_MAX twice. */
  306. + #include <limits.h>
  307. + #endif
  308.   #include "mkisofs.h"
  309.   #include "iso9660.h"
  310.   #include <time.h>
  311. ***************
  312. *** 197,207 ****
  313. --- 201,222 ----
  314.   static void FDECL3(write_one_file, char *, filename, 
  315.              unsigned int, size, FILE *, outfile)
  316.   {
  317. + #ifndef __BEOS__
  318.        char          buffer[SECTOR_SIZE * NSECT];
  319. + #else
  320. +      char       * buffer;
  321. + #endif
  322.        FILE        * infile;
  323.        int          remain;
  324.        int          use;
  325.   
  326. + #ifdef __BEOS__
  327. +      buffer = (char *)malloc( SECTOR_SIZE * NSECT );
  328. +      if( buffer == NULL ) {
  329. +          fprintf( stderr, "ARGH, no memory for sector buffer\n" );
  330. +          exit( 1 );
  331. +      }
  332. + #endif
  333.   
  334.        if ((infile = fopen(filename, "rb")) == NULL) 
  335.        {
  336. ***************
  337. *** 248,253 ****
  338. --- 263,270 ----
  339.         remain -= use;
  340.        }
  341.        fclose(infile);
  342. +      free( buffer );
  343.   } /* write_one_file(... */
  344.   
  345.   static void FDECL1(write_files, FILE *, outfile)
  346. ***************
  347. *** 425,431 ****
  348.           * we don't end up scheduling the thing for writing
  349.           * either.
  350.           */
  351. !            if( isonum_733(s_entry->isorec.extent) != 0 )
  352.              {
  353.               continue;
  354.              }
  355. --- 442,448 ----
  356.           * we don't end up scheduling the thing for writing
  357.           * either.
  358.           */
  359. !            if( isonum_733((unsigned char *)s_entry->isorec.extent) != 0 )
  360.              {
  361.               continue;
  362.              }
  363. Only in .: write.o
  364.