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.
  Fossies Dox: xorriso-1.5.4.pl02.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

iso_img.c File Reference
#include <ctype.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <time.h>
#include <errno.h>
#include <sys/wait.h>
#include "xorriso.h"
#include "xorriso_private.h"
#include "xorrisoburn.h"
#include "lib_mgt.h"
#include "iso_img.h"
#include "iso_tree.h"
#include "drive_mgt.h"
Include dependency graph for iso_img.c:

Go to the source code of this file.

Data Structures

struct  elto_img_par
 

Macros

#define Xorriso_record_cmd_linE
 
#define Xorriso_record_boot_imglinE
 
#define Xorriso_max_endless_uefi_sizE   (1 << 19)
 

Functions

int Xorriso_set_ignore_aclea (struct XorrisO *xorriso, int flag)
 
int Xorriso_update_volid (struct XorrisO *xorriso, int flag)
 
int Xorriso_create_empty_iso (struct XorrisO *xorriso, int flag)
 
int Xorriso_record_boot_info (struct XorrisO *xorriso, int flag)
 
int Xorriso_assert_volid (struct XorrisO *xorriso, int msc1, int flag)
 
int Xorriso_is_isohybrid (struct XorrisO *xorriso, IsoFile *bootimg_node, int flag)
 
int Xorriso_image_has_md5 (struct XorrisO *xorriso, int flag)
 
static const char * un0 (const char *text)
 
static int Xorriso_report_pvd_time (struct XorrisO *xorriso, char *head, char *pvd_time, int flag)
 
int Xorriso_pvd_info (struct XorrisO *xorriso, int flag)
 
int Xorriso_set_volid (struct XorrisO *xorriso, char *volid, int flag)
 
int Xorriso_get_volid (struct XorrisO *xorriso, char volid[33], int flag)
 
int Xorriso_boot_item_status (struct XorrisO *xorriso, char *cat_path, char *bin_path, int platform_id, int patch_isolinux, int emul, off_t load_size, unsigned char *id_string, unsigned char *selection_crit, char *form, char *filter, FILE *fp, int flag)
 
int Xorriso_status_hppa (struct XorrisO *xorriso, char *what, char *value, char *filter, FILE *fp, int flag)
 
int Xorriso_boot_status_non_mbr (struct XorrisO *xorriso, IsoImage *image, char *filter, FILE *fp, int flag)
 
int Xorriso_append_part_status (struct XorrisO *xorriso, IsoImage *image, char *filter, FILE *fp, int flag)
 
int Xorriso_boot_image_status (struct XorrisO *xorriso, char *filter, FILE *fp, int flag)
 
int Xorriso__append_boot_params (char *line, ElToritoBootImage *bootimg, int flag)
 
int Xorriso_show_boot_info (struct XorrisO *xorriso, int flag)
 
int Xorriso_get_volume (struct XorrisO *xorriso, IsoImage **volume, int flag)
 
int Xorriso_change_is_pending (struct XorrisO *xorriso, int flag)
 
int Xorriso_set_change_pending (struct XorrisO *xorriso, int flag)
 
int Xorriso_mount (struct XorrisO *xorriso, char *dev, int adr_mode, char *adr_value, char *cmd, int flag)
 
int Xorriso_add_mips_boot_file (struct XorrisO *xorriso, char *path, int flag)
 
int Xorriso_set_hppa_boot_parm (struct XorrisO *xorriso, char *text, char *what, int flag)
 
int Xorriso_set_alpha_boot (struct XorrisO *xorriso, char *path, int flag)
 
int Xorriso_coordinate_system_area (struct XorrisO *xorriso, int sa_type, int options, char *cmd, int flag)
 
int Xorriso_gpt_crc (struct XorrisO *xorriso, char *path, int flag)
 
static int Xorriso_split_report_line (struct XorrisO *xorriso, char *line, int num_limit, char *name, char **contentpt, double *num, int *num_count, char **textpt, int flag)
 
int Xorriso_record_cmd_line (struct XorrisO *xorriso, char *buf, char **cmds, int *cmd_count, int flag)
 
int Xorriso_add_intvl_adr (struct XorrisO *xorriso, char *buf, uint64_t start_adr, uint64_t end_adr, char *suffix, int flag)
 
int Xorriso_add_offset_size (struct XorrisO *xorriso, char *buf, off_t byte_offset, off_t byte_size, int flag)
 
static int Xorriso_register_eltorito_gpt (struct XorrisO *xorriso, struct elto_img_par *et_img, int ptype, int *efi_boot_part, int *first_efi, int flag)
 
static int Xorriso_search_eltorito_path (struct XorrisO *xorriso, struct elto_img_par *et_imgs, int elto_count, char *path, int ptype, int *found, int *efi_boot_part, int flag)
 
static int Xorriso_search_eltorito_lba (struct XorrisO *xorriso, struct elto_img_par *et_imgs, int elto_count, unsigned int lba, int *found, int flag)
 
int Xorriso_highest_data_block (struct XorrisO *xorriso, uint32_t *high_block, int flag)
 
static int Xorriso_scan_report_lines (struct XorrisO *xorriso, char **et_lines, int et_line_count, char **sa_lines, int sa_line_count, char **cmds, int *cmd_count, char **boot_imgs, int *boot_img_count, int flag)
 
static int Xorriso_report_to_cmd (struct XorrisO *xorriso, char **et_lines, int et_line_count, char **sa_lines, int sa_line_count, char ***cmds, int *cmd_count, char ***boot_imgs, int *boot_img_count, int flag)
 
static void Xorriso_report_lines (struct XorrisO *xorriso, char **lines, int line_count)
 
int Xorriso_report_system_area (struct XorrisO *xorriso, char *form, int flag)
 
int Xorriso_list_boot_images (struct XorrisO *xorriso, char ***imgs, int *img_count, int flag)
 

Macro Definition Documentation

◆ Xorriso_max_endless_uefi_sizE

#define Xorriso_max_endless_uefi_sizE   (1 << 19)

◆ Xorriso_record_boot_imglinE

#define Xorriso_record_boot_imglinE
Value:
{ \
ret= Xorriso_record_cmd_line(xorriso, buf, boot_imgs, boot_img_count, \
flag & 1); \
buf[0]= 0; \
if(ret <= 0) \
goto ex; \
}
int Xorriso_record_cmd_line(struct XorrisO *xorriso, char *buf, char **cmds, int *cmd_count, int flag)
Definition: iso_img.c:1492

◆ Xorriso_record_cmd_linE

#define Xorriso_record_cmd_linE
Value:
{ \
ret= Xorriso_record_cmd_line(xorriso, buf, cmds, cmd_count, flag & 1); \
buf[0]= 0; \
if(ret <= 0) \
goto ex; \
}

Function Documentation

◆ un0()

static const char* un0 ( const char *  text)
static

Definition at line 238 of file iso_img.c.

Referenced by Xorriso_pvd_info(), and Xorriso_scan_report_lines().

◆ Xorriso__append_boot_params()

int Xorriso__append_boot_params ( char *  line,
ElToritoBootImage bootimg,
int  flag 
)

◆ Xorriso_add_intvl_adr()

int Xorriso_add_intvl_adr ( struct XorrisO xorriso,
char *  buf,
uint64_t  start_adr,
uint64_t  end_adr,
char *  suffix,
int  flag 
)

Definition at line 1515 of file iso_img.c.

References XorrisO::indev, and Text_shellsafe().

Referenced by Xorriso_scan_report_lines().

◆ Xorriso_add_mips_boot_file()

int Xorriso_add_mips_boot_file ( struct XorrisO xorriso,
char *  path,
int  flag 
)

◆ Xorriso_add_offset_size()

int Xorriso_add_offset_size ( struct XorrisO xorriso,
char *  buf,
off_t  byte_offset,
off_t  byte_size,
int  flag 
)

Definition at line 1541 of file iso_img.c.

References Sfile_off_t_text().

Referenced by Xorriso_scan_report_lines().

◆ Xorriso_append_part_status()

◆ Xorriso_assert_volid()

◆ Xorriso_boot_image_status()

◆ Xorriso_boot_item_status()

int Xorriso_boot_item_status ( struct XorrisO xorriso,
char *  cat_path,
char *  bin_path,
int  platform_id,
int  patch_isolinux,
int  emul,
off_t  load_size,
unsigned char *  id_string,
unsigned char *  selection_crit,
char *  form,
char *  filter,
FILE *  fp,
int  flag 
)

◆ Xorriso_boot_status_non_mbr()

◆ Xorriso_change_is_pending()

◆ Xorriso_coordinate_system_area()

int Xorriso_coordinate_system_area ( struct XorrisO xorriso,
int  sa_type,
int  options,
char *  cmd,
int  flag 
)

◆ Xorriso_create_empty_iso()

◆ Xorriso_get_volid()

int Xorriso_get_volid ( struct XorrisO xorriso,
char  volid[33],
int  flag 
)

Definition at line 357 of file iso_img.c.

References iso_image_get_volume_id(), and Xorriso_get_volume().

Referenced by Xorriso_update_volid().

◆ Xorriso_get_volume()

◆ Xorriso_gpt_crc()

int Xorriso_gpt_crc ( struct XorrisO xorriso,
char *  path,
int  flag 
)

◆ Xorriso_highest_data_block()

int Xorriso_highest_data_block ( struct XorrisO xorriso,
uint32_t *  high_block,
int  flag 
)

◆ Xorriso_image_has_md5()

int Xorriso_image_has_md5 ( struct XorrisO xorriso,
int  flag 
)

◆ Xorriso_is_isohybrid()

int Xorriso_is_isohybrid ( struct XorrisO xorriso,
IsoFile bootimg_node,
int  flag 
)

◆ Xorriso_list_boot_images()

int Xorriso_list_boot_images ( struct XorrisO xorriso,
char ***  imgs,
int *  img_count,
int  flag 
)

◆ Xorriso_mount()

◆ Xorriso_pvd_info()

◆ Xorriso_record_boot_info()

◆ Xorriso_record_cmd_line()

int Xorriso_record_cmd_line ( struct XorrisO xorriso,
char *  buf,
char **  cmds,
int *  cmd_count,
int  flag 
)

Definition at line 1492 of file iso_img.c.

References Xorriso_alloc_meM.

Referenced by Xorriso_findi_action().

◆ Xorriso_register_eltorito_gpt()

static int Xorriso_register_eltorito_gpt ( struct XorrisO xorriso,
struct elto_img_par et_img,
int  ptype,
int *  efi_boot_part,
int *  first_efi,
int  flag 
)
static

◆ Xorriso_report_lines()

static void Xorriso_report_lines ( struct XorrisO xorriso,
char **  lines,
int  line_count 
)
static

Definition at line 2960 of file iso_img.c.

References XorrisO::result_line, and Xorriso_result().

Referenced by Xorriso_report_system_area().

◆ Xorriso_report_pvd_time()

static int Xorriso_report_pvd_time ( struct XorrisO xorriso,
char *  head,
char *  pvd_time,
int  flag 
)
static

Definition at line 246 of file iso_img.c.

References XorrisO::result_line, and Xorriso_result().

Referenced by Xorriso_pvd_info().

◆ Xorriso_report_system_area()

◆ Xorriso_report_to_cmd()

static int Xorriso_report_to_cmd ( struct XorrisO xorriso,
char **  et_lines,
int  et_line_count,
char **  sa_lines,
int  sa_line_count,
char ***  cmds,
int *  cmd_count,
char ***  boot_imgs,
int *  boot_img_count,
int  flag 
)
static

◆ Xorriso_scan_report_lines()

◆ Xorriso_search_eltorito_lba()

static int Xorriso_search_eltorito_lba ( struct XorrisO xorriso,
struct elto_img_par et_imgs,
int  elto_count,
unsigned int  lba,
int *  found,
int  flag 
)
static

Definition at line 1613 of file iso_img.c.

Referenced by Xorriso_scan_report_lines().

◆ Xorriso_search_eltorito_path()

static int Xorriso_search_eltorito_path ( struct XorrisO xorriso,
struct elto_img_par et_imgs,
int  elto_count,
char *  path,
int  ptype,
int *  found,
int *  efi_boot_part,
int  flag 
)
static

Definition at line 1590 of file iso_img.c.

References Xorriso_register_eltorito_gpt().

Referenced by Xorriso_scan_report_lines().

◆ Xorriso_set_alpha_boot()

int Xorriso_set_alpha_boot ( struct XorrisO xorriso,
char *  path,
int  flag 
)

◆ Xorriso_set_change_pending()

◆ Xorriso_set_hppa_boot_parm()

int Xorriso_set_hppa_boot_parm ( struct XorrisO xorriso,
char *  text,
char *  what,
int  flag 
)

◆ Xorriso_set_ignore_aclea()

int Xorriso_set_ignore_aclea ( struct XorrisO xorriso,
int  flag 
)

◆ Xorriso_set_volid()

◆ Xorriso_show_boot_info()

◆ Xorriso_split_report_line()

static int Xorriso_split_report_line ( struct XorrisO xorriso,
char *  line,
int  num_limit,
char *  name,
char **  contentpt,
double *  num,
int *  num_count,
char **  textpt,
int  flag 
)
static

Definition at line 1442 of file iso_img.c.

References XorrisO::info_text, and Xorriso_msgs_submit().

Referenced by Xorriso_scan_report_lines().

◆ Xorriso_status_hppa()

int Xorriso_status_hppa ( struct XorrisO xorriso,
char *  what,
char *  value,
char *  filter,
FILE *  fp,
int  flag 
)

Definition at line 540 of file iso_img.c.

References XorrisO::result_line, Text_shellsafe(), and Xorriso_status_result().

Referenced by Xorriso_boot_status_non_mbr().

◆ Xorriso_update_volid()

int Xorriso_update_volid ( struct XorrisO xorriso,
int  flag 
)