Home | History | Annotate | Line # | Download | only in makefs
cd9660.h revision 1.14
      1  1.14  christos /*	$NetBSD: cd9660.h,v 1.14 2010/10/22 00:49:15 christos Exp $	*/
      2   1.1      fvdl 
      3   1.1      fvdl /*
      4   1.1      fvdl  * Copyright (c) 2005 Daniel Watt, Walter Deignan, Ryan Gabrys, Alan
      5   1.1      fvdl  * Perez-Rathke and Ram Vedam.  All rights reserved.
      6   1.1      fvdl  *
      7   1.1      fvdl  * This code was written by Daniel Watt, Walter Deignan, Ryan Gabrys,
      8   1.1      fvdl  * Alan Perez-Rathke and Ram Vedam.
      9   1.1      fvdl  *
     10   1.1      fvdl  * Redistribution and use in source and binary forms, with or
     11   1.1      fvdl  * without modification, are permitted provided that the following
     12   1.1      fvdl  * conditions are met:
     13   1.1      fvdl  * 1. Redistributions of source code must retain the above copyright
     14   1.1      fvdl  *    notice, this list of conditions and the following disclaimer.
     15   1.1      fvdl  * 2. Redistributions in binary form must reproduce the above
     16   1.1      fvdl  *    copyright notice, this list of conditions and the following
     17   1.1      fvdl  *    disclaimer in the documentation and/or other materials provided
     18   1.1      fvdl  *    with the distribution.
     19   1.1      fvdl  *
     20   1.1      fvdl  * THIS SOFTWARE IS PROVIDED BY DANIEL WATT, WALTER DEIGNAN, RYAN
     21   1.1      fvdl  * GABRYS, ALAN PEREZ-RATHKE AND RAM VEDAM ``AS IS'' AND ANY EXPRESS OR
     22   1.1      fvdl  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     23   1.5    dyoung  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     24   1.1      fvdl  * DISCLAIMED.  IN NO EVENT SHALL DANIEL WATT, WALTER DEIGNAN, RYAN
     25   1.1      fvdl  * GABRYS, ALAN PEREZ-RATHKE AND RAM VEDAM BE LIABLE FOR ANY DIRECT, INDIRECT,
     26   1.1      fvdl  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     27   1.1      fvdl  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
     28   1.1      fvdl  * USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
     29   1.1      fvdl  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     30   1.1      fvdl  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     31   1.1      fvdl  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
     32   1.1      fvdl  * OF SUCH DAMAGE.
     33   1.1      fvdl  */
     34   1.1      fvdl 
     35   1.1      fvdl #ifndef _MAKEFS_CD9660_H
     36   1.1      fvdl #define _MAKEFS_CD9660_H
     37   1.1      fvdl 
     38   1.2      fvdl #if HAVE_NBTOOL_CONFIG_H
     39   1.2      fvdl #include "nbtool_config.h"
     40   1.2      fvdl #endif
     41   1.2      fvdl 
     42   1.1      fvdl #include <assert.h>
     43   1.1      fvdl #include <errno.h>
     44   1.1      fvdl #include <fcntl.h>
     45   1.1      fvdl #include <stdarg.h>
     46   1.1      fvdl #include <stdio.h>
     47   1.1      fvdl #include <stdlib.h>
     48   1.1      fvdl #include <string.h>
     49   1.1      fvdl #include <unistd.h>
     50   1.1      fvdl #include <time.h>
     51   1.1      fvdl #include <limits.h>
     52   1.1      fvdl #include <sys/queue.h>
     53   1.1      fvdl #include <sys/param.h>
     54   1.1      fvdl 
     55   1.1      fvdl #include "makefs.h"
     56  1.10    dyoung #include "iso.h"
     57  1.10    dyoung #include "iso_rrip.h"
     58   1.1      fvdl #include "cd9660/cd9660_eltorito.h"
     59   1.1      fvdl 
     60   1.8    dyoung #ifdef DEBUG
     61   1.8    dyoung #define	INODE_WARNX(__x)	warnx __x
     62   1.8    dyoung #else /* DEBUG */
     63   1.8    dyoung #define	INODE_WARNX(__x)
     64   1.8    dyoung #endif /* DEBUG */
     65   1.1      fvdl 
     66   1.1      fvdl #define CD9660MAXPATH 4096
     67   1.1      fvdl 
     68   1.1      fvdl #define ISO_STRING_FILTER_NONE = 0x00
     69   1.1      fvdl #define ISO_STRING_FILTER_DCHARS = 0x01
     70   1.1      fvdl #define ISO_STRING_FILTER_ACHARS = 0x02
     71   1.1      fvdl 
     72   1.1      fvdl /*
     73   1.1      fvdl Extended preferences type, in the spirit of what makefs gives us (only ints)
     74   1.1      fvdl */
     75   1.1      fvdl typedef struct {
     76   1.1      fvdl 	const char  *shortName;		/* Short option */
     77   1.1      fvdl 	const char	*name;		/* option name */
     78   1.1      fvdl 	char		*value;		/* where to stuff the value */
     79   1.1      fvdl 	int		minLength;	/* minimum for value */
     80   1.1      fvdl 	int		maxLength;	/* maximum for value */
     81   1.1      fvdl 	const char	*desc;		/* option description */
     82   1.1      fvdl 	int		filterFlags;
     83   1.1      fvdl } string_option_t;
     84   1.1      fvdl 
     85   1.1      fvdl /******** STRUCTURES **********/
     86   1.1      fvdl 
     87   1.1      fvdl /*Defaults*/
     88   1.1      fvdl #define ISO_DEFAULT_VOLUMEID "MAKEFS_CD9660_IMAGE"
     89   1.1      fvdl #define ISO_DEFAULT_APPID "MAKEFS"
     90   1.1      fvdl #define ISO_DEFAULT_PUBLISHER "MAKEFS"
     91   1.1      fvdl #define ISO_DEFAULT_PREPARER "MAKEFS"
     92   1.1      fvdl 
     93   1.1      fvdl #define ISO_VOLUME_DESCRIPTOR_STANDARD_ID "CD001"
     94   1.1      fvdl #define ISO_VOLUME_DESCRIPTOR_BOOT 0
     95   1.1      fvdl #define ISO_VOLUME_DESCRIPTOR_PVD 1
     96   1.1      fvdl #define ISO_VOLUME_DESCRIPTOR_TERMINATOR 255
     97   1.1      fvdl 
     98   1.1      fvdl /*30 for name and extension, as well as version number and padding bit*/
     99   1.1      fvdl #define ISO_FILENAME_MAXLENGTH_BEFORE_VERSION 30
    100   1.1      fvdl #define ISO_FILENAME_MAXLENGTH	36
    101   1.1      fvdl #define ISO_FILENAME_MAXLENGTH_WITH_PADDING 37
    102   1.1      fvdl 
    103   1.1      fvdl #define ISO_FLAG_CLEAR 0x00
    104   1.1      fvdl #define ISO_FLAG_HIDDEN 0x01
    105   1.1      fvdl #define ISO_FLAG_DIRECTORY 0x02
    106   1.1      fvdl #define ISO_FLAG_ASSOCIATED 0x04
    107   1.1      fvdl #define ISO_FLAG_PERMISSIONS 0x08
    108   1.1      fvdl #define ISO_FLAG_RESERVED5 0x10
    109   1.1      fvdl #define ISO_FLAG_RESERVED6 0x20
    110   1.1      fvdl #define ISO_FLAG_FINAL_RECORD 0x40
    111   1.1      fvdl 
    112   1.1      fvdl #define ISO_PATHTABLE_ENTRY_BASESIZE 8
    113   1.1      fvdl 
    114   1.1      fvdl #define ISO_RRIP_DEFAULT_MOVE_DIR_NAME "RR_MOVED"
    115   1.1      fvdl #define RRIP_DEFAULT_MOVE_DIR_NAME ".rr_moved"
    116   1.1      fvdl 
    117   1.6    dyoung #define	CD9660_BLOCKS(__sector_size, __bytes)	\
    118   1.6    dyoung 	howmany((__bytes), (__sector_size))
    119   1.1      fvdl 
    120   1.4    dyoung #define CD9660_MEM_ALLOC_ERROR(_F)	\
    121   1.4    dyoung     err(EXIT_FAILURE, "%s, %s l. %d", _F, __FILE__, __LINE__)
    122   1.1      fvdl 
    123   1.1      fvdl #define CD9660_IS_COMMAND_ARG_DUAL(var,short,long)\
    124   1.1      fvdl 		(strcmp((var),(short)) == 0) || (strcmp((var),(long))==0)
    125   1.1      fvdl 
    126   1.1      fvdl #define CD9660_IS_COMMAND_ARG(var,arg)\
    127   1.1      fvdl 		(strcmp((var),(arg)) == 0)
    128   1.1      fvdl 
    129   1.1      fvdl #define CD9660_TYPE_FILE	0x01
    130   1.1      fvdl #define CD9660_TYPE_DIR		0x02
    131   1.1      fvdl #define CD9660_TYPE_DOT		0x04
    132   1.1      fvdl #define CD9660_TYPE_DOTDOT	0x08
    133  1.14  christos #define CD9660_TYPE_VIRTUAL	0x80
    134   1.1      fvdl 
    135  1.14  christos #define CD9660_INODE_HASH_SIZE	1024
    136  1.14  christos #define CD9660_SECTOR_SIZE	2048
    137   1.1      fvdl 
    138  1.14  christos #define CD9660_END_PADDING	150
    139   1.1      fvdl 
    140   1.1      fvdl /* Slight modification of the ISO structure in iso.h */
    141   1.1      fvdl typedef struct _iso_directory_record_cd9660 {
    142   1.3      fvdl 	u_char length			[ISODCL (1, 1)];	/* 711 */
    143   1.1      fvdl 	u_char ext_attr_length		[ISODCL (2, 2)];	/* 711 */
    144   1.3      fvdl 	u_char extent			[ISODCL (3, 10)];	/* 733 */
    145   1.3      fvdl 	u_char size			[ISODCL (11, 18)];	/* 733 */
    146   1.3      fvdl 	u_char date			[ISODCL (19, 25)];	/* 7 by 711 */
    147   1.3      fvdl 	u_char flags			[ISODCL (26, 26)];
    148   1.3      fvdl 	u_char file_unit_size		[ISODCL (27, 27)];	/* 711 */
    149   1.3      fvdl 	u_char interleave		[ISODCL (28, 28)];	/* 711 */
    150   1.1      fvdl 	u_char volume_sequence_number	[ISODCL (29, 32)];	/* 723 */
    151   1.3      fvdl 	u_char name_len			[ISODCL (33, 33)];	/* 711 */
    152   1.3      fvdl 	char name			[ISO_FILENAME_MAXLENGTH_WITH_PADDING];
    153   1.1      fvdl } iso_directory_record_cd9660;
    154   1.1      fvdl 
    155   1.1      fvdl /* TODO: Lots of optimization of this structure */
    156   1.1      fvdl typedef struct _cd9660node {
    157   1.1      fvdl 	u_char	type;/* Used internally */
    158   1.1      fvdl 	/* Tree structure */
    159   1.1      fvdl 	struct _cd9660node	*parent;	/* parent (NULL if root) */
    160   1.4    dyoung 	TAILQ_HEAD(cd9660_children_head, _cd9660node)	cn_children;
    161   1.4    dyoung 	TAILQ_ENTRY(_cd9660node)		cn_next_child;
    162   1.4    dyoung 
    163   1.1      fvdl 	struct _cd9660node *dot_record; /* For directories, used mainly in RRIP */
    164   1.1      fvdl 	struct _cd9660node *dot_dot_record;
    165   1.5    dyoung 
    166   1.1      fvdl 	fsnode		*node;		/* pointer to fsnode */
    167   1.1      fvdl 	struct _iso_directory_record_cd9660	*isoDirRecord;
    168   1.1      fvdl 	struct iso_extended_attributes	*isoExtAttributes;
    169   1.5    dyoung 
    170   1.1      fvdl 	/***** SIZE CALCULATION *****/
    171   1.1      fvdl 	/*already stored in isoDirRecord, but this is an int version, and will be
    172   1.1      fvdl 		copied to isoDirRecord on writing*/
    173   1.9    dyoung 	uint32_t fileDataSector;
    174   1.5    dyoung 
    175   1.1      fvdl 	/*
    176   1.1      fvdl 	 * same thing, though some notes:
    177   1.1      fvdl 	 * If a file, this is the file size
    178   1.1      fvdl 	 * If a directory, this is the size of all its children's
    179   1.1      fvdl 	 *	directory records
    180   1.1      fvdl 	 * plus necessary padding
    181   1.1      fvdl 	 */
    182   1.1      fvdl 	int64_t fileDataLength;
    183   1.1      fvdl 
    184   1.1      fvdl 	/*
    185   1.1      fvdl 	 * XXXfvdl sectors are int
    186   1.1      fvdl 	 */
    187   1.1      fvdl 	int fileSectorsUsed;
    188   1.1      fvdl 	int fileRecordSize;/*copy of a variable, int for quicker calculations*/
    189   1.5    dyoung 
    190   1.1      fvdl 	/* Old name, used for renaming - needs to be optimized but low priority */
    191   1.1      fvdl 	char o_name [ISO_FILENAME_MAXLENGTH_WITH_PADDING];
    192   1.1      fvdl 
    193   1.1      fvdl 	/***** SPACE RESERVED FOR EXTENSIONS *****/
    194   1.1      fvdl 	/* For memory efficiency's sake - we should move this to a separate struct
    195   1.1      fvdl 		and point to null if not needed */
    196   1.1      fvdl 	/* For Rock Ridge */
    197   1.1      fvdl 	struct _cd9660node *rr_real_parent, *rr_relocated;
    198   1.5    dyoung 
    199   1.1      fvdl 	int susp_entry_size;
    200   1.1      fvdl 	int susp_dot_entry_size;
    201   1.1      fvdl 	int susp_dot_dot_entry_size;
    202   1.1      fvdl 
    203   1.1      fvdl 	/* Continuation area stuff */
    204   1.1      fvdl 	int susp_entry_ce_start;
    205   1.1      fvdl 	int susp_dot_ce_start;
    206   1.1      fvdl 	int susp_dot_dot_ce_start;
    207   1.1      fvdl 
    208   1.1      fvdl 	int susp_entry_ce_length;
    209   1.1      fvdl 	int susp_dot_ce_length;
    210   1.1      fvdl 	int susp_dot_dot_ce_length;
    211   1.1      fvdl 
    212  1.13     bjh21 	/* Data to put at the end of the System Use field */
    213  1.13     bjh21 	int su_tail_size;
    214  1.13     bjh21 	char *su_tail_data;
    215  1.13     bjh21 
    216   1.1      fvdl 	/*** PATH TABLE STUFF ***/
    217   1.1      fvdl 	int level;			/*depth*/
    218   1.1      fvdl 	int ptnumber;
    219   1.1      fvdl 	struct _cd9660node *ptnext, *ptprev, *ptlast;
    220   1.1      fvdl 
    221   1.1      fvdl 	/* SUSP entries */
    222   1.4    dyoung 	TAILQ_HEAD(susp_linked_list, ISO_SUSP_ATTRIBUTES) head;
    223   1.1      fvdl } cd9660node;
    224   1.1      fvdl 
    225   1.1      fvdl typedef struct _path_table_entry
    226   1.1      fvdl {
    227   1.1      fvdl 	u_char length[ISODCL (1, 1)];
    228   1.1      fvdl 	u_char extended_attribute_length[ISODCL (2, 2)];
    229   1.1      fvdl 	u_char first_sector[ISODCL (3, 6)];
    230   1.1      fvdl 	u_char parent_number[ISODCL (7, 8)];
    231   1.1      fvdl 	u_char name[ISO_FILENAME_MAXLENGTH_WITH_PADDING];
    232   1.1      fvdl } path_table_entry;
    233   1.1      fvdl 
    234   1.1      fvdl typedef struct _volume_descriptor
    235   1.1      fvdl {
    236   1.1      fvdl 	u_char *volumeDescriptorData; /*ALWAYS 2048 bytes long*/
    237   1.1      fvdl 	int sector;
    238   1.1      fvdl 	struct _volume_descriptor *next;
    239   1.1      fvdl } volume_descriptor;
    240   1.1      fvdl 
    241   1.1      fvdl typedef struct _iso9660_disk {
    242   1.1      fvdl 	int sectorSize;
    243   1.1      fvdl 	struct iso_primary_descriptor		primaryDescriptor;
    244   1.1      fvdl 	struct iso_supplementary_descriptor	supplementaryDescriptor;
    245   1.5    dyoung 
    246   1.1      fvdl 	volume_descriptor *firstVolumeDescriptor;
    247   1.5    dyoung 
    248   1.1      fvdl 	cd9660node *rootNode;
    249   1.8    dyoung 
    250   1.1      fvdl 	const char *rootFilesystemPath;
    251   1.5    dyoung 
    252   1.1      fvdl 	/* Important sector numbers here */
    253   1.1      fvdl 	/* primaryDescriptor.type_l_path_table*/
    254   1.1      fvdl 	int primaryBigEndianTableSector;
    255   1.5    dyoung 
    256   1.1      fvdl 	/* primaryDescriptor.type_m_path_table*/
    257   1.1      fvdl 	int primaryLittleEndianTableSector;
    258   1.5    dyoung 
    259   1.1      fvdl 	/* primaryDescriptor.opt_type_l_path_table*/
    260   1.1      fvdl 	int secondaryBigEndianTableSector;
    261   1.5    dyoung 
    262   1.1      fvdl 	/* primaryDescriptor.opt_type_m_path_table*/
    263   1.1      fvdl 	int secondaryLittleEndianTableSector;
    264   1.5    dyoung 
    265   1.1      fvdl 	/* primaryDescriptor.path_table_size*/
    266   1.1      fvdl 	int pathTableLength;
    267   1.1      fvdl 	int dataFirstSector;
    268   1.5    dyoung 
    269   1.1      fvdl 	int totalSectors;
    270   1.1      fvdl 	/* OPTIONS GO HERE */
    271   1.1      fvdl 	int	isoLevel;
    272   1.5    dyoung 
    273   1.1      fvdl 	int include_padding_areas;
    274   1.5    dyoung 
    275   1.1      fvdl 	int follow_sym_links;
    276   1.1      fvdl 	int verbose_level;
    277   1.1      fvdl 	int displayHelp;
    278   1.1      fvdl 	int keep_bad_images;
    279   1.1      fvdl 
    280   1.1      fvdl 	/* SUSP options and variables */
    281   1.1      fvdl 	int susp_continuation_area_start_sector;
    282   1.1      fvdl 	int susp_continuation_area_size;
    283   1.1      fvdl 	int susp_continuation_area_current_free;
    284   1.1      fvdl 
    285   1.1      fvdl 	int rock_ridge_enabled;
    286   1.1      fvdl 	/* Other Rock Ridge Variables */
    287   1.1      fvdl 	char *rock_ridge_renamed_dir_name;
    288   1.1      fvdl 	int rock_ridge_move_count;
    289   1.1      fvdl 	cd9660node *rr_moved_dir;
    290   1.5    dyoung 
    291  1.13     bjh21 	int archimedes_enabled;
    292   1.5    dyoung 
    293   1.1      fvdl 	/* Spec breaking options */
    294   1.1      fvdl 	u_char allow_deep_trees;
    295   1.1      fvdl 	u_char allow_start_dot;
    296   1.1      fvdl 	u_char allow_max_name; /* Allow 37 char filenames*/
    297   1.1      fvdl 	u_char allow_illegal_chars; /* ~, !, # */
    298   1.1      fvdl 	u_char allow_lowercase;
    299   1.1      fvdl 	u_char allow_multidot;
    300   1.1      fvdl 	u_char omit_trailing_period;
    301   1.5    dyoung 
    302   1.1      fvdl 	/* BOOT INFORMATION HERE */
    303  1.11     skrll 	int has_generic_bootimage; /* Default to 0 */
    304  1.11     skrll 	char *generic_bootimage;
    305  1.11     skrll 
    306   1.1      fvdl 	int is_bootable;/* Default to 0 */
    307   1.1      fvdl 	int boot_catalog_sector;
    308   1.1      fvdl 	boot_volume_descriptor *boot_descriptor;
    309   1.1      fvdl 	char * boot_image_directory;
    310   1.5    dyoung 
    311   1.6    dyoung 	TAILQ_HEAD(boot_image_list,cd9660_boot_image) boot_images;
    312   1.7    dyoung 	int image_serialno;
    313   1.1      fvdl 	LIST_HEAD(boot_catalog_entries,boot_catalog_entry) boot_entries;
    314   1.5    dyoung 
    315   1.1      fvdl } iso9660_disk;
    316   1.1      fvdl 
    317   1.1      fvdl /******** GLOBAL VARIABLES ***********/
    318   1.1      fvdl extern iso9660_disk diskStructure;
    319   1.1      fvdl 
    320   1.1      fvdl /************ FUNCTIONS **************/
    321   1.1      fvdl int			cd9660_valid_a_chars(const char *);
    322   1.1      fvdl int			cd9660_valid_d_chars(const char *);
    323   1.1      fvdl void			cd9660_uppercase_characters(char *, int);
    324   1.1      fvdl 
    325   1.1      fvdl /* ISO Data Types */
    326   1.1      fvdl void			cd9660_721(uint16_t, unsigned char *);
    327   1.1      fvdl void			cd9660_731(uint32_t, unsigned char *);
    328   1.1      fvdl void			cd9660_722(uint16_t, unsigned char *);
    329   1.1      fvdl void			cd9660_732(uint32_t, unsigned char *);
    330   1.1      fvdl void 			cd9660_bothendian_dword(uint32_t dw, unsigned char *);
    331   1.1      fvdl void 			cd9660_bothendian_word(uint16_t dw, unsigned char *);
    332   1.1      fvdl void			cd9660_set_date(char *, time_t);
    333   1.1      fvdl void			cd9660_time_8426(unsigned char *, time_t);
    334   1.1      fvdl void			cd9660_time_915(unsigned char *, time_t);
    335   1.1      fvdl 
    336   1.1      fvdl /*** Boot Functions ***/
    337  1.11     skrll int	cd9660_write_generic_bootimage(FILE *);
    338  1.11     skrll int	cd9660_add_generic_bootimage(const char *);
    339   1.1      fvdl int	cd9660_write_boot(FILE *);
    340   1.1      fvdl int	cd9660_add_boot_disk(const char *);
    341   1.1      fvdl int	cd9660_eltorito_add_boot_option(const char *, const char *);
    342   1.1      fvdl int	cd9660_setup_boot(int);
    343  1.12   reinoud int	cd9660_setup_boot_volume_descriptor(volume_descriptor *);
    344   1.1      fvdl 
    345   1.1      fvdl 
    346   1.1      fvdl /*** Write Functions ***/
    347   1.1      fvdl int	cd9660_write_image(const char *image);
    348  1.14  christos int	cd9660_copy_file(FILE *, off_t, const char *);
    349   1.1      fvdl 
    350   1.1      fvdl void	cd9660_compute_full_filename(cd9660node *, char *, int);
    351   1.1      fvdl int	cd9660_compute_record_size(cd9660node *);
    352   1.1      fvdl 
    353   1.1      fvdl /* Debugging functions */
    354   1.1      fvdl void	debug_print_tree(cd9660node *,int);
    355   1.1      fvdl void	debug_print_path_tree(cd9660node *);
    356   1.1      fvdl void	debug_print_volume_descriptor_information(void);
    357   1.1      fvdl void	debug_dump_to_xml_ptentry(path_table_entry *,int, int);
    358  1.14  christos void	debug_dump_to_xml_path_table(FILE *, off_t, int, int);
    359   1.1      fvdl void	debug_dump_to_xml(FILE *);
    360   1.1      fvdl int	debug_get_encoded_number(unsigned char *, int);
    361   1.1      fvdl void	debug_dump_integer(const char *, char *,int);
    362   1.1      fvdl void	debug_dump_string(const char *,unsigned char *,int);
    363   1.1      fvdl void	debug_dump_directory_record_9_1(unsigned char *);
    364   1.1      fvdl void	debug_dump_to_xml_volume_descriptor(unsigned char *,int);
    365   1.1      fvdl 
    366   1.1      fvdl void	cd9660_pad_string_spaces(char *, int);
    367   1.1      fvdl 
    368   1.1      fvdl #endif
    369