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)  

make_isohybrid_mbr.c File Reference
#include <ctype.h>
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/time.h>
#include "filesrc.h"
#include "ecma119.h"
#include "eltorito.h"
#include "system_area.h"
#include "image.h"
#include "messages.h"
Include dependency graph for make_isohybrid_mbr.c:

Go to the source code of this file.

Functions

static int lsb_to_buf (char **wpt, uint32_t value, int bits, int flag)
 
int make_isohybrid_mbr (int bin_lba, int *img_blocks, char *mbr, int flag)
 
static int lba512chs_to_buf (char **wpt, off_t lba, int head_count, int sector_count)
 
int assess_isohybrid_gpt_apm (Ecma119Image *t, int *gpt_count, int gpt_idx[128], int *apm_count, int flag)
 
static int insert_apm_head (uint8_t *buf, int apm_count)
 
static int gpt_images_as_mbr_partitions (Ecma119Image *t, char *wpt, int gpt_idx[128], int *gpt_cursor)
 
static uint32_t iso_make_mbr_id (Ecma119Image *t, int flag)
 
int make_isolinux_mbr (uint32_t *img_blocks, Ecma119Image *t, int part_offset, int part_number, int fs_type, uint8_t *buf, int flag)
 

Function Documentation

◆ assess_isohybrid_gpt_apm()

◆ gpt_images_as_mbr_partitions()

static int gpt_images_as_mbr_partitions ( Ecma119Image t,
char *  wpt,
int  gpt_idx[128],
int *  gpt_cursor 
)
static

◆ insert_apm_head()

static int insert_apm_head ( uint8_t *  buf,
int  apm_count 
)
static

Definition at line 524 of file make_isohybrid_mbr.c.

References ISO_ISOLINUX_CANT_PATCH, iso_msgs_submit(), and ISO_SUCCESS.

Referenced by make_isolinux_mbr().

◆ iso_make_mbr_id()

static uint32_t iso_make_mbr_id ( Ecma119Image t,
int  flag 
)
static

◆ lba512chs_to_buf()

static int lba512chs_to_buf ( char **  wpt,
off_t  lba,
int  head_count,
int  sector_count 
)
static

Definition at line 379 of file make_isohybrid_mbr.c.

Referenced by make_isolinux_mbr().

◆ lsb_to_buf()

static int lsb_to_buf ( char **  wpt,
uint32_t  value,
int  bits,
int  flag 
)
static

◆ make_isohybrid_mbr()

int make_isohybrid_mbr ( int  bin_lba,
int *  img_blocks,
char *  mbr,
int  flag 
)

Definition at line 116 of file make_isohybrid_mbr.c.

References lsb_to_buf().

Referenced by iso_write_system_area(), and Xorriso_set_isolinux_options().

◆ make_isolinux_mbr()