13 #include "../config.h"
17 #include <sys/types.h>
32 #ifdef Xorriso_with_readlinE
33 #define Xorriso_with_line_editoR
35 #ifdef Xorriso_with_editlinE
36 #define Xorriso_with_line_editoR
41 char *tile_blocks,
int flag)
43 int ret, blocks= -1, tiles= -1, to_default= 0;
45 sscanf(num_tiles,
"%d", &tiles);
46 sscanf(tile_blocks,
"%d", &blocks);
47 if(strcmp(num_tiles,
"default") == 0 || num_tiles[0] == 0)
49 if(strcmp(tile_blocks,
"default") == 0 || tile_blocks[0] == 0)
78 if(strcmp(in_adr,
"-")==0)
79 adr=
"stdio:/dev/fd/1";
80 if(strncmp(adr,
"stdio:", 6)==0) {
81 if(strlen(adr)==6 || strcmp(adr,
"stdio:/")==0 ||
82 strcmp(adr,
"stdio:.")==0 || strcmp(adr,
"stdio:..")==0 ||
83 strcmp(adr,
"stdio:-")==0) {
85 "No suitable path given by device address '%s'", adr);
93 "%s: Image changes pending. -commit or -rollback first",
94 (flag&2) ?
"-dev" :
"-indev");
98 if((flag&1) && (xorriso->
in_drive_handle != NULL || adr[0]) && !(flag&4)) {
100 "eventually discard the current image", 0);
108 sprintf(xorriso->
info_text,
"Giving up -dev ");
110 sprintf(xorriso->
info_text,
"Giving up -indev ");
116 sprintf(xorriso->
info_text,
"Giving up -outdev ");
123 (flag & (3 | 32 | 64)) | (((flag & (8 | 16)) >> 1)));
142 "-devices: Image changes pending. -commit or -rollback first");
147 "eventually discard the current image", 0);
153 sprintf(xorriso->
info_text,
"Gave up -dev ");
158 sprintf(xorriso->
info_text,
"Gave up -indev ");
163 sprintf(xorriso->
info_text,
"Gave up -outdev ");
178 if(strcmp(mode,
"on") == 0 || strcmp(mode,
"multi_line") == 0)
180 else if(strcmp(mode,
"single_line") == 0)
182 else if(strcmp(mode,
"off") == 0)
185 sprintf(xorriso->
info_text,
"-dialog: unknown mode '%s'", mode);
196 if(strcmp(mode,
"on") == 0)
198 else if(strcmp(mode,
"ino_only") == 0)
199 xorriso->
do_aaip|= 16 | 32 | 64 | 128;
200 else if(strcmp(mode,
"off") == 0)
201 xorriso->
do_aaip &= ~(16 | 32 | 64 | 128);
203 sprintf(xorriso->
info_text,
"-disk_dev_ino: unknown mode '%s'", mode);
214 if(strcmp(mode,
"off")==0)
216 else if(strcmp(mode,
"on")==0)
218 else if(strcmp(mode,
"ls")==0)
221 sprintf(xorriso->
info_text,
"-disk_pattern: unknown mode '%s'", mode);
233 int displacement_sign= 1, l;
237 if(value[0] ==
'-') {
238 displacement_sign= -1;
240 }
else if(value[0] ==
'+')
244 if(cpt[l - 1] <
'0' || cpt[l - 1] >
'9')
246 if(num < 0.0 || num > 4294967295.0) {
248 "-displacement: too large or too small: '%s'", value);
253 displacement_sign= 0;
267 for(cpt= mode; npt != NULL; cpt= npt+1) {
268 npt= strchr(cpt,
':');
273 if(l == 0 && mode[0] != 0)
275 if(strncmp(cpt,
"shared", l) == 0 && l == 6) {
277 }
else if(strncmp(cpt,
"exclusive", l) == 0 && l == 9) {
279 }
else if(strncmp(cpt,
"readonly", l) == 0 && l == 8) {
281 }
else if(strncmp(cpt,
"unrestricted", l) == 0 && l == 12) {
285 sprintf(xorriso->
info_text,
"-drive_access: unknown mode '");
299 char *d_class,
char *pattern,
int flag)
303 if(strcmp(d_class,
"banned") == 0) {
306 }
else if(strcmp(d_class,
"caution") == 0) {
309 }
else if (strcmp(d_class,
"harmless") == 0) {
312 }
else if (strcmp(d_class,
"clear_list") == 0) {
313 if(strcmp(pattern,
"banned") == 0)
315 else if(strcmp(pattern,
"caution") == 0)
317 else if(strcmp(pattern,
"harmless") == 0)
319 else if(strcmp(pattern,
"all") == 0) {
324 sprintf(xorriso->
info_text,
"-drive_class clear : unknown class '%s'",
331 sprintf(xorriso->
info_text,
"-drive_class: unknown class '%s'", d_class);
342 xorriso->
do_dummy= !!strcmp(mode,
"off");
352 if(strcmp(obs,
"default") == 0)
356 if(num != 0 && num != 32768 && num != 65536) {
358 "-dvd_obs : Bad size. Acceptable are 0, 32k, 64k");
371 if(strcmp(mode,
"on") == 0)
373 else if(strcmp(mode,
"off") == 0)
375 else if(strcmp(mode,
"appendable_wo") == 0)
378 sprintf(xorriso->
info_text,
"-early_stdio_test: unknown mode '%s'", mode);
389 if(strcmp(mode,
"unmapped") == 0)
391 else if(strcmp(mode,
"stripped") == 0)
393 else if(strcmp(mode,
"uppercase") == 0)
395 else if(strcmp(mode,
"lowercase") == 0)
398 sprintf(xorriso->
info_text,
"-ecma119_map: unknown mode '%s'", mode);
413 if(strncmp(which,
"in",2)==0)
415 else if(strncmp(which,
"out",3)==0)
421 "-eject: Image changes pending. -commit or -rollback first");
440 char *cmd, *which_will;
443 cmd=
"-rollback_end";
448 which_will=
"end the program discarding image changes";
450 which_will=
"commit image changes and then end the program";
452 which_will=
"end the program";
479 char *mode,
char *path,
int flag)
484 if(path[0]==0 || path[0]==
'-') {
487 fp= fopen(path,
"a");
489 sprintf(xorriso->
info_text,
"-errfile_log: Cannot open file ");
496 if(strcmp(mode,
"marked")==0)
498 else if(strcmp(mode,
"plain")==0)
501 sprintf(xorriso->
info_text,
"-errfile_log: Unknown mode ");
525 char *occasion,
char *behavior,
int flag)
527 if(strcmp(occasion,
"image_loading")==0) {
528 if(strcmp(behavior,
"best_effort")==0)
530 else if(strcmp(behavior,
"failure")==0 || strcmp(behavior,
"FAILURE")==0)
532 else if(strcmp(behavior,
"fatal")==0 || strcmp(behavior,
"FATAL")==0)
537 "-error_behavior: with '%s': unknown behavior '%s'",
542 }
else if(strcmp(occasion,
"file_extraction")==0) {
543 if(strcmp(behavior,
"best_effort")==0)
545 else if(strcmp(behavior,
"keep")==0)
547 else if(strcmp(behavior,
"delete")==0)
550 goto unknown_behavior;
552 sprintf(xorriso->
info_text,
"-error_behavior: unknown occasion '%s'",
563 int argc,
char **argv,
int *idx,
int flag)
565 int ret, start_idx, end_idx;
570 if(end_idx - start_idx < 3) {
572 "-external_filter : Not enough parameters given. Needed: name options path %s",
578 argv[start_idx + 1], argv[start_idx + 2],
579 end_idx - start_idx - 3, argv + start_idx + 3, 0);
591 char *disk_path,
int flag)
593 int ret, problem_count;
594 char *eff_origin= NULL, *eff_dest= NULL, *ipth, *eopt[1], *edpt[1];
601 "-extract: image-to-disk copies are not enabled by option -osirrox");
611 if(disk_path[0]==0) {
612 sprintf(xorriso->
info_text,
"-extract: Empty disk_path given");
627 (flag & 32 ? 33 : 0));
632 if(ret <= 0 || problem_count > 0)
636 sprintf(xorriso->
info_text,
"Extracted from ISO image: %s '%s'='%s'\n",
637 (ret>1 ?
"directory" :
"file"), eff_origin, eff_dest);
642 if(!(flag & (4 | 32)))
652 char *disk_dir_path,
int flag)
658 "-extract_boot_images: image-to-disk copies are not enabled by option -osirrox"
670 char *start,
char *count,
char *disk_path,
int flag)
674 off_t startbyte, bytecount;
677 if(num<0 || num > 1.0e18) {
679 "-extract_cut: startbyte address negative or much too large (%s)",
686 if(num<=0 || num > 1.0e18) {
688 "-extract_cut: bytecount zero, negative or much too large (%s)",
695 "-extract_cut from %s , byte %.f to %.f, and store as %s",
696 iso_rr_path, (
double) startbyte, (
double) (startbyte+bytecount),
701 startbyte, bytecount, 0);
710 int ret, sub_flag= 0;
716 if(num < 64 || num > 255) {
718 "-file_name_limit: Value '%s' out of range [64..255]", value);
731 int argc,
char **argv,
int *idx,
int flag)
739 if(*idx + 1 == end_idx && strcmp(argv[*idx],
"off") == 0) {
743 for(i= *idx; i < end_idx; i++)
746 sprintf(xorriso->
info_text,
"-file_size_limit: values sum up to %.f",
754 if((xorriso->
file_size_limit >= ((off_t) 4) * (off_t) (1024 * 1024 * 1024) ||
759 "-file_size_limit of at least 4 GiB causes ISO level 3",
765 sprintf(xorriso->
info_text,
"-file_size_limit now at %.f\n",
768 sprintf(xorriso->
info_text,
"-file_size_limit now off\n");
776 char *space_name,
int flag)
778 if(strcmp(space_name,
"rockridge") == 0)
780 else if(strcmp(space_name,
"joliet") == 0)
782 else if(strcmp(space_name,
"ecma119") == 0 ||
783 strcmp(space_name,
"iso9660") == 0)
785 else if(strcmp(space_name,
"hfsplus") == 0)
787 sprintf(xorriso->
info_text,
"-find: Unknown output namespace identifier");
793 char **namept,
int flag)
801 "-find[ix]: cannot truncate constant -name to -file_name_limit: ");
821 int ret, i, end_idx, type= 0, action, deleter= 0, start_lba, count;
822 int list_extattr_head= 0, bsl_mem, disk_path, name_space;
823 struct FindjoB *job, *first_job= NULL, *new_job;
824 char *
start_path, *path= NULL, *cpt, *other_path_start= NULL, *cd_pt;
825 char *access_acl_text= NULL, *default_acl_text= NULL, *list_extattr_mode;
826 char *arg1_pt, *namept;
828 struct stat dir_stbuf;
832 mode_t mode_or= 0, mode_and= ~1;
840 list_extattr_mode=
"e";
841 if(end_idx > *idx && start_path[0]!=0)
842 start_path= argv[*idx];
851 for(i= *idx+1; i<end_idx; i++) {
853 if(strcmp(argv[i],
"-name")==0) {
855 not_enough_arguments:;
857 "-find[ix]: not enough parameters with test ");
867 sprintf(xorriso->
info_text,
"-find[ix]: cannot set -name expression ");
871 }
else if(strcmp(argv[i],
"-wholename")==0) {
873 goto not_enough_arguments;
881 "-find[ix]: cannot set -wholename expression ");
885 }
else if(strcmp(argv[i],
"-type")==0) {
887 goto not_enough_arguments;
891 sprintf(xorriso->
info_text,
"-find[ix]: unknown -type '%c'",argv[i][0]);
894 }
else if(strcmp(argv[i],
"-damaged")==0) {
896 }
else if(strcmp(argv[i],
"-undamaged")==0) {
898 }
else if(strcmp(argv[i],
"-lba_range")==0) {
900 goto not_enough_arguments;
904 sscanf(argv[i-1],
"%d", &start_lba);
905 sscanf(argv[i],
"%d", &count);
907 }
else if(strcmp(argv[i],
"-pending_data")==0) {
909 }
else if(strcmp(argv[i],
"-has_acl")==0) {
911 }
else if(strcmp(argv[i],
"-has_no_acl")==0) {
913 }
else if(strcmp(argv[i],
"-has_xattr")==0) {
915 }
else if(strcmp(argv[i],
"-has_any_xattr")==0) {
917 }
else if(strcmp(argv[i],
"-has_no_xattr")==0) {
919 }
else if(strcmp(argv[i],
"-has_aaip")==0) {
921 }
else if(strcmp(argv[i],
"-has_no_aaip")==0) {
923 }
else if(strcmp(argv[i],
"-has_filter")==0) {
925 }
else if(strcmp(argv[i],
"-has_no_filter")==0) {
927 }
else if(strcmp(argv[i],
"-has_md5")==0) {
929 }
else if(strcmp(argv[i],
"-disk_name")==0 ||
930 strcmp(argv[i],
"-disk_path")==0) {
931 disk_path= (strcmp(argv[i],
"-disk_path") == 0);
933 goto not_enough_arguments;
946 "-find[ix]: cannot set %s ",
947 disk_path ?
"-disk_path address" :
"-disk_name expression");
951 }
else if(strcmp(argv[i],
"-hidden")==0) {
953 goto not_enough_arguments;
957 sprintf(xorriso->
info_text,
"-findi: -hidden : unknown hide state ");
963 sprintf(xorriso->
info_text,
"-findi: cannot setup -hidden test");
967 }
else if(strcmp(argv[i],
"-has_hfs_crtp")==0) {
969 goto not_enough_arguments;
972 argv[i - 1], argv[i], 3);
977 sprintf(xorriso->
info_text,
"-findi: cannot setup -has_hfs_crtp test");
980 }
else if(strcmp(argv[i],
"-has_hfs_bless")==0) {
982 goto not_enough_arguments;
986 sprintf(xorriso->
info_text,
"-findi: cannot setup -has_hfs_bless test");
989 }
else if(strcmp(argv[i],
"-bad_outname")==0) {
991 goto not_enough_arguments;
995 ret= 0;
goto sorry_ex;
999 sprintf(xorriso->
info_text,
"-findi: cannot setup -bad_outname test");
1002 }
else if(strcmp(argv[i],
"-true") == 0) {
1006 }
else if(strcmp(argv[i],
"-false") == 0) {
1010 }
else if(strcmp(argv[i],
"-decision") == 0) {
1012 goto not_enough_arguments;
1017 }
else if(strcmp(argv[i],
"-prune") == 0) {
1021 }
else if(strcmp(argv[i],
"-sub") == 0 || strcmp(argv[i],
"(") == 0) {
1025 }
else if(strcmp(argv[i],
"-subend") == 0 || strcmp(argv[i],
")") == 0) {
1029 }
else if(strcmp(argv[i],
"-not") == 0 || strcmp(argv[i],
"!") == 0) {
1033 }
else if(strcmp(argv[i],
"-and") == 0 || strcmp(argv[i],
"-a") == 0) {
1037 }
else if(strcmp(argv[i],
"-or") == 0 || strcmp(argv[i],
"-o") == 0) {
1041 }
else if(strcmp(argv[i],
"-if") == 0) {
1045 }
else if(strcmp(argv[i],
"-then") == 0) {
1049 }
else if(strcmp(argv[i],
"-else") == 0) {
1053 }
else if(strcmp(argv[i],
"-elseif") == 0) {
1057 }
else if(strcmp(argv[i],
"-endif") == 0) {
1061 }
else if(strcmp(argv[i],
"-sort_lba") == 0) {
1067 }
else if(strcmp(argv[i],
"-use_pattern") == 0 ||
1068 strcmp(argv[i],
"-or_use_pattern") == 0) {
1069 if(i + 1 >= end_idx)
1070 goto not_enough_arguments;
1073 22 + (strcmp(argv[i - 1],
"-or_use_pattern") == 0),
1077 }
else if(strcmp(argv[i],
"-name_limit_blocker") == 0) {
1078 if(i + 1 >= end_idx)
1079 goto not_enough_arguments;
1081 sscanf(argv[i],
"%d", &count);
1082 if(count < 64 || count > 255) {
1084 "-findi: wrong length with -name_limit_blocker [64...255]");
1090 }
else if(strcmp(argv[i],
"-maxdepth") == 0 ||
1091 strcmp(argv[i],
"-mindepth") == 0) {
1092 if(i + 1 >= end_idx)
1093 goto not_enough_arguments;
1096 sscanf(argv[i],
"%d", &count);
1099 "-findi: wrong length with %s [>= 0]", argv[i - 1]);
1103 25 + (strcmp(argv[i - 1],
"-mindepth") == 0),
1107 }
else if(strcmp(argv[i],
"-exec")==0) {
1109 not_enough_exec_arguments:;
1111 "-find[ix]: not enough parameters with -exec ");
1119 if(strcmp(cpt,
"echo")==0) {
1121 }
else if(strcmp(cpt,
"rm")==0) {
1124 }
else if(strcmp(cpt,
"rm_r")==0) {
1130 }
else if(strcmp(cpt,
"mv")==0) {
1132 goto not_enough_exec_arguments;
1137 }
else if(strcmp(cpt,
"chown")==0 || strcmp(cpt,
"chown_r")==0) {
1139 goto not_enough_exec_arguments;
1149 }
else if(strcmp(cpt,
"chgrp")==0 || strcmp(cpt,
"chgrp_r")==0) {
1151 goto not_enough_exec_arguments;
1161 }
else if(strcmp(cpt,
"chmod")==0 || strcmp(cpt,
"chmod_r")==0) {
1163 goto not_enough_exec_arguments;
1166 argv[i], &mode_and, &mode_or, 0);
1174 }
else if(strcmp(cpt,
"alter_date")==0 || strcmp(cpt,
"alter_date_r")==0){
1176 goto not_enough_exec_arguments;
1179 argv[i-1], argv[i], &type, &date, 0);
1188 }
else if(strcmp(cpt,
"set_to_mtime") == 0) {
1191 }
else if(strcmp(cpt,
"lsdl")==0) {
1194 }
else if(strcmp(cpt,
"find")==0) {
1203 }
else if(strcmp(cpt,
"compare")==0 || strcmp(cpt,
"update")==0 ||
1204 strcmp(cpt,
"widen_hardlinks")==0 ||
1205 strcmp(cpt,
"update_merge")==0) {
1207 goto not_enough_exec_arguments;
1210 if(strcmp(cpt,
"update")==0)
1212 else if(strcmp(cpt,
"widen_hardlinks")==0)
1214 else if(strcmp(cpt,
"update_merge") == 0) {
1221 other_path_start, 1|2|4|8);
1234 }
else if(strcmp(cpt,
"in_iso")==0 ||
1235 strcmp(cpt,
"not_in_iso")==0 ||
1236 strcmp(cpt,
"add_missing")==0 ||
1237 strcmp(cpt,
"empty_iso_dir")==0 ||
1238 strcmp(cpt,
"is_full_in_iso")==0) {
1240 goto not_enough_exec_arguments;
1243 other_path_start, 1|2|4);
1246 if(strcmp(cpt,
"in_iso")==0)
1248 else if(strcmp(cpt,
"add_missing")==0)
1250 else if(strcmp(cpt,
"empty_iso_dir")==0)
1252 else if(strcmp(cpt,
"is_full_in_iso")==0)
1263 }
else if(strcmp(cpt,
"report_damage")==0) {
1265 }
else if(strcmp(cpt,
"report_lba")==0) {
1267 }
else if(strcmp(cpt,
"getfacl")==0) {
1269 }
else if(strcmp(cpt,
"setfacl")==0) {
1271 goto not_enough_exec_arguments;
1274 &access_acl_text, &default_acl_text, 0);
1279 }
else if(strcmp(cpt,
"getfattr")==0) {
1281 }
else if(strcmp(cpt,
"setfattr")==0) {
1282 if(i + 2 >= end_idx)
1283 goto not_enough_exec_arguments;
1287 strlen(argv[i]), argv[i], 1);
1291 }
else if(strcmp(cpt,
"set_filter")==0) {
1292 if(i + 1 >= end_idx)
1293 goto not_enough_exec_arguments;
1300 }
else if(strcmp(cpt,
"show_stream")==0) {
1302 }
else if(strcmp(cpt,
"get_any_xattr")==0) {
1304 }
else if(strcmp(cpt,
"get_md5")==0) {
1306 }
else if(strcmp(cpt,
"check_md5")==0) {
1307 if(i + 1 >= end_idx)
1308 goto not_enough_exec_arguments;
1318 }
else if(strcmp(cpt,
"make_md5")==0) {
1325 }
else if(strcmp(cpt,
"mkisofs_r")==0) {
1327 }
else if(strcmp(cpt,
"sort_weight")==0) {
1328 if(i + 1 >= end_idx)
1329 goto not_enough_exec_arguments;
1331 sscanf(argv[i],
"%d", &type);
1333 }
else if(strcmp(cpt,
"hide")==0) {
1335 goto not_enough_exec_arguments;
1339 sprintf(xorriso->
info_text,
"-find -exec hide: unknown hide state ");
1344 }
else if(strcmp(cpt,
"estimate_size")==0) {
1346 }
else if(strcmp(cpt,
"rm_merge")==0) {
1349 }
else if(strcmp(cpt,
"clear_merge")==0) {
1352 }
else if(strcmp(cpt,
"list_extattr")==0) {
1354 goto not_enough_exec_arguments;
1357 list_extattr_head= 1;
1358 list_extattr_mode= argv[i];
1359 }
else if(strcmp(cpt,
"set_hfs_crtp")==0) {
1360 if(i + 2 >= end_idx)
1361 goto not_enough_exec_arguments;
1365 argv[i - 1], argv[i], 1);
1369 }
else if(strcmp(cpt,
"get_hfs_crtp")==0) {
1371 }
else if(strcmp(cpt,
"set_hfs_bless")==0) {
1373 goto not_enough_exec_arguments;
1380 }
else if(strcmp(cpt,
"get_hfs_bless")==0) {
1382 }
else if(strcmp(cpt,
"print_outname")==0) {
1384 goto not_enough_exec_arguments;
1387 if(name_space < 0) {
1388 ret= 0;
goto sorry_ex;
1391 }
else if(strcmp(cpt,
"report_sections")==0) {
1393 }
else if(strcmp(cpt,
"show_stream_id") == 0) {
1396 sprintf(xorriso->
info_text,
"-find -exec: unknown action ");
1401 sprintf(xorriso->
info_text,
"-find[ix]: unknown option ");
1408 if(list_extattr_head) {
1410 "# Output of xorriso %s action list_extattr\n",
1411 (flag & 1) ?
"-findx" :
"-find");
1414 if(start_path[0] ==
'/')
1417 cd_pt= (flag & 1) ? xorriso->
wdx : xorriso->
wdi;
1421 list_extattr_mode, 0);
1432 sprintf(xorriso->
result_line,
"c=\"setextattr\"\n\n");
1436 ret=
Xorriso_findx(xorriso, first_job,
"", start_path, &dir_stbuf, 0, NULL,
1442 ret=
Xorriso_findi(xorriso, first_job, NULL, (off_t) 0, NULL,
1443 start_path, &dir_stbuf, 0, (flag&4)>>1);
1445 if(deleter && !(flag&2))
1448 else if(first_job != NULL && first_job->
action == 28 && !(flag&2))
1454 if(first_job != NULL && first_job->
action == 35 && !(flag & 1))
1456 if(first_job != NULL && first_job->
action == 40) {
1457 sprintf(xorriso->
result_line,
"Size lower : %lus\n",
1460 sprintf(xorriso->
result_line,
"Size upper : %lus\n",
1465 if(access_acl_text != NULL)
1466 free(access_acl_text);
1467 if(default_acl_text != NULL)
1468 free(default_acl_text);
1469 if(ret > 0 && (flag & 16) && first_job != NULL)
1482 int was_fl, was_fm, was_fpr, was_fpt, was_fc, l;
1497 for(cpt= mode; npt!=NULL; cpt= npt+1) {
1498 npt= strchr(cpt,
':');
1505 if(strncmp(cpt,
"off", l)==0) {
1511 }
else if(strncmp(cpt,
"on", l)==0) {
1517 }
else if(strncmp(cpt,
"default", l)==0) {
1524 }
else if(strncmp(cpt,
"link", l)==0 || strncmp(cpt,
"links", l)==0) {
1526 }
else if(strncmp(cpt,
"mount", l)==0) {
1528 }
else if(strncmp(cpt,
"param", l)==0) {
1530 }
else if(strncmp(cpt,
"pattern", l)==0) {
1532 }
else if(strncmp(cpt,
"concat", l)==0) {
1534 }
else if(strncmp(cpt,
"limit=", 6)==0) {
1535 sscanf(cpt+6,
"%lf", &num);
1536 if(num<=0 || num>1.0e6) {
1537 sprintf(xorriso->
info_text,
"-follow: Value too %s with '%s'",
1538 num<=0 ?
"small" :
"large", cpt+6);
1545 sprintf(xorriso->
info_text,
"-follow: unknown mode '%s'", cpt);
1547 sprintf(xorriso->
info_text,
"-follow: oversized mode parameter (%d)",l);
1568 if(num < 64*1024 || num > 1024.0 * 1024.0 * 1024.0) {
1569 sprintf(xorriso->
info_text,
"-fs: wrong size %.f (allowed: %.f - %.f)",
1570 num, 64.0 * 1024.0, 1024.0 * 1024.0 * 1024.0);
1574 xorriso->
fs= num / 2048.0;
1575 if(xorriso->
fs * 2048 < num)
1589 int argc,
char **argv,
int *idx,
int flag)
1591 int i, ret, was_failure= 0, end_idx, fret;
1595 struct stat dir_stbuf;
1597 ret=
Xorriso_opt_args(xorriso,
"-getfacl", argc, argv, *idx, &end_idx, &optc,
1601 for(i= 0; i<optc; i++) {
1613 NULL, optv[i], &dir_stbuf, 0, 0);
1637 return(!was_failure);
1647 if(gid[0]==0 || strcmp(gid,
"-")==0)
1662 if(msc2[0]==0 || msc2[0]==
'-' || strcmp(msc2,
"off")==0) {
1668 if(msc2[l-1]<
'0' || msc2[l-1]>
'9')
1679 char *what_data= NULL, *what, *what_next;
1684 "-hardlinks: mode string is much too long (%d)",
1685 (
int) strlen(mode));
1689 for(what= what_data; what != NULL; what= what_next) {
1690 what_next= strchr(what,
':');
1691 if(what_next != NULL) {
1695 if(strcmp(what,
"off") == 0) {
1699 }
else if(strcmp(what,
"on") == 0) {
1701 }
else if(strcmp(what,
"without_update") == 0) {
1705 }
else if(strcmp(what,
"start_update") == 0) {
1710 }
else if(strcmp(what,
"end_update") == 0) {
1712 }
else if(strcmp(what,
"perform_update") == 0) {
1714 }
else if(strcmp(what,
"start_extract") == 0) {
1719 }
else if(strcmp(what,
"end_extract") == 0) {
1721 }
else if(strcmp(what,
"discard_extract") == 0) {
1723 }
else if(strcmp(what,
"normal_extract") == 0) {
1725 }
else if(strcmp(what,
"cheap_sorted_extract") == 0) {
1727 }
else if(strcmp(what,
"lsl_count") == 0) {
1729 }
else if(strcmp(what,
"no_lsl_count") == 0) {
1732 sprintf(xorriso->
info_text,
"-hardlinks: unknown mode '%s' in '%s'",
1760 static char text[][80]={
1762 #ifdef Xorriso_no_helP
1764 "This binary program does not contain a help text.",
1765 "If available, read: man 1 xorriso",
1769 "This program creates, loads, manipulates and writes ISO 9660 filesystem",
1770 "images with Rock Ridge extensions. Write targets can be drives with optical",
1771 "media or local filesystem objects.",
1772 "The program operations are controlled by a sequence of commands, of which",
1773 "the initial ones are given as program arguments or as lines in startup",
1774 "files. Further commands may get read from files in batch mode or from",
1775 "standard input in dialog mode.",
1777 " -x Only in effect if given as program argument:",
1778 " Execute commands given as program arguments in a sequence",
1779 " that most likely makes some sense. Default is to execute",
1780 " program arguments exactly in the sequence as given.",
1782 "Preparation commands:",
1783 "Drive addresses are either /dev/... as listed with command -devices or",
1784 "disk files, eventually with prefix \"stdio:\" if non-CD-drive in /dev tree.",
1785 "E.g. /dev/sr0 , /tmp/pseudo_drive , stdio:/dev/sdc",
1786 " -dev address Set input and output drive and load eventual ISO image.",
1787 " Set the image expansion method to growing.",
1788 " -indev address Set input drive and load eventual ISO image. Use expansion",
1789 " methods modifying or blind growing.",
1791 " Set output drive and use modifying or blind growing.",
1792 " -drive_class \"harmless\"|\"banned\"|\"risky\"|\"clear_list\" disk_pattern",
1793 " Add a drive path pattern to one of the safety lists or make",
1794 " those lists empty. Defaulty entry in \"risky\" is \"/dev\".",
1795 " -drive_access \"exclusive\"|\"shared\":\"unrestricted\"|\"readonly\"",
1796 " Enable or disable device file locking mechanisms.",
1797 " Enable or disable status and content changes of drive.",
1798 " -scsi_dev_family \"default\"|\"sr\"|\"scd\"|\"sg\"",
1799 " Linux specific: Choose device file type.",
1800 " -read_speed number[\"k/s\"|\"[x]CD\"|\"[x]DVD\"|\"[x]BD\"]|keyword",
1801 " Set the read speed. Default is \"none\" = do not set speed",
1802 " before reading. Prefix \"soft_force:\" enables slowdown by",
1804 " -grow_blindly \"off\"|predicted_nwa",
1805 " Switch between modifying and blind growing.",
1806 " -load \"session\"|\"track\"|\"lba\"|\"sbsector\"|\"volid\"|\"auto\" id",
1807 " Load a particular (outdated) ISO session from a -dev or",
1808 " -indev which hosts more than one session.",
1809 " -displacement [-]block_address",
1810 " When loading ISO tree or reading data files compensate a",
1811 " displacement versus the start address for which the image",
1813 " -read_fs \"any\"|\"norock\"|\"nojoliet\"|\"ecma119\"",
1814 " Specify which kind of filesystem tree to load if present.",
1815 " -rom_toc_scan \"on\"|\"force\"|\"off\"[:\"emul_on\"|\"emul_off\"]",
1816 " [:\"emul_wide\"|\"emul_narrow\"]",
1817 " Enable scanning for ISO sessions on read-only drives/media",
1818 " and on overwritable media with emulated TOC.",
1819 " -calm_drive \"in\"|\"out\"|\"all\"|\"on\"|\"off\"",
1820 " Reduce drive noise until it gets actually used again.",
1821 " -assert_volid pattern severity",
1822 " Accept input image only if its volume id matches pattern.",
1823 " -charset name Set the character set name to be used for file name",
1824 " conversion from and to media.",
1825 " -in_charset name",
1826 " Like -charset but only for conversion from media.",
1827 " -auto_charset \"on\"|\"off\"",
1828 " Enable writing and reading of character set name in image.",
1829 " -out_charset name",
1830 " Like -charset but only for conversion to media.",
1831 " -local_charset name",
1832 " Override system assumption of the local character set name.",
1833 " -hardlinks mode[:mode ...]",
1834 " Enable or disable recording and restoring of hard links.",
1835 " Modes are \"on\", \"off\", \"perform_update\",",
1836 " \"without_update\", \"discard_extract\",",
1837 " \"cheap_sorted_extract\", \"normal_extract\"",
1838 " -acl \"on\"|\"off\"",
1839 " Enable or disable reading and writing of ACLs.",
1840 " -xattr \"on\"|\"user\"|\"any\"|\"off\"",
1841 " Enable or disable reading and writing of xattr.",
1842 " -md5 \"on\"|\"all\"|\"off\"",
1843 " Enable or disable processing of MD5 checksums.",
1845 " Shortcut for: -hardlinks on -acl on -xattr any -md5 on",
1846 " -ecma119_map \"unmapped\"|\"stripped\"|\"uppercase\"|\"lowercase\"",
1847 " Choose conversion of file names if neither Rock Ridge",
1848 " nor Joliet is present in the loaded ISO session.",
1849 " -joliet_map \"unmapped\"|\"stripped\"",
1850 " Choose conversion of file names if the Joliet tree is read",
1851 " when loading the ISO session.",
1852 " -iso_nowtime \"dynamic\"|timestring",
1853 " Choose use of current time or a fixed point in time for",
1854 " timestamps where libisofs would normally use the current",
1855 " (i.e. dynamic) time.",
1856 " -disk_dev_ino \"on\"|\"ino_only\"|\"off\"",
1857 " Enable or disable recording of disk file dev_t and ino_t",
1858 " and their use in file comparison.",
1859 " -scdbackup_tag list_path record_name",
1860 " Enable production of scdbackup tag with -md5 on",
1861 " -ban_stdio_write",
1862 " Allow for writing only the usage of optical drives.",
1863 " -early_stdio_test \"on\"|\"appendable_wo\"|\"off\"",
1864 " Classify stdio drives by effective access permissions.",
1865 " -data_cache_size number_of_tiles blocks_per_tile",
1866 " Adjust size and granularity of the data read cache.",
1867 " -blank [\"force:\"]\"fast\"|\"all\"|\"deformat\"|\"deformat_quickest\"",
1868 " Blank medium or invalidate ISO image on medium.",
1869 " Prefix \"force:\" overrides medium evaluation.",
1870 " -truncate_overwritable entity id adjust",
1871 " Activate an older session on overwritable medium. Adjust",
1872 " its size to some value not smaller than original old size.",
1873 " -close_damaged \"as_needed\"|\"force\"",
1874 " Close track and session of damaged medium.",
1875 " -format \"as_needed\"|\"full\"|\"fast\"|\"by_index_#\"|\"by_size_#\"",
1876 " Format BD-RE, BD-R, DVD-RAM, DVD-RW, DVD+RW.",
1877 " -volid volume_id",
1878 " Specifies the volume ID text. (32 chars out of [A-Z0-9_])",
1880 " Specifies the volume set id. (128 chars)",
1882 " Specifies the publisher name. (128 chars)",
1883 " -application_id name",
1884 " Specifies the application id. (128 chars)",
1886 " Specifies the system id for the System Area. (32 chars)",
1887 " -volume_date type timestring",
1888 " Specifies volume timestamps. [\"c\",\"m\",\"x\",\"f\",\"uuid\"]",
1889 " -copyright_file name",
1890 " Specifies the name of the Copyright File. (37 chars)",
1891 " -biblio_file name",
1892 " Specifies the name of the Bibliographic File. (37 chars)",
1893 " -abstract_file name",
1894 " Specifies the name of the Abstract File. (37 chars)",
1895 " -application_use character|0xXY|disk_path",
1896 " Specifies the content of Application Use field. (512 bytes)",
1897 " A single character or a hex code gets repeated 512 times.",
1898 " Other text gets opened as data file and 512 bytes are read.",
1899 " -joliet \"on\"|\"off\"",
1900 " Generate Joliet info additional to Rock Ridge info.",
1901 " -hfsplus \"on\"|\"off\"",
1902 " Generate a HFS+ partition and filesystem within ISO image.",
1903 " -rockridge \"on\"|\"off\"",
1904 " Opportunity to omit Rock Ridge info. (Do not do it !)",
1905 " -jigdo \"clear\"|\"template_path\"|\"jigdo_path\"|\"md5_path\"",
1906 " |\"min_size\"|\"checksum_iso\"|\"checksum_template\"",
1907 " |\"checksum_path\"|\"demand_checksum\"|\"checksum_algorithm\"",
1908 " |\"compression\"|\"exclude\"|\"demand_md5\"|\"mapping\"",
1909 " |\"checksum_iso\"|\"checksum_template\"",
1911 " Clear Jigdo Template Extraction parameter list or add a",
1912 " parameter with its value to that list.",
1913 " -compliance rule[:rule...]",
1914 " Allow more or less harmless deviations from strict standards",
1916 " -rr_reloc_dir name",
1917 " Specifies name of relocation directory in root directory,",
1918 " to which deep subtrees will get relocated if -compliance",
1919 " is set to \"deep_paths_off\".",
1920 " -boot_image \"any\"|\"isolinux\"|\"grub\"",
1921 " |\"discard\"|\"keep\"|\"patch\"|\"replay\"",
1922 " |\"dir=\"|\"bin_path=\"",
1923 " |\"cat_path=\"|\"cat_hidden=on|iso_rr|joliet|off\"",
1924 " |\"load_size=\"|\"boot_info_table=\"",
1925 " |\"grub2_boot_info=\"|\"grub2_mbr=\"|\"partition_offset=\"",
1926 " |\"partition_hd_cyl=\"|\"partition_sec_hd=\"",
1927 " |\"partition_cyl_align=\"|\"mbr_force_bootable=\"",
1928 " |\"system_area=\"|\"partition_table=on|off\"",
1929 " |\"partition_entry=\"|\"appended_part_as=\"",
1930 " |\"part_like_isohybrid=\"|\"iso_mbr_part_type=\"",
1931 " |\"gpt_disk_guid=\"",
1932 " |\"chrp_boot_part=on|off=\"|\"prep_boot_part=\"",
1933 " |\"efi_boot_part=\"|\"efi_boot_part=--efi-boot-image\"",
1934 " |\"mips_path=\"|\"mipsel_path=\"|\"mips_discard\"",
1935 " |\"sparc_label=\"|\"grub2_sparc_core=\"|\"sparc_discard\"",
1936 " |\"hppa_cmdline=\"|\"hppa_bootloader=\"|\"hppa_kernel_32=\"",
1937 " |\"hppa_kernel_64=\"|\"hppa_ramdisk=\"|\"hppa_hdrversion=\"",
1938 " |\"hppa_discard\"|\"alpha_boot=\"|\"alpha_discard\"",
1939 " |\"hfsplus_serial=\"|\"hfsplus_block_size=\"",
1940 " |\"apm_block_size=\"|\"show_status\"",
1941 " Whether to discard or keep an exiting El Torito boot image,",
1942 " or to freshly set up boot equipment. \"replay\" performs",
1943 " the commands proposed by -report_system_area \"cmd\".",
1944 " ISOLINUX can be made bootable by dir=/ or dir=/isolinux",
1945 " or dir=/boot/isolinux. Others, like GRUB, by bin_path=...",
1946 " and cat_path=...",
1947 " The boot image and its helper files need to be added to the",
1948 " ISO image by the usual commands like -map or -add.",
1949 " system_area= and partition_table= are for MBR based booting",
1950 " from USB stick. The system_area= file needs not to be added.",
1951 " chrp_boot_part= and prep_boot_part= are for PowerPC.",
1952 " efi_boot_part= is for booting EFI systems from USB stick.",
1953 " mips_path= adds Big Endian MIPS boot files. mipsel_path=",
1954 " sets one Little Endian MIPS boot file. sparc_label=",
1955 " activates SUN Disk Label. hppa_* is for HP PA-RISC via PALO.",
1956 " alpha_boot= is for DEC Alpha SRM. MIPS, SUN, HP, and Alpha",
1957 " are mutually exclusive and exclusive to production",
1958 " of MBR and to booting via EFI from USB stick.",
1959 " -append_partition partition_number type_code disk_path",
1960 " Append a prepared filesystem image after the end of the",
1961 " ISO image. Caution: Will be overwritten by multi-session.",
1963 " -uid uid User id to be used for the whole multi-session ISO image.",
1964 " -gid gid Group id for the same purpose.",
1966 " -devices Show list of available optical drives and their addresses.",
1967 " -device_links Like devices, but showing link paths which are hopefully",
1968 " persistent over reboot on modern Linux systems.",
1970 " -toc Show media specific tables of content (sessions).",
1971 " -toc_of \"in\"|\"out\"|\"all\"[\":short\"]",
1972 " Show -toc of either input drive or output drive or both.",
1974 " -mount_cmd drive entity id path",
1975 " Print to result channel a command suitable to mount the",
1976 " depicted entity (see -load) at the given directory path.",
1977 " -mount_opts \"exclusive\"|\"shared\"",
1978 " Set options for -mount and -mount_cmd.",
1979 " -session_string drive entity id \"linux:\"path|\"freebsd:\"path|form",
1980 " Print foreign OS command or custom line.",
1982 " -list_formats Show media specific list of format descriptors.",
1984 " -list_speeds Show media specific list of write speed descriptors.",
1986 " -list_profiles \"in\"|\"out\"|\"all\"",
1987 " Show list of media types supported by indev and/or outdev.",
1988 " -print_size Print the foreseeable consumption by next -commit.",
1990 " -tell_media_space",
1991 " Print foreseeable available space on output medium",
1992 " -pvd_info Print various id strings of the loaded ISO image.",
1994 " -report_el_torito \"plain\"|\"help\"|\"cmd\"|\"as_mkisofs\"",
1995 " \"plain\" prints information about the El Torito boot catalog",
1996 " and boot images of the loaded ISO image.",
1997 " \"help\" prints an explanation of the output format.",
1998 " \"cmd\" and \"as_mkisofs\" propose commands to reproduce",
1999 " the boot equipment reported by -report_el_torito \"plain\"",
2000 " and -report_system_area \"plain\"",
2001 " -report_system_area \"plain\"|\"help\"|\"gpt_crc_of:\"disk_path",
2002 " |\"cmd\"|\"as_mkisofs\"",
2003 " \"plain\" prints information about recognized data",
2004 " \"help\" prints an explanation of the output format.",
2005 " in the System Area of the loaded ISO image: MBR, GPT, ...",
2006 " \"gpt_crc_of:\" prints GPT CRC of file disk_path.",
2007 " For \"cmd\" and \"as_mkisofs\" see -report_el_torito.",
2009 "Commands with variable length path list [...] need the list delimiter text",
2010 "as end mark if they are followed by another command. By default this",
2011 "delimiter is \"--\". In dialog and with commands read from files, the line",
2012 "end serves as such a mark. With program arguments this mark can be omitted",
2013 "only with the last command in the list of program arguments.",
2014 "For brevity the list delimiter is referred as \"--\" throughout this text.",
2016 " -list_delimiter text Set the list delimiter to be used instead of \"--\"",
2017 " It has to be a single word, must not be empty, not longer",
2018 " than 80 characters, may not contain quotation marks.",
2020 "Manipulation commands:",
2021 "disk_path is a path to an object in the local filesystem tree.",
2022 "iso_rr_path is the Rock Ridge name of a file object in the ISO image.",
2023 "pathspec is either a disk_path or (if allowed) a pair: iso_rr_path=disk_path",
2024 "Commands marked by [***] have variable length parameter lists and perform",
2025 "pattern expansion if enabled by -iso_rr_pattern or -disk_pattern.",
2027 " -pathspecs \"on\"|\"off\"|\"as_mkisofs\"",
2028 " Allow or disallow pathspecs of form iso_rr_path=disk_path",
2029 " Only \"off\" allows -disk_pattern expansion.",
2030 " -file_name_limit number",
2031 " Set truncation size for file names [64 ... 255].",
2032 " -file_size_limit value [...]",
2033 " Set limit for file content size. One or more numbers to add.",
2034 " -add pathspec [...] | disk_path [***]",
2035 " Insert the given files or directory trees from",
2036 " filesystem into the ISO image. Much like mkisofs.",
2037 " -add_plainly \"none\"|\"unknown\"|\"dashed\"|\"any\"",
2038 " Whether to add lonely arguments as pathspec or disk_path.",
2039 " -path_list disk_path",
2040 " Like -add but read the pathspecs from file disk_path.",
2041 " -quoted_path_list disk_path",
2042 " Like -path_list but with line rules as -dialog \"on\".",
2044 " -map disk_path iso_rr_path",
2045 " Insert disk file object at the given iso_rr_path.",
2046 " -map_single disk_path iso_rr_path",
2047 " Like -map but with directory do not insert its sub tree.",
2048 " -map_l disk_prefix iso_rr_prefix disk_path [***]",
2049 " Performs -map with each disk_path.",
2050 " -update disk_path iso_rr_path",
2051 " Compare both file objects and do what is necessary to make",
2052 " iso_rr_path a matching copy of disk_path.",
2053 " -update_r disk_path iso_rr_path",
2054 " Like -update but affecting all files below directories.",
2055 " -update_l disk_prefix iso_rr_prefix disk_path [***]",
2056 " Performs -update_r with each disk_path.",
2057 " -update_li iso_rr_prefix disk_prefix iso_rr_path [***]",
2058 " Performs -update_r with each iso_rr_path.",
2059 " -update_lxi disk_prefix iso_rr_prefix disk_or_iso_rr_path [***]",
2060 " Performs -update_r with each disk_path or corresponding",
2061 " iso_rr_path after exchange of disk_prefix by iso_rr_prefix.",
2062 " -cut_out disk_path byte_offset byte_count iso_rr_path",
2063 " Map a byte interval of a regular disk file into a regular",
2064 " file in the ISO image.",
2066 " -cpr disk_path [***] iso_rr_path",
2067 " Insert the given files or directory trees from filesystem",
2068 " into the ISO image, according to the rules of cp -r.",
2070 " -rm iso_rr_path [***]",
2071 " Delete the given files from the ISO image.",
2072 " -rm_r iso_rr_path [***]",
2073 " Delete the given directory trees from ISO image.",
2074 " -move iso_rr_path iso_rr_path",
2075 " Rename the single file given by the first iso_rr_path to",
2076 " the second iso_rr_path.",
2077 " -mv iso_rr_path [***] iso_rr_path",
2078 " Like shell command mv rename the given file objects in the",
2079 " ISO tree to the last of the iso_rr_path parameters.",
2080 " -chown uid iso_rr_path [***]",
2081 " Equivalent to chown in the ISO image.",
2082 " -chown_r uid iso_rr_path [***]",
2083 " Like -chown but affecting all files below directories.",
2084 " -chgrp gid iso_rr_path [***]",
2085 " Equivalent to chgrp in the ISO image.",
2086 " -chgrp_r gid iso_rr_path [***]",
2087 " Like -chgrp but affecting all files below directories.",
2088 " -chmod mode iso_rr_path [***]",
2089 " Equivalent to chmod in the ISO image.",
2090 " -chmod_r mode iso_rr_path [***]",
2091 " Like -chmod but affecting all files below directories.",
2092 " -setfacl acl_text iso_rr_path [***]",
2093 " Replace the permissions and eventual ACL of the given files",
2094 " in the ISO image by the ACL which is defined by acl_text.",
2095 " -setfacl_r acl_text iso_rr_path [***]",
2096 " Like -setfacl but affecting all files below directories.",
2097 " -setfacl_list disk_path",
2098 " Read output of getfacl from file disk_path. Set owner,",
2099 " group and ACL of the iso_rr_path given by line \"# file:\".",
2100 " -setfattr [-]name value iso_rr_path [***]",
2101 " Set xattr pair with the given name to the given value, or",
2102 " delete pair if name is prefixed with \"-\" and value is",
2104 " -setfattr_r [-]name value iso_rr_path [***]",
2105 " Like -setfattr but affecting all files below directories.",
2106 " -setfattr_list disk_path",
2107 " Read output of getfattr from file disk_path. Replace the",
2108 " xattr of the iso_rr_path given by line \"# file:\".",
2109 " -alter_date type timestring iso_rr_path [***]",
2110 " Alter the date entries of a file in the ISO image. type is",
2111 " one of \"a\", \"m\", \"b\" for:",
2112 " access time, modification time, both times.",
2113 " -alter_date_r type timestring iso_rr_path [***]",
2114 " Like -alter_date but affecting all files below directories.",
2115 " -hide on|iso_rr:joliet:hfsplus|off iso_rr_path [***]",
2116 " Keep names of files out of directory trees, but store their",
2117 " data content in the image.",
2118 " -find iso_rr_path [test [op] [test ...]] [-exec action [params]]",
2119 " performs an action on files below the given directory in",
2120 " the ISO image. Tests:",
2121 " -name pattern, -wholename pattern, -disk_name pattern,",
2122 " -type b|c|d|p|f|l|s|e, -pending_data, -hidden,",
2123 " -lba_range start count, -damaged, -has_acl, -has_xattr,",
2124 " -has_aaip, -has_filter, -has_md5, -has_any_xattr,",
2125 " -has_hfs_crtp, -has_hfs_bless, -bad_outname,",
2126 " -name_limit_blocker, -maxdepth, -mindepth,",
2127 " -prune, -decision yes|no, -true, -false",
2128 " Operators: -not, -or, -and, -sub, (, -subend, ),",
2129 " -if, -then, -elseif, -else, -endif",
2130 " Action may be one of: echo, chown, chown_r, chgrp, chgrp_r,",
2131 " chmod, chmod_r, alter_date, alter_date_r, set_to_mtime,",
2132 " lsdl, compare, rm, rm_r, compare, update, report_damage,",
2133 " report_lba, report_sections,",
2134 " getfacl, setfacl, getfattr, setfattr, get_any_xattr,",
2135 " list_extattr, get_md5, check_md5, make_md5,",
2136 " set_hfs_crtp, get_hfs_crtp, set_hfs_bless, get_hfs_bless,",
2137 " set_filter, show_stream, show_stream_id, mkisofs_r,",
2138 " hide, print_outname, estimate_size, find",
2139 " params are their parameters except iso_rr_path.",
2140 " -mkdir iso_rr_path [...]",
2141 " Create empty directories if they do not exist yet.",
2142 " -lns target_text iso_rr_path",
2143 " Create a symbolic link pointing to target_text",
2144 " -rmdir iso_rr_path [***]",
2145 " Delete empty directories.",
2146 " -clone iso_rr_path_original iso_rr_path_copy",
2147 " Create an ISO copy of an ISO file or ISO directory tree.",
2148 " -cp_clone iso_rr_path_original [***] iso_rr_path_dest",
2149 " Create ISO to ISO copies according to the rules of cp -r.",
2151 " -- Default list delimiter marking the end of command parameter",
2152 " lists. It may be changed by command -list_delimiter.",
2154 " -not_paths disk_path [***]",
2155 " Add the given paths to the list of excluded absolute paths.",
2156 " -not_leaf pattern",
2157 " Add the given pattern to the list of leafname exclusions.",
2158 " -not_list disk_path",
2159 " Read lines from disk_path and use as -not_paths (with \"/\")",
2160 " or as -not_leaf (without \"/\").",
2161 " -quoted_not_list disk_path",
2162 " Like -not_list but with line rules as -dialog \"on\".",
2163 " -not_mgt \"reset\"|\"on\"|\"off\"|\"param_on\"|\"subtree_on\"|\"ignore_on\"",
2164 " Control effect of exclusion lists.",
2165 " -follow \"on\"|\"pattern:param:link:concat:mount:limit=#\"|\"default\"|\"off\"",
2166 " Follow symbolic links and mount points within disk_path.",
2167 " -overwrite \"on\"|\"nondir\"|\"off\"",
2168 " Allow or disallow to overwrite existing files in ISO image.",
2169 " -split_size number[\"k\"|\"m\"]",
2170 " Set the threshold for automatic splitting of regular files.",
2171 " -reassure \"on\"|\"tree\"|\"off\"",
2172 " If \"on\" then ask the user for \"y\" or \"n\" with any",
2173 " file before deleting or overwriting it in the ISO image.",
2176 "External filter processes may produce synthetic file content by reading the",
2177 "original content from stdin and writing to stdout whatever they want.",
2179 #ifdef Xorriso_allow_external_filterS
2181 " -external_filter name option[:option] program_path [arguments] --",
2182 " Define an external filter. Options are: suffix=...: ",
2183 " remove_suffix:if_nonempty:if_reduction:if_block_reduction.",
2184 " -unregister_filter name",
2185 " Undefine an external filter.",
2186 " -close_filter_list",
2187 " Irrevocably ban -external_filter and -unregister_filter.",
2191 "Sorry: The use of external filters was not enabled at compile time.",
2192 " E.g. by ./configure option --enable-external-filters",
2196 " -set_filter name iso_rr_path [***]",
2197 " Apply a defined filter to the given data files.",
2198 " Special name \"--remove-all-filters\" revokes filtering.",
2199 " Builtin filters are --gzip , --gunzip, --zisofs .",
2200 " -set_filter_r name iso_rr_path [***]",
2201 " Like -set_filter but affecting all files below directories.",
2203 "zisofs is a compression format which is recognized by some Linux kernels.",
2204 "xorriso supports it by builtin filter \"--zisofs\" which is to be applied by",
2205 "the user, and by \"--zisofs-decode\" which is applied automatically when",
2206 "compressed content is detected with a file in the ISO image.",
2207 " -zisofs option[:options]",
2208 " Set global zisofs parameters:",
2209 " level=0|...|9 , block_size=32k|64k|128k , by_magic=on|off",
2210 " version_2=off|as_needed|on , block_size_v2=32k|...|1024k",
2211 " max_bpt=1k...128g , max_bpt_f=1k...128g , bpt_target=num",
2212 " bpt_free_ratio=-1|[0.0...1.0] , susp_z2=off|on"
2214 "Write-to-media commands:",
2215 " -rollback Discard the manipulated ISO image and reload it.",
2217 " -changes_pending \"no\"|\"yes\"|\"mkisofs_printed\"|\"show_status\"",
2218 " Override the automatically determined change status of the",
2219 " loaded image, or show the current status.",
2220 " -commit Perform the write operation if changes are pending.",
2221 " Then perform -dev outdrive.",
2222 " Hint: To perform a final write operation with no new -dev",
2223 " and no new loading of image, execute command -end.",
2224 " -commit_eject \"in\"|\"out\"|\"all\"|\"none\"",
2225 " Like -commit but rather eject than load image from outdrive.",
2226 " Give up any unejected drive afterwards.",
2227 " -write_type \"auto\"|\"tao\"|\"sao/dao\"",
2228 " Set write type for CD-R[W], DVD-R[W], DVD+R, BD-R.",
2229 " -close \"on\"|\"off\"|\"as_needed\"",
2230 " If \"on\" then mark the written medium as not appendable.",
2231 " -padding number[\"k\"|\"m\"]|\"included\"|\"appended\"",
2232 " Append extra bytes to image stream. (Default is 300k)",
2233 " -dummy \"on\"|\"off\"",
2234 " If \"on\" simulate burning. Refuse if medium cannot simulate.",
2235 " -speed number[\"k/s\"|\"m/s\"|\"[x]CD\"|\"[x]DVD\"|\"[x]BD\"]",
2236 " Set the burn speed. Default is \"max\" = maximum speed.",
2237 " -stream_recording \"on\"|\"off\"",
2238 " Try to circumvent slow checkread on DVD-RAM, BD-RE, BD-R.",
2239 " -modesty_on_drive [\"on\"|\"off\"|min_percent_number]",
2240 " [:\"min_percent=\"number][:\"max_percent=\"number]",
2241 " [:\"min_usec=\"number][:\"max_usec\"=number]",
2242 " [:\"timeout_sec=\"number]",
2243 " Keep drive buffer hungry to ease concurrent burn run.",
2244 " -dvd_obs \"default\"|\"32k\"|\"64k\"",
2245 " Set number of bytes per DVD/BD write operation.",
2246 " -use_immed_bit \"on\"|\"off\"|\"default\"",
2247 " Control whether long running SCSI commands shall run",
2248 " asynchronously with progress messages.",
2249 " -stdio_sync \"on\"|\"off\"|\"end\"|number",
2250 " Set number of bytes after which to force output to stdio",
2251 " pseudo drives. \"on\" is the same as 16m.",
2252 " -fs number[\"k\"|\"m\"]",
2253 " Set the size of the fifo buffer. (Default is 4m)",
2254 " -eject \"in\"|\"out\"|\"all\"",
2255 " Immediately eject the medium in -indev, -outdev, or both.",
2257 "Navigation commands:",
2259 " -cd iso_rr_path Change working directory in the ISO image. iso_rr_paths",
2260 " which do not begin with '/' will be inserted beginning at",
2261 " the path given with -cd. -ls patterns will eventually",
2262 " looked up at this path.",
2263 " -cdi disk_path Same as -cd disk_path",
2264 " -cdx disk_path Change the current working directory in the local",
2265 " filesystem. disk_paths which do not begin with '/'",
2266 " will be looked up beginning at the path given with -cdx.",
2267 " -lsx patterns will eventually be looked up at this path.",
2268 " -pwd tells the current working directory in the ISO image.",
2269 " -pwdi same as -pwd.",
2270 " -pwdx tells the current working directory in the local filesystem.",
2272 " -iso_rr_pattern \"on\"|\"ls\"|\"off\"",
2273 " Enable or disable pattern expansions for ISO image commands",
2274 " marked by [***]. \"ls\" restricts it to -ls and -du.",
2275 " -disk_pattern \"on\"|\"ls\"|\"off\"",
2276 " Enable or disable pattern expansions for local filesystem",
2277 " commands marked by [***]. \"ls\" restricts to -ls*x and -du*x.",
2279 " -ls pattern [***] lists files of the ISO image which match one of the",
2280 " given shell parser patterns. (I.e. wildcards '*' '?').",
2281 " Directories are listed by their content.",
2282 " -lsd pattern [***] like -ls but listing directories as single items.",
2283 " -lsl pattern [***] like -ls but also telling some file attributes.",
2284 " -lsdl pattern [***] like -lsd but also telling some file attributes.",
2286 " -lsx pattern [***] lists files of the local filesystem which match one",
2287 " of the patterns. Directories are listed by their content.",
2288 " -lsdx pattern [***] like -lsx but listing directories as single items.",
2289 " -lslx pattern [***] like -lsx but also telling some file attributes.",
2290 " -lsdlx pattern [***] like -lsdx but also telling some file attributes.",
2291 " -getfacl pattern [***] list eventual ACLs of the given files.",
2292 " -getfacl_r pattern [***] like -getfacl but listing whole file trees.",
2293 " -getfattr pattern [***] list eventual xattr of the given files.",
2294 " -getfxattr_r pattern [***] like -getfxattr but listing whole file trees.",
2296 " -du pattern [***] recursively lists sizes of files or directories in the",
2297 " ISO image which match one of the shell parser patterns.",
2298 " -dux pattern [***] recursively lists sizes of files or directories in the",
2299 " local filesystem which match one of the shell parser",
2301 " -dus pattern [***] like -du but summing up subdirectories without",
2302 " listing them explicitly.",
2303 " -dusx pattern [***] like -dux but summing up subdirectories without",
2304 " listing them explicitly.",
2306 " -findx disk_path [-name pattern] [-type t] [-exec action [params]]",
2307 " Like -find but operating on local filesystem. Most -exec",
2308 " actions are defaulted to action echo. Supported actions are:",
2309 " in_iso, not_in_iso, is_full_in_iso, add_missing,",
2312 " -compare disk_path iso_rr_path",
2313 " compare attributes and in case of regular data files the",
2314 " content of filesystem object and ISO object.",
2315 " -compare_r disk_path iso_rr_path",
2316 " Like -compare but affecting all files below directories.",
2317 " -compare_l disk_prefix iso_rr_prefix disk_path [***]",
2318 " Performs -compare_r with each disk_path.",
2320 " -show_stream iso_rr_path [***]",
2321 " Show content stream chain of data files in the ISO image.",
2322 " -show_stream_r iso_rr_path [***]",
2323 " Like -show_stream but affecting all files below directories.",
2325 "Restore commands which copy file objects from ISO image to disk filesystem:",
2326 " -osirrox \"on\"|\"device_files\"|\"off\"|\"blocked\"|\"unblock\"|\"banned\"",
2327 " [:\"concat_split_on\"|\"concat_split_off\"]",
2328 " [:\"auto_chmod_on\"|\"auto_chmod_off\"]",
2329 " [:\"sort_lba_on\"|\"sort_lba_off\"]",
2330 " [:\"strict_acl_on\"|\"strict_acl_off\"]",
2331 " [:\"check_md5_on\"|\"check_md5_off\"|\"check_md5_force\"]",
2332 " [:\"sparse=off\"|\"sparse=\"number]",
2333 " By default \"off\" the inverse operation of xorriso from ISO",
2334 " image to disk filesystem is disabled. \"on\" allows xorriso",
2335 " to create, overwrite, delete files in the disk filesystem.",
2336 " \"banned\" is irrevocably \"off\". \"blocked\" can only be",
2337 " revoked by \"unblock\". (\"device_files\" is dangerous.)",
2338 " -extract iso_rr_path disk_path",
2339 " Copy tree under iso_rr_path onto disk address disk_path.",
2340 " This avoids the pitfalls of cp -r addressing rules.",
2341 " -extract_l iso_rr_prefix disk_prefix iso_rr_path [***]",
2342 " Perform -extract with each iso_rr_path.",
2343 " -extract_single iso_rr_path disk_path",
2344 " Like -extract but with directory do not restore sub tree.",
2345 " -extract_cut iso_rr_path byte_offset byte_count disk_path",
2346 " Copy a byte interval from iso_rr_path to disk_path.",
2347 " This is governed in part by -check_media_defaults.",
2348 " -extract_boot_images disk_path",
2349 " Copy boot images into files in directory disk_path with",
2350 " names which tell the role inside the ISO.",
2351 " -cpx iso_rr_path [***] disk_path",
2352 " Copy leaf file objects from ISO image to disk filesystem.",
2353 " -cpax iso_rr_path [***] disk_path",
2354 " Like -cpx but trying to restore timestamps and ownership.",
2355 " -cp_rx iso_rr_path [***] disk_path",
2356 " Copy directory trees from ISO image to disk filesystem.",
2357 " -cp_rax iso_rr_path [***] disk_path",
2358 " Like -cp_rx but trying to restore timestamps and ownership.",
2359 " -paste_in iso_rr_path disk_path byte_offset byte_count",
2360 " Copy ISO file content into a byte interval of a disk file.",
2361 " -concat \"append\"|\"overwrite\" target iso_rr_path [***]",
2362 " Write content of iso_rr_paths into disk file target. Target",
2363 " may be a disk_path or \"-\" for writing to standard output.",
2364 " -concat \"pipe\" lim prog [args [...]] lim iso_rr_path [***]",
2365 " Start prog with given args and write content of iso_rr_paths",
2366 " into its standard input. prog must at least contain one '/'.",
2367 " lim may be any word that is not among prog and args.",
2368 " -mount drive entity id path",
2369 " Like -mount_cmd but actually performing that command if",
2370 " not setuid or setgid is active.",
2372 "Evaluation of readability:",
2373 " -check_media [options] --",
2374 " Try to read data blocks from the medium and report about the",
2375 " outcome. Several options modify the behavior:",
2376 " use=indev|outdev , what=track|session ,",
2377 " min_lba=blockadr , max_lba=blockadr ,",
2378 " abort_file=path , time_limit=seconds , item_limit=number ,",
2379 " retry=on|off|default , data_to=filepath ,",
2380 " sector_map=filepath , map_with_volid=on|off ,",
2381 " patch_lba0=on|off|force|blockadr[:force] ,",
2382 " report=blocks|files|blocks_files event=severity ,",
2383 " bad_limit=quality , slow_limit=seconds , chunk_size=bytes",
2384 " -check_media_defaults [options] --",
2385 " Preset options for runs of -check_media and -extract_cut.",
2387 "Compatibility emulation (option list may be ended by list delimiter --):",
2388 " -as mkisofs [-help|-version|-o|-R|-r|-J|-V|-P|-f|-m|-exclude-list|",
2389 " -no-pad|-M|-C|-graft-points|-path-list|pathspecs|-z|",
2390 " -no-emul-boot|-b|-c|-boot-info-table|-boot-load-size|-G|...]",
2391 " Perform some mkisofs gestures, understand pathspecs as mkisofs",
2392 " does. Commit happens outside emulation at usual occasions.",
2393 " For a list of options see -as mkisofs -help.",
2395 " Read and interpret the .mkisofsrc configuration file.",
2396 " -as cdrecord [-help|-v|dev=|speed=|blank=|fs=|-eject|-atip|padsize=|-multi]",
2398 " Perform some cdrecord gestures, eventually write at most one",
2399 " data track to blank, appendable or overwritable media.",
2400 " -pacifier \"xorriso\"|\"cdrecord\"|\"mkisofs\"",
2401 " Choose format of UPDATE pacifier during write operations.",
2403 "General commands:",
2404 " -help Print this text",
2405 " -abort_on severity Set the threshold for events to abort the program.",
2406 " Useful severities: NEVER, ABORT, FATAL, FAILURE, SORRY, WARNING",
2407 " -return_with severity exit_value Set the threshold for events to return",
2408 " at program end the given exit_value even if not aborted.",
2409 " exit_value may be 0 or 32 to 63.",
2410 " -report_about severity Set the threshold for events to be reported.",
2411 " Use -abort_on severities or: HINT, NOTE, UPDATE, DEBUG, ALL",
2412 " -signal_handling \"on\"|\"off\"|\"sig_dfl\"|\"sig_ign\"",
2413 " Handling of signals. Default \"on\" uses libburn handler.",
2414 " -error_behavior \"image_loading\"|\"file_extraction\" behavior",
2415 " Behavior \"best_effort\" is most endurant but may produce",
2416 " results which are correct only on the first glimpse.",
2417 " -dialog \"on\"|\"off\"|\"single_line\"",
2418 " After all program arguments are processed, enter dialog mode.",
2419 " \"single_line\" does not support newline characters within",
2420 " open quotation marks and no line continuation by trailing \\.",
2421 " -page len width Prompt user after len output lines (0=no prompt).",
2422 " width (default 80) can adjust line number computation",
2423 " to the output terminal's line width.",
2424 #ifdef Xorriso_with_line_editoR
2425 " -use_readline \"on\"|\"off\"",
2426 " Whether to use libreadline for dialog if available.",
2427 " -history text Copy text into libreadline history. This command",
2428 " itself is not copied to the history list.",
2430 " -sh_style_result \"on\"|\"off\"",
2431 " If \"on\" do not wrap file addresses in quotation marks with",
2432 " -pwd -pwdx -ls -lsd -lsl -lsdl -lsx -lsdx -lslx -lsdlx",
2433 " -du -dus -dux -dusx -findx -find",
2434 " -backslash_codes \"on\"|\"off\"|",
2435 " \"in_double_quotes\"|\"in_quotes\"|\"with_quoted_input\"",
2436 " [:\"with_program_arguments\"][:\"encode_output\"]",
2437 " Disable or enable interpretation of \\a \\b \\e \\f \\n \\r \\t \\v",
2438 " \\\\ \\NNN \\xNN \\cC in input or program arguments.",
2439 " -pkt_output \"on\"|\"off\" Direct output to stdout and prefix each line",
2440 " by a short header which tells channel id and a mode number.",
2441 " Each such output packet is finalized by a newline.",
2442 " Channel ids are 'R:' for result lines, 'I:' for notes",
2443 " and error messages, 'M:' for -mark texts. Bit 0 of the",
2444 " mode number tells whether the newline is also part of the",
2445 " packet payload. Example of a info message with newline:",
2446 " I:1: enter option text :",
2447 " -pkt_output:on is intended for use by frontend programs.",
2448 " -msg_op \"start_sieve\"|\"read_sieve\"|\"clear_sieve\"|\"end_sieve\"|",
2449 " \"parse\"|\"parse_silently\"|\"parse_bulk\"|\"parse_bulk_silently\"|",
2450 " \"compare_sev\"|\"list_sev\" param_text",
2451 " Enable, use, or disable message sieve. Or parse lines into",
2452 " words. Or compare or list severity names.",
2453 " -named_pipes_loop mode[:mode]",
2454 " disk_path_stdin disk_path_stdout disk_path_stderr",
2455 " Enter an EOF resistant dialog loop at a named pipe as input",
2456 " and zero, one or two named pipes as output. \"-\" = no pipe.",
2457 " Mode \"cleanup\" removes pipes at loop end. \"keep\" does not.",
2458 " Mode \"buffered\" reads all lines from input pipe before it",
2459 " opens the output pipes. \"direct\" opens after first input.",
2460 " -launch_frontend program [args ...] --",
2461 " Start a program, connect its stdin to xorriso stdout and",
2462 " stderr, connect its stdout to xorriso stdin.",
2463 " Use any given parameters as arguments for the started program.",
2464 " -logfile channel fileaddress Copy output of a channel to the given file.",
2465 " channel may be 'R','I','M' as with -pkt_output or '.'",
2466 " for the consolidated -pkt_output stream.",
2467 " -mark text If text is not empty it will get put out each time a command",
2469 " -temp_mem_limit number[\"k\"|\"m\"]",
2470 " Set the maximum size for pattern expansion. (Default is 16m)",
2471 " -prog text Use text as this program's name in subsequent messages",
2472 " -prog_help text Use text as this program's name and perform -help",
2473 " -status mode|filter Report the current settings of persistent commands.",
2475 " short... print only important or altered settings",
2476 " long ... print settings even if they have default values",
2477 " long_history like long plus -history: lines",
2478 " Filters begin with '-' and are compared literally against the",
2479 " output lines of -status long_history. A line is put out only",
2480 " if its start matches the filter.",
2481 " -status_history_max number Maximum number of history lines to be reported",
2482 " with -status:long_history",
2483 " -options_from_file fileaddress",
2484 " Reads lines from the given file and executes them as commands.",
2485 " -no_rc Only if used as first program argument, this command",
2486 " prevents reading and interpretation of these startup files:",
2487 " /etc/default/xorriso , /etc/opt/xorriso/rc",
2488 " /etc/xorriso/xorriso.conf , $HOME/.xorrisorc",
2490 " Print a text to result channel.",
2491 " -print_info text",
2492 " Print a text to info channel.",
2493 " -print_mark text",
2494 " Print a text to mark channel.",
2496 " Wait for Enter key or for a line of input at stdin.",
2498 " Do nothing during the given number of seconds.",
2499 " -errfile_log mode path|channel",
2500 " Log disk paths of files involved in problem events.",
2501 " -session_log path",
2502 " Set path of a file where a log record gets appended after",
2503 " each session. Form: timestamp start_lba size volume-id",
2504 " -scsi_log \"on\"|\"off\"",
2505 " Enable or disable logging of SCSI commands to stderr.",
2506 " # any text Is ignored. In dialog mode the input line will be stored in",
2507 " the eventual readline history, nevertheless.",
2508 " -list_extras code",
2509 " Tell whether certain extra features were enabled at compile",
2510 " time. Code \"all\" lists all features and a headline. Other",
2511 " codes pick a single feature. \"codes\" lists the known codes.",
2512 " -list_arg_sorting",
2513 " Print the sorting order of xorriso commands with option -x.",
2514 " -version Tell program and version number",
2515 " -end End program. Commit eventual pending changes.",
2517 " End program. Discard pending changes.",
2520 "Command -page causes a user prompt after the given number of result lines.",
2521 "Empty input resumes output until the next prompt. Other input may be:",
2522 " @ suppresses paging until the current action is done",
2523 " @@ suppresses further result output but continues the action",
2524 " @@@ aborts the current action",
2525 " other aborts the current action and executes input as new command",
2527 #ifdef Xorriso_GNU_xorrisO
2528 "Report bugs to: bug-xorriso@gnu.org , or in private to: scdbackup@gmx.net .",
2529 "xorriso home page: <https://www.gnu.org/software/xorriso/>",
2530 "General help using GNU software: <https://www.gnu.org/gethelp/>",
2532 "Report any bugs to bug-xorriso@gnu.org or in private to scdbackup@gmx.net .",
2538 "@ENDE_OF_HELPTEXT_(HOPEFULLY_UNIQUELY_SILLY_TEXT)@"
2545 sprintf(xorriso->
result_line,
"usage: %s [settings|actions]\n",
2552 if(strcmp(tpt,
"@ENDE_OF_HELPTEXT_(HOPEFULLY_UNIQUELY_SILLY_TEXT)@")==0)
2567 if(strcmp(mode,
"off")==0)
2569 else if(strcmp(mode,
"on")==0)
2572 sprintf(xorriso->
info_text,
"-hfsplus: unknown mode '%s'", mode);
2582 int argc,
char **argv,
int *idx,
int flag)
2584 int i, ret, end_idx, optc= 0, was_failure= 0, fret, hide_mode;
2593 sprintf(xorriso->
info_text,
"-hide : unknown hide state ");
2598 for(i= 0; i<optc; i++) {
2612 Xorriso_opt_args(xorriso,
"-hide", argc, argv, *idx, &end_idx, &optc, &optv,
2616 return(!was_failure);
int Xorriso_lst_new(struct Xorriso_lsT **lstring, char *text, struct Xorriso_lsT *link, int flag)
int Xorriso_lst_destroy_all(struct Xorriso_lsT **lstring, int flag)
int Xorriso_destroy_node_array(struct XorrisO *xorriso, int flag)
int Xorriso_destroy_hln_array(struct XorrisO *xorriso, int flag)
int Xorriso_convert_uidstring(struct XorrisO *xorriso, char *uid_string, uid_t *uid, int flag)
int Xorriso_convert_modstring(struct XorrisO *xorriso, char *cmd, char *mode, mode_t *mode_and, mode_t *mode_or, int flag)
int Xorriso_restore_sorted(struct XorrisO *xorriso, int count, char **src_array, char **tgt_array, int *problem_count, int flag)
int Xorriso_findx(struct XorrisO *xorriso, struct FindjoB *job, char *abs_dir_parm, char *dir_path, struct stat *dir_stbuf, int depth, struct LinkiteM *link_stack, int flag)
int Xorriso_convert_gidstring(struct XorrisO *xorriso, char *gid_string, gid_t *gid, int flag)
int Xorriso_show_devices(struct XorrisO *xorriso, int flag)
int Xorriso_aquire_drive(struct XorrisO *xorriso, char *adr, char *show_adr, int flag)
int Xorriso_give_up_drive(struct XorrisO *xorriso, int flag)
int Xorriso_external_filter(struct XorrisO *xorriso, char *name, char *options, char *path, int argc, char **argv, int flag)
int Findjob_set_arg1(struct FindjoB *o, int test_type, char *arg1, int flag)
int Findjob_then(struct FindjoB *job, int flag)
int Findjob_not(struct FindjoB *job, int flag)
int Findjob_set_xattr_filter(struct FindjoB *o, int value, int flag)
int Findjob_if(struct FindjoB *job, int flag)
int Findjob_set_action_subjob(struct FindjoB *o, int action, struct FindjoB *subjob, int flag)
int Findjob_and(struct FindjoB *job, int flag)
int Findjob_set_action_chown(struct FindjoB *o, uid_t user, int flag)
int Findjob_else(struct FindjoB *job, int flag)
int Findjob_set_action_text_2(struct FindjoB *o, int action, char *target, char *text_2, int flag)
int Findjob_set_aaip_filter(struct FindjoB *o, int value, int flag)
int Findjob_set_test_hidden(struct FindjoB *o, int mode, int flag)
int Findjob_set_commit_filter_2(struct FindjoB *o, int flag)
int Findjob_set_lba_range(struct FindjoB *o, int start_lba, int count, int flag)
int Findjob_set_num_filter(struct FindjoB *o, int test_type, int num1, int num2, int flag)
int Findjob_set_action_target(struct FindjoB *o, int action, char *target, int flag)
int Findjob_open_bracket(struct FindjoB *job, int flag)
int Findjob_close_bracket(struct FindjoB *job, int flag)
int Findjob_elseif(struct FindjoB *job, int flag)
int Findjob_set_false(struct FindjoB *o, int value, int flag)
int Findjob_set_damage_filter(struct FindjoB *o, int value, int flag)
int Findjob_set_prop_filter(struct FindjoB *o, int test_type, int value, int flag)
int Findjob_set_action_chmod(struct FindjoB *o, mode_t mode_and, mode_t mode_or, int flag)
int Findjob_set_action_type(struct FindjoB *o, int action, int type, int flag)
int Findjob_or(struct FindjoB *job, int flag)
int Findjob_set_name_expr(struct FindjoB *o, char *name_expr, int flag)
int Findjob_set_filter_filter(struct FindjoB *o, int value, int flag)
int Findjob_destroy(struct FindjoB **o, int flag)
int Findjob_endif(struct FindjoB *job, int flag)
int Findjob_new(struct FindjoB **o, char *start_path, int flag)
int Findjob_set_prune(struct FindjoB *o, int flag)
int Findjob_set_acl_filter(struct FindjoB *o, int value, int flag)
int Findjob_set_start_path(struct FindjoB *o, char *start_path, int flag)
int Findjob_set_file_type(struct FindjoB *o, char file_type, int flag)
int Findjob_set_crtp_filter(struct FindjoB *o, char *creator, char *hfs_type, int flag)
int Findjob_set_action_chgrp(struct FindjoB *o, gid_t group, int flag)
int Findjob_set_action_ad(struct FindjoB *o, int type, time_t date, int flag)
int Findjob_set_bless_filter(struct XorrisO *xorriso, struct FindjoB *o, char *blessing, int flag)
int Xorriso_change_is_pending(struct XorrisO *xorriso, int flag)
int Xorriso_set_file_name_limit(struct XorrisO *xorriso, int value, int flag)
int Xorriso_set_hidden(struct XorrisO *xorriso, void *in_node, char *path, int hide_state, int flag)
int Xorriso_findi_sorted(struct XorrisO *xorriso, struct FindjoB *job, off_t boss_mem, int filec, char **filev, int flag)
int Xorriso_path_setfattr(struct XorrisO *xorriso, void *in_node, char *path, char *name, size_t value_length, char *value, int flag)
int Xorriso_hfsplus_bless(struct XorrisO *xorriso, char *path, void *in_node, char *blessing, int flag)
int Xorriso_hfsplus_file_creator_type(struct XorrisO *xorriso, char *path, void *in_node, char *creator, char *hfs_type, int flag)
int Xorriso_findi(struct XorrisO *xorriso, struct FindjoB *job, void *boss_iter, off_t boss_mem, void *dir_node_generic, char *dir_path, struct stat *dir_stbuf, int depth, int flag)
int Xorriso_append_extattr_comp(struct XorrisO *xorriso, char *comp, size_t comp_len, char *mode, int flag)
int Xorriso_truncate_path_comps(struct XorrisO *xorriso, char *path, char *buffer, char **resultpt, int flag)
int Xorriso_getfacl(struct XorrisO *xorriso, void *in_node, char *path, char **acl_text, int flag)
int Xorriso_getfattr(struct XorrisO *xorriso, void *in_node, char *path, char **attr_text, int flag)
int Xorriso_normalize_img_path(struct XorrisO *xorriso, char *wd, char *img_path, char eff_path[], int flag)
int Xorriso_set_data_cache(struct XorrisO *xorriso, void *o, int num_tiles, int tile_blocks, int flag)
int Xorriso__hide_mode(char *mode, int flag)
double Scanf_io_size(char *text, int flag)
char * Text_shellsafe(char *in_text, char *out_text, int flag)
int Xorriso_option_commit(struct XorrisO *xorriso, int flag)
int Xorriso_option_errfile_log(struct XorrisO *xorriso, char *mode, char *path, int flag)
static int Xorriso_determine_name_space(struct XorrisO *xorriso, char *space_name, int flag)
int Xorriso_option_getfacli(struct XorrisO *xorriso, int argc, char **argv, int *idx, int flag)
int Xorriso_option_history(struct XorrisO *xorriso, char *line, int flag)
int Xorriso_option_extract_cut(struct XorrisO *xorriso, char *iso_rr_path, char *start, char *count, char *disk_path, int flag)
int Xorriso_option_devices(struct XorrisO *xorriso, int flag)
int Xorriso_option_end(struct XorrisO *xorriso, int flag)
int Xorriso_option_file_size_limit(struct XorrisO *xorriso, int argc, char **argv, int *idx, int flag)
int Xorriso_option_eject(struct XorrisO *xorriso, char *which, int flag)
int Xorriso_option_drive_class(struct XorrisO *xorriso, char *d_class, char *pattern, int flag)
int Xorriso_option_displacement(struct XorrisO *xorriso, char *value, int flag)
int Xorriso_option_find(struct XorrisO *xorriso, int argc, char **argv, int *idx, int flag)
int Xorriso_option_hardlinks(struct XorrisO *xorriso, char *mode, int flag)
int Xorriso_option_grow_blindly(struct XorrisO *xorriso, char *msc2, int flag)
int Xorriso_option_data_cache_size(struct XorrisO *xorriso, char *num_tiles, char *tile_blocks, int flag)
int Xorriso_option_dummy(struct XorrisO *xorriso, char *mode, int flag)
int Xorriso_option_disk_pattern(struct XorrisO *xorriso, char *mode, int flag)
int Xorriso_option_extract(struct XorrisO *xorriso, char *iso_path, char *disk_path, int flag)
int Xorriso_option_error_behavior(struct XorrisO *xorriso, char *occasion, char *behavior, int flag)
int Xorriso_option_fs(struct XorrisO *xorriso, char *size, int flag)
int Xorriso_option_follow(struct XorrisO *xorriso, char *mode, int flag)
int Xorriso_option_gid(struct XorrisO *xorriso, char *gid, int flag)
int Xorriso_option_dialog(struct XorrisO *xorriso, char *mode, int flag)
int Xorriso_option_drive_access(struct XorrisO *xorriso, char *mode, int flag)
static int Xorriso_truncate_const_find_name(struct XorrisO *xorriso, char *expr, char *buffer, char **namept, int flag)
int Xorriso_option_hide(struct XorrisO *xorriso, char *hide_state, int argc, char **argv, int *idx, int flag)
int Xorriso_option_external_filter(struct XorrisO *xorriso, int argc, char **argv, int *idx, int flag)
int Xorriso_option_file_name_limit(struct XorrisO *xorriso, char *value, int flag)
int Xorriso_option_dev(struct XorrisO *xorriso, char *in_adr, int flag)
int Xorriso_option_disk_dev_ino(struct XorrisO *xorriso, char *mode, int flag)
int Xorriso_option_extract_boot_images(struct XorrisO *xorriso, char *disk_dir_path, int flag)
int Xorriso_option_early_stdio_test(struct XorrisO *xorriso, char *mode, int flag)
int Xorriso_option_hfsplus(struct XorrisO *xorriso, char *mode, int flag)
int Xorriso_option_help(struct XorrisO *xorriso, int flag)
int Xorriso_option_dvd_obs(struct XorrisO *xorriso, char *obs, int flag)
int Xorriso_option_ecma119_map(struct XorrisO *xorriso, char *mode, int flag)
int Xorriso_normalize_acl_text(struct XorrisO *xorriso, char *in_text, char **access_acl_text, char **default_acl_text, int flag)
int Xorriso_eval_problem_status(struct XorrisO *xorriso, int ret, int flag)
int Xorriso_end_idx(struct XorrisO *xorriso, int argc, char **argv, int idx, int flag)
int Xorriso_make_abs_adr(struct XorrisO *xorriso, char *wd, char *name, char adr[], int flag)
int Xorriso_convert_datestring(struct XorrisO *xorriso, char *cmd, char *time_type, char *timestring, int *t_type, time_t *t, int flag)
int Xorriso_opt_args(struct XorrisO *xorriso, char *cmd, int argc, char **argv, int idx, int *end_idx, int *optc, char ***optv, int flag)
int Xorriso_extract_boot_images(struct XorrisO *xorriso, char *disk_dir_path, int flag)
int Xorriso_extract_cut(struct XorrisO *xorriso, char *img_path, char *disk_path, off_t img_offset, off_t bytes, int flag)
int Sfile_str(char target[4096], char *source, int flag)
#define Xorriso_free_meM(pt)
#define Xorriso_alloc_meM(pt, typ, count)
int Xorriso_make_di_array(struct XorrisO *xorriso, int flag)
int Xorriso_finish_hl_update(struct XorrisO *xorriso, int flag)
int Xorriso_make_hln_array(struct XorrisO *xorriso, int flag)
unsigned long match_count
int find_check_md5_result
char result_line[10 *4096]
int volset_change_pending
struct Xorriso_lsT * drive_blacklist
struct Xorriso_lsT * drive_whitelist
struct Xorriso_lsT * drive_greylist
int Xorriso_msgs_submit(struct XorrisO *xorriso, int error_code, char msg_text[], int os_errno, char severity[], int flag)
int Xorriso_process_errfile(struct XorrisO *xorriso, int error_code, char msg_text[], int os_errno, int flag)
int Xorriso_no_findjob(struct XorrisO *xorriso, char *cmd, int flag)
int Xorriso_pacifier_callback(struct XorrisO *xorriso, char *what_done, off_t count, off_t todo, char *current_object, int flag)
int Xorriso_info(struct XorrisO *xorriso, int flag)
int Xorriso_report_md5_outcome(struct XorrisO *xorriso, char *severity, int flag)
int Xorriso_pacifier_reset(struct XorrisO *xorriso, int flag)
int Xorriso_reassure(struct XorrisO *xorriso, char *cmd, char *which_will, int flag)
int Xorriso_result(struct XorrisO *xorriso, int flag)
int Xorriso_restxt(struct XorrisO *xorriso, char *text)
int Xorriso_dialog_input(struct XorrisO *xorriso, char line[], int linesize, int flag)