xorriso
1.5.4.pl02
About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.
![]() ![]() |
Go to the source code of this file.
Data Structures | |
struct | Xorriso_lsT |
Macros | |
#define | Xorriso_pvt_auxobj_includeD yes |
Functions | |
int | Splitparts_new (struct SplitparT **o, int count, int flag) |
int | Splitparts_destroy (struct SplitparT **o, int count, int flag) |
int | Splitparts_set (struct SplitparT *o, int idx, char *name, int partno, int total_parts, off_t offset, off_t bytes, off_t total_bytes, int flag) |
int | Splitparts_get (struct SplitparT *o, int idx, char **name, int *partno, int *total_parts, off_t *offset, off_t *bytes, off_t *total_bytes, int flag) |
int | Splitpart__parse (char *name, int *partno, int *total_parts, off_t *offset, off_t *bytes, off_t *total_bytes, int flag) |
int | Splitpart__is_part_path (char *path, int flag) |
int | Splitpart__compose (char *adr, int partno, int total_parts, off_t offset, off_t bytes, off_t total_bytes, int flag) |
int | Splitpart__read_next_num (char *base_pt, char **next_pt, off_t *num, int flag) |
int | Splitparts_sort (struct SplitparT *o, int count, int flag) |
int | Dirseq_new (struct DirseQ **o, char *adr, int flag) |
int | Dirseq_destroy (struct DirseQ **o, int flag) |
int | Dirseq_next_adr (struct DirseQ *o, char reply[SfileadrL], int flag) |
int | Dirseq_rewind (struct DirseQ *o, int flag) |
int | Xorriso_lst_new_binary (struct Xorriso_lsT **lstring, char *data, int data_len, struct Xorriso_lsT *link, int flag) |
int | Xorriso_lst_new (struct Xorriso_lsT **lstring, char *text, struct Xorriso_lsT *link, int flag) |
int | Xorriso_lst_append_binary (struct Xorriso_lsT **entry, char *data, int data_len, int flag) |
int | Xorriso_lst_destroy (struct Xorriso_lsT **lstring, int flag) |
struct Xorriso_lsT * | Xorriso_lst_get_next (struct Xorriso_lsT *entry, int flag) |
struct Xorriso_lsT * | Xorriso_lst_get_prev (struct Xorriso_lsT *entry, int flag) |
char * | Xorriso_lst_get_text (struct Xorriso_lsT *entry, int flag) |
int | Xorriso_lst_detach_text (struct Xorriso_lsT *entry, int flag) |
int | Xorriso_lst_get_last (struct Xorriso_lsT *entry, struct Xorriso_lsT **last, int flag) |
int | Xorriso_lst_concat (struct Xorriso_lsT *first, struct Xorriso_lsT *second, int flag) |
int | Exclusions_new (struct ExclusionS **o, int flag) |
int | Exclusions_destroy (struct ExclusionS **o, int flag) |
int | Exclusions_get_descrs (struct ExclusionS *o, struct Xorriso_lsT **not_paths_descr, struct Xorriso_lsT **not_leafs_descr, int flag) |
int | Exclusions_match (struct ExclusionS *o, char *abs_path, int flag) |
int | Exclusions_add_not_leafs (struct ExclusionS *o, char *not_leafs_descr, regex_t *re, int flag) |
int | Exclusions_add_not_paths (struct ExclusionS *o, int descrc, char **descrs, int pathc, char **paths, int flag) |
int | Linkitem_new (struct LinkiteM **o, char *link_path, dev_t target_dev, ino_t target_ino, struct LinkiteM *next, int flag) |
int | Linkitem_destroy (struct LinkiteM **o, int flag) |
int | Linkitem_reset_stack (struct LinkiteM **o, struct LinkiteM *to, int flag) |
int | Linkitem_find (struct LinkiteM *stack, dev_t target_dev, ino_t target_ino, struct LinkiteM **result, int flag) |
int | Linkitem_get_link_count (struct LinkiteM *item, int flag) |
int | Permstack_push (struct PermiteM **o, char *disk_path, struct stat *stbuf, int flag) |
int | Permstack_pop (struct PermiteM **o, struct PermiteM *stopper, struct XorrisO *xorriso, int flag) |
#define Xorriso_pvt_auxobj_includeD yes |
Definition at line 25 of file aux_objects.h.
int Dirseq_destroy | ( | struct DirseQ ** | o, |
int | flag | ||
) |
Definition at line 336 of file aux_objects.c.
Referenced by Dirseq_new(), Xorriso_add_tree(), Xorriso_findx(), Xorriso_obtain_pattern_files_x(), Xorriso_rmx(), Xorriso_show_dux_subs(), and Xorriso_sorted_dir_x().
int Dirseq_new | ( | struct DirseQ ** | o, |
char * | adr, | ||
int | flag | ||
) |
Definition at line 291 of file aux_objects.c.
References DirseQ::adr, DirseQ::buffer, DirseQ::buffer_fill, DirseQ::buffer_rpt, DirseQ::buffer_size, DirseQ::count, DirseQ::dirpt, Dirseq_buffer_sizE, Dirseq_destroy(), DirseQ::next, Sfile_str(), and TSOB_FELD.
Referenced by Xorriso_add_tree(), Xorriso_findx(), Xorriso_obtain_pattern_files_x(), Xorriso_rmx(), Xorriso_show_dux_subs(), and Xorriso_sorted_dir_x().
int Dirseq_next_adr | ( | struct DirseQ * | o, |
char | reply[SfileadrL], | ||
int | flag | ||
) |
int Dirseq_rewind | ( | struct DirseQ * | o, |
int | flag | ||
) |
Definition at line 377 of file aux_objects.c.
References DirseQ::dirpt.
Referenced by Xorriso_show_dux_subs().
int Exclusions_add_not_leafs | ( | struct ExclusionS * | o, |
char * | not_leafs_descr, | ||
regex_t * | re, | ||
int | flag | ||
) |
Definition at line 764 of file aux_objects.c.
References ExclusionS::not_leafs, ExclusionS::not_leafs_descr, and Xorriso_lst_append_binary().
Referenced by Xorriso_option_not_leaf().
int Exclusions_add_not_paths | ( | struct ExclusionS * | o, |
int | descrc, | ||
char ** | descrs, | ||
int | pathc, | ||
char ** | paths, | ||
int | flag | ||
) |
Definition at line 730 of file aux_objects.c.
References Xorriso_lsT::next, ExclusionS::not_paths, ExclusionS::not_paths_descr, and Xorriso_lst_new().
Referenced by Xorriso_option_not_paths().
int Exclusions_destroy | ( | struct ExclusionS ** | o, |
int | flag | ||
) |
Definition at line 710 of file aux_objects.c.
References Xorriso_lsT::next, Xorriso_lsT::text, Xorriso_lst_destroy(), and Xorriso_lst_destroy_all().
Referenced by Xorriso_destroy(), and Xorriso_option_not_mgt().
int Exclusions_get_descrs | ( | struct ExclusionS * | o, |
struct Xorriso_lsT ** | not_paths_descr, | ||
struct Xorriso_lsT ** | not_leafs_descr, | ||
int | flag | ||
) |
Definition at line 836 of file aux_objects.c.
References ExclusionS::not_leafs_descr, and ExclusionS::not_paths_descr.
Referenced by Xorriso_status().
int Exclusions_match | ( | struct ExclusionS * | o, |
char * | abs_path, | ||
int | flag | ||
) |
Definition at line 783 of file aux_objects.c.
References Xorriso_lsT::next, ExclusionS::not_leafs, ExclusionS::not_paths, SfileadrL, and Xorriso_lsT::text.
Referenced by Xorriso_path_is_excluded(), and Xorriso_path_is_hidden().
int Exclusions_new | ( | struct ExclusionS ** | o, |
int | flag | ||
) |
Definition at line 695 of file aux_objects.c.
References ExclusionS::not_leafs, ExclusionS::not_leafs_descr, ExclusionS::not_paths, ExclusionS::not_paths_descr, and TSOB_FELD.
Referenced by Xorriso_new(), and Xorriso_option_not_mgt().
int Linkitem_destroy | ( | struct LinkiteM ** | o, |
int | flag | ||
) |
Definition at line 883 of file aux_objects.c.
Referenced by Linkitem_new(), and Linkitem_reset_stack().
int Linkitem_find | ( | struct LinkiteM * | stack, |
dev_t | target_dev, | ||
ino_t | target_ino, | ||
struct LinkiteM ** | result, | ||
int | flag | ||
) |
Definition at line 915 of file aux_objects.c.
References LinkiteM::next, LinkiteM::target_dev, and LinkiteM::target_ino.
Referenced by Xorriso_hop_link().
int Linkitem_get_link_count | ( | struct LinkiteM * | item, |
int | flag | ||
) |
Definition at line 930 of file aux_objects.c.
References LinkiteM::link_count.
Referenced by Xorriso_hop_link().
int Linkitem_new | ( | struct LinkiteM ** | o, |
char * | link_path, | ||
dev_t | target_dev, | ||
ino_t | target_ino, | ||
struct LinkiteM * | next, | ||
int | flag | ||
) |
Definition at line 859 of file aux_objects.c.
References LinkiteM::link_count, LinkiteM::link_path, Linkitem_destroy(), LinkiteM::next, LinkiteM::target_dev, LinkiteM::target_ino, and TSOB_FELD.
Referenced by Xorriso_hop_link().
Definition at line 895 of file aux_objects.c.
References Linkitem_destroy(), and LinkiteM::next.
Referenced by Xorriso_add_tree(), Xorriso_findx(), Xorriso_restore_tree(), and Xorriso_show_dux_subs().
int Permstack_pop | ( | struct PermiteM ** | o, |
struct PermiteM * | stopper, | ||
struct XorrisO * | xorriso, | ||
int | flag | ||
) |
Definition at line 975 of file aux_objects.c.
References PermiteM::disk_path, XorrisO::info_text, PermiteM::next, PermiteM::stbuf, Text_shellsafe(), and Xorriso_msgs_submit().
Referenced by Xorriso_handle_collision(), Xorriso_restore(), Xorriso_restore_make_hl(), Xorriso_restore_node_array(), Xorriso_restore_tree(), and Xorriso_rmx().
int Permstack_push | ( | struct PermiteM ** | o, |
char * | disk_path, | ||
struct stat * | stbuf, | ||
int | flag | ||
) |
Definition at line 946 of file aux_objects.c.
References PermiteM::disk_path, PermiteM::next, PermiteM::stbuf, and TSOB_FELD.
Referenced by Xorriso_auto_chmod(), and Xorriso_restore_properties().
int Splitpart__compose | ( | char * | adr, |
int | partno, | ||
int | total_parts, | ||
off_t | offset, | ||
off_t | bytes, | ||
off_t | total_bytes, | ||
int | flag | ||
) |
Definition at line 218 of file aux_objects.c.
References Sfile_off_t_text(), and Splitpart_wordS.
Referenced by Xorriso_graft_split(), and Xorriso_update_interpreter().
int Splitpart__is_part_path | ( | char * | path, |
int | flag | ||
) |
Definition at line 199 of file aux_objects.c.
References Splitpart__parse().
int Splitpart__parse | ( | char * | name, |
int * | partno, | ||
int * | total_parts, | ||
off_t * | offset, | ||
off_t * | bytes, | ||
off_t * | total_bytes, | ||
int | flag | ||
) |
Definition at line 153 of file aux_objects.c.
References Splitpart__read_next_num(), and Splitpart_wordS.
Referenced by Splitpart__is_part_path(), and Xorriso_identify_split().
int Splitpart__read_next_num | ( | char * | base_pt, |
char ** | next_pt, | ||
off_t * | num, | ||
int | flag | ||
) |
Definition at line 129 of file aux_objects.c.
References Scanf_io_size().
Referenced by Splitpart__parse().
int Splitparts_destroy | ( | struct SplitparT ** | o, |
int | count, | ||
int | flag | ||
) |
Definition at line 81 of file aux_objects.c.
Referenced by Xorriso_compare_2_files(), Xorriso_is_split(), Xorriso_restore_disk_object(), and Xorriso_update_interpreter().
int Splitparts_get | ( | struct SplitparT * | o, |
int | idx, | ||
char ** | name, | ||
int * | partno, | ||
int * | total_parts, | ||
off_t * | offset, | ||
off_t * | bytes, | ||
off_t * | total_bytes, | ||
int | flag | ||
) |
Definition at line 115 of file aux_objects.c.
References SplitparT::bytes, SplitparT::name, SplitparT::offset, SplitparT::partno, SplitparT::total_bytes, and SplitparT::total_parts.
Referenced by Xorriso_compare_2_files(), Xorriso_identify_split(), Xorriso_restore_disk_object(), and Xorriso_update_interpreter().
int Splitparts_new | ( | struct SplitparT ** | o, |
int | count, | ||
int | flag | ||
) |
Definition at line 62 of file aux_objects.c.
References TSOB_FELD.
Referenced by Xorriso_identify_split().
int Splitparts_set | ( | struct SplitparT * | o, |
int | idx, | ||
char * | name, | ||
int | partno, | ||
int | total_parts, | ||
off_t | offset, | ||
off_t | bytes, | ||
off_t | total_bytes, | ||
int | flag | ||
) |
Definition at line 97 of file aux_objects.c.
References SplitparT::bytes, SplitparT::name, SplitparT::offset, SplitparT::partno, SplitparT::total_bytes, and SplitparT::total_parts.
Referenced by Xorriso_identify_split().
int Splitparts_sort | ( | struct SplitparT * | o, |
int | count, | ||
int | flag | ||
) |
Definition at line 259 of file aux_objects.c.
References Splitparts_cmp().
Referenced by Xorriso_identify_split().
int Xorriso_lst_append_binary | ( | struct Xorriso_lsT ** | entry, |
char * | data, | ||
int | data_len, | ||
int | flag | ||
) |
Create a new list item at the end of a given list.
entry | Contains as input a pointer to a pointer to any existing list item. As output this list item pointer may be changed to the address of the new list item: if ((*entry == 0) || (flag & 1)) |
data | An array of bytes to be copied into the new object |
data_len | Number of bytes to be copied |
flag | Bitfield for control purposes bit0= Return new object address in *entry bit1= do not copy data (e.g. because *data is invalid) bit2= attach data directly by pointer rather than by copying |
Definition at line 609 of file aux_objects.c.
References Xorriso_lsT::next, and Xorriso_lst_new_binary().
Referenced by Exclusions_add_not_leafs(), Xorriso_external_filter(), Xorriso_option_map_l(), Xorriso_restore(), and Xorriso_write_to_msglist().
int Xorriso_lst_concat | ( | struct Xorriso_lsT * | first, |
struct Xorriso_lsT * | second, | ||
int | flag | ||
) |
Definition at line 659 of file aux_objects.c.
References Xorriso_lsT::next, Xorriso_lsT::prev, and Xorriso_lst_get_last().
Referenced by Xorriso_pull_outlists().
int Xorriso_lst_destroy | ( | struct Xorriso_lsT ** | lstring, |
int | flag | ||
) |
Destroy a single list item and connect its eventual list neighbors.
lstring | pointer to the pointer to be freed and set to NULL |
flag | unused yet, submit 0 |
Definition at line 571 of file aux_objects.c.
References Xorriso_lsT::next, Xorriso_lsT::prev, Smem_freE, and Xorriso_lsT::text.
Referenced by Exclusions_destroy(), Xorriso_destroy_all_extf(), Xorriso_dialog_input(), Xorriso_external_filter(), Xorriso_lst_destroy_all(), Xorriso_lst_new_binary(), and Xorriso_sieve_filter_msg().
int Xorriso_lst_detach_text | ( | struct Xorriso_lsT * | entry, |
int | flag | ||
) |
Definition at line 642 of file aux_objects.c.
References Xorriso_lsT::text.
Referenced by Xorriso_destroy_all_extf(), and Xorriso_external_filter().
int Xorriso_lst_get_last | ( | struct Xorriso_lsT * | entry, |
struct Xorriso_lsT ** | last, | ||
int | flag | ||
) |
Definition at line 649 of file aux_objects.c.
References Xorriso_lsT::next.
Referenced by Xorriso_lst_concat(), and Xorriso_status().
struct Xorriso_lsT* Xorriso_lst_get_next | ( | struct Xorriso_lsT * | entry, |
int | flag | ||
) |
Definition at line 624 of file aux_objects.c.
struct Xorriso_lsT* Xorriso_lst_get_prev | ( | struct Xorriso_lsT * | entry, |
int | flag | ||
) |
Definition at line 630 of file aux_objects.c.
char* Xorriso_lst_get_text | ( | struct Xorriso_lsT * | entry, |
int | flag | ||
) |
Definition at line 636 of file aux_objects.c.
int Xorriso_lst_new | ( | struct Xorriso_lsT ** | lstring, |
char * | text, | ||
struct Xorriso_lsT * | link, | ||
int | flag | ||
) |
Create a new list item with a 0-terminated text as content.
lstring | The newly created object or NULL on failure |
text | A 0-terminated array of bytes |
link | Xorriso_lsT object to which the new object shall be linked |
flag | see Xorriso_lst_new_binary |
Definition at line 557 of file aux_objects.c.
References Xorriso_lsT::text, and Xorriso_lst_new_binary().
Referenced by Exclusions_add_not_paths(), Xorriso_jigdo_interpreter(), Xorriso_msg_op_parse_bulk(), Xorriso_named_pipe_loop(), Xorriso_new(), Xorriso_option_drive_class(), Xorriso_option_setfattr_listi(), Xorriso_option_update(), and Xorriso_sieve_filter_msg().
int Xorriso_lst_new_binary | ( | struct Xorriso_lsT ** | lstring, |
char * | data, | ||
int | data_len, | ||
struct Xorriso_lsT * | link, | ||
int | flag | ||
) |
Create a new list item with arbitrary byte content.
lstring | The newly created object or NULL on failure |
data | An array of bytes to be copied into the new object |
data_len | Number of bytes to be copied |
link | Xorriso_lsT object to which the new object shall be linked |
flag | Bitfield for control purposes bit0= insert before link rather than after it bit1= do not copy data (e.g. because *data is invalid) bit2= attach data directly by pointer rather than by copying |
Definition at line 506 of file aux_objects.c.
References Xorriso_lsT::next, Xorriso_lsT::prev, Smem_malloC, Xorriso_lsT::text, TSOB_FELD, and Xorriso_lst_destroy().
Referenced by Xorriso_lst_append_binary(), and Xorriso_lst_new().