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)  

sort_cmp.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 "base_obj.h"
#include "lib_mgt.h"
#include "sort_cmp.h"
#include "iso_tree.h"
#include "iso_manip.h"
Include dependency graph for sort_cmp.c:

Go to the source code of this file.

Functions

int Xorriso__findi_sorted_ino_cmp (const void *p1, const void *p2)
 
int Xorriso__hln_cmp (const void *p1, const void *p2)
 
int Xorriso__findi_sorted_cmp (const void *p1, const void *p2)
 
int Xorriso_sort_node_array (struct XorrisO *xorriso, int flag)
 
int Xorriso__search_node (void *node_array[], int n, int(*cmp)(const void *p1, const void *p2), void *node, int *idx, int flag)
 
int Xorriso_search_in_hln_array (struct XorrisO *xorriso, void *node, int *idx, int flag)
 
int Xorriso__get_di (IsoNode *node, dev_t *dev, ino_t *ino, int flag)
 
int Xorriso__di_ino_cmp (const void *p1, const void *p2)
 
int Xorriso__di_cmp (const void *p1, const void *p2)
 
int Xorriso__sort_di (void *node_array[], int count, int flag)
 
int Xorriso_invalidate_di_item (struct XorrisO *xorriso, IsoNode *node, int flag)
 
int Xorriso_search_di_range (struct XorrisO *xorriso, IsoNode *node, int *idx, int *low, int *high, int flag)
 
int Xorriso__node_lba_cmp (const void *node1, const void *node2)
 
int Xorriso__node_name_cmp (const void *node1, const void *node2)
 
int Xorriso_sorted_node_array (struct XorrisO *xorriso, IsoDir *dir_node, int *nodec, IsoNode ***node_array, off_t boss_mem, int flag)
 
int Xorriso_remake_hln_array (struct XorrisO *xorriso, int flag)
 
int Xorriso_make_hln_array (struct XorrisO *xorriso, int flag)
 
int Xorriso_make_di_array (struct XorrisO *xorriso, int flag)
 
int Xorriso_hardlink_update (struct XorrisO *xorriso, int *compare_result, char *disk_path, char *iso_rr_path, int flag)
 
int Xorriso_finish_hl_update (struct XorrisO *xorriso, int flag)
 

Function Documentation

◆ Xorriso__di_cmp()

int Xorriso__di_cmp ( const void *  p1,
const void *  p2 
)

◆ Xorriso__di_ino_cmp()

int Xorriso__di_ino_cmp ( const void *  p1,
const void *  p2 
)

Definition at line 194 of file sort_cmp.c.

References Xorriso__get_di().

Referenced by Xorriso__di_cmp(), and Xorriso_search_di_range().

◆ Xorriso__findi_sorted_cmp()

int Xorriso__findi_sorted_cmp ( const void *  p1,
const void *  p2 
)

Definition at line 69 of file sort_cmp.c.

References Xorriso__findi_sorted_ino_cmp().

Referenced by Xorriso_sort_node_array().

◆ Xorriso__findi_sorted_ino_cmp()

int Xorriso__findi_sorted_ino_cmp ( const void *  p1,
const void *  p2 
)

◆ Xorriso__get_di()

int Xorriso__get_di ( IsoNode node,
dev_t *  dev,
ino_t *  ino,
int  flag 
)

◆ Xorriso__hln_cmp()

int Xorriso__hln_cmp ( const void *  p1,
const void *  p2 
)

Definition at line 53 of file sort_cmp.c.

References Xorriso__findi_sorted_ino_cmp().

Referenced by Xorriso_remake_hln_array().

◆ Xorriso__node_lba_cmp()

int Xorriso__node_lba_cmp ( const void *  node1,
const void *  node2 
)

Definition at line 308 of file sort_cmp.c.

References Xorriso__file_start_lba().

Referenced by Xorriso__findi_sorted_ino_cmp(), and Xorriso_findi_iter().

◆ Xorriso__node_name_cmp()

int Xorriso__node_name_cmp ( const void *  node1,
const void *  node2 
)

Definition at line 323 of file sort_cmp.c.

References iso_node_get_name().

Referenced by Xorriso_sorted_node_array().

◆ Xorriso__search_node()

int Xorriso__search_node ( void *  node_array[],
int  n,
int(*)(const void *p1, const void *p2)  cmp,
void *  node,
int *  idx,
int  flag 
)

◆ Xorriso__sort_di()

int Xorriso__sort_di ( void *  node_array[],
int  count,
int  flag 
)

Definition at line 241 of file sort_cmp.c.

References Xorriso__di_cmp().

Referenced by Xorriso_make_di_array().

◆ Xorriso_finish_hl_update()

◆ Xorriso_hardlink_update()

int Xorriso_hardlink_update ( struct XorrisO xorriso,
int *  compare_result,
char *  disk_path,
char *  iso_rr_path,
int  flag 
)

◆ Xorriso_invalidate_di_item()

int Xorriso_invalidate_di_item ( struct XorrisO xorriso,
IsoNode node,
int  flag 
)

◆ Xorriso_make_di_array()

◆ Xorriso_make_hln_array()

◆ Xorriso_remake_hln_array()

◆ Xorriso_search_di_range()

int Xorriso_search_di_range ( struct XorrisO xorriso,
IsoNode node,
int *  idx,
int *  low,
int *  high,
int  flag 
)

◆ Xorriso_search_in_hln_array()

int Xorriso_search_in_hln_array ( struct XorrisO xorriso,
void *  node,
int *  idx,
int  flag 
)

◆ Xorriso_sort_node_array()

int Xorriso_sort_node_array ( struct XorrisO xorriso,
int  flag 
)

◆ Xorriso_sorted_node_array()

int Xorriso_sorted_node_array ( struct XorrisO xorriso,
IsoDir dir_node,
int *  nodec,
IsoNode ***  node_array,
off_t  boss_mem,
int  flag 
)