"Fossies" - the Fresh Open Source Software Archive

Member "libisoburn-1.5.4/xorriso/disk_ops.h" (8 Jul 2020, 5341 Bytes) of package /linux/misc/libisoburn-1.5.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "disk_ops.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 1.5.0_vs_1.5.2.

    1 
    2 /* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
    3 
    4    Copyright 2007-2019 Thomas Schmitt, <scdbackup@gmx.net>
    5 
    6    Provided under GPL version 2 or later.
    7 
    8    This file contains declarations of class DirseQ which
    9    crawls along a directory's content list.
   10 */
   11 
   12 
   13 #ifndef Xorriso_pvt_diskop_includeD
   14 #define Xorriso_pvt_diskop_includeD yes
   15 
   16 
   17 /* @param flag bit0= simple readlink(): no normalization, no multi-hop
   18 */
   19 int Xorriso_resolve_link(struct XorrisO *xorriso,
   20                      char *link_path, char result_path[SfileadrL], int flag);
   21 
   22 int Xorriso_convert_gidstring(struct XorrisO *xorriso, char *gid_string,
   23                               gid_t *gid, int flag);
   24 
   25 int Xorriso_convert_modstring(struct XorrisO *xorriso, char *cmd, char *mode,
   26                               mode_t *mode_and, mode_t *mode_or, int flag);
   27 
   28 int Xorriso_convert_uidstring(struct XorrisO *xorriso, char *uid_string,
   29                               uid_t *uid, int flag); 
   30 
   31 /* @param flag bit0= for Xorriso_msgs_submit: use pager
   32 */
   33 int Xorriso_hop_link(struct XorrisO *xorriso, char *link_path,
   34                    struct LinkiteM **link_stack, struct stat *stbuf, int flag);
   35 
   36 int Xorriso__mode_to_perms(mode_t st_mode, char perms[11], int flag);
   37 
   38 int Xorriso_format_ls_l(struct XorrisO *xorriso, struct stat *stbuf, int flag);
   39 
   40 /* @param flag bit0= long format
   41                bit1= do not print count of nodes
   42                bit2= du format
   43                bit3= print directories as themselves (ls -d)
   44 */
   45 int Xorriso_lsx_filev(struct XorrisO *xorriso, char *wd, 
   46                       int filec, char **filev, off_t boss_mem, int flag);
   47 
   48 /* @param flag bit0= do not only sum up sizes but also print subdirs
   49                bit1= this is a recursion
   50                bit2= do not report result by Xorriso_result()
   51    @return <=0 error , 1 ok , 2 could not open directory
   52 */
   53 int Xorriso_show_dux_subs(struct XorrisO *xorriso,
   54                       char *abs_path, char *rel_path, off_t *size,
   55                       off_t boss_mem,
   56                       struct LinkiteM *link_stack,
   57                       int flag);
   58 
   59 /*
   60    @param flag >>> bit0= remove whole sub tree: rm -r
   61                bit1= remove empty directory: rmdir 
   62                bit2= recursion: do not reassure in mode 2 "tree"
   63                bit3= this is for overwriting and not for plain removal
   64                bit4= count deleted files in xorriso->pacifier_count
   65                bit5= with bit0 only remove directory content, not the directory
   66    @return   <=0 = error
   67                1 = removed leaf file object
   68                2 = removed directory or tree
   69                3 = did not remove on user revocation
   70 */
   71 int Xorriso_rmx(struct XorrisO *xorriso, off_t boss_mem, char *path, int flag);
   72 
   73 int Xorriso_findx(struct XorrisO *xorriso, struct FindjoB *job,
   74                   char *abs_dir_parm, char *dir_path,
   75                   struct stat *dir_stbuf, int depth,
   76                   struct LinkiteM *link_stack, int flag);
   77 
   78 /* @param flag bit0= no hardlink reconstruction
   79                bit1= do not set xorriso->node_*_prefixes
   80                bit5= -extract_single: eventually do not insert directory tree
   81 */
   82 int Xorriso_restore_sorted(struct XorrisO *xorriso, int count,
   83                            char **src_array, char **tgt_array, 
   84                            int *problem_count, int flag);
   85 
   86 /* @param flag bit0= path is a directory
   87                bit2= recursion: do not reassure in mode 2 "tree"
   88                bit3= this is for overwriting and not for plain removal
   89 */
   90 int Xorriso_reassure_restore(struct XorrisO *xorriso, char *path, int flag);
   91 
   92 /* @param flag bit7= return 4 if restore fails from denied permission
   93                      do not issue error message
   94    @return <=0 failure , 1 success ,
   95            4 with bit7: permission to create file was denied
   96 */
   97 int Xorriso_make_tmp_path(struct XorrisO *xorriso, char *orig_path,
   98                           char *tmp_path, int *fd, int flag);
   99 
  100 /* @param flag bit0= change regardless of xorriso->do_auto_chmod
  101                bit1= desired is only rx
  102 */
  103 int Xorriso_auto_chmod(struct XorrisO *xorriso, char *disk_path, int flag);
  104 
  105 int Xorriso_make_accessible(struct XorrisO *xorriso, char *disk_path,int flag);
  106 
  107 /* @param flag bit0= prefer to find a match after *img_prefixes
  108                      (but deliver img_prefixes if no other can be found)
  109 */
  110 int Xorriso_make_restore_path(struct XorrisO *xorriso,
  111          struct Xorriso_lsT **img_prefixes, struct Xorriso_lsT **disk_prefixes,
  112          char img_path[SfileadrL], char disk_path[SfileadrL], int flag);
  113 
  114 int Xorriso_restore_make_hl(struct XorrisO *xorriso,
  115                             char *old_path, char *new_path, int flag);
  116 
  117 int Xorriso_afile_fopen(struct XorrisO *xorriso,
  118                         char *filename, char *mode, FILE **ret_fp, int flag);
  119 
  120 int Xorriso_make_mount_cmd(struct XorrisO *xorriso, char *cmd,
  121                            int lba, int track, int session, char *volid,
  122                            char *devadr, char result[SfileadrL], int flag);
  123 
  124 int Xorriso_append_scdbackup_record(struct XorrisO *xorriso, int flag);
  125 
  126 int Xorriso_concat(struct XorrisO *xorriso, char *mode, char *target,
  127                    int progc, char **progv,
  128                    int filec, char **filev, int flag);
  129 
  130 #endif /* ! Xorriso_pvt_diskop_includeD */
  131