dpkg 1.21.11
Data Structures | Macros | Functions | Variables
dpkg-split.h File Reference

(affb86e43)

#include <dpkg/ar.h>
#include <dpkg/deb-version.h>
Include dependency graph for dpkg-split.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  partinfo
 
struct  partqueue
 

Macros

#define SPLITVERSION   "2.1"
 
#define PARTSDIR   "parts"
 
#define PARTMAGIC   "debian-split"
 
#define HEADERALLOWANCE   1024
 
#define SPLITPARTDEFMAX   (450 * 1024)
 

Functions

void read_fail (int rc, const char *filename, const char *what) DPKG_ATTR_NORET
 
void print_info (const struct partinfo *pi)
 
struct partinforead_info (struct dpkg_ar *ar, struct partinfo *ir)
 Read a deb-split part archive. More...
 
void reassemble (struct partinfo **partlist, const char *outputfile)
 
void mustgetpartinfo (const char *filename, struct partinfo *ri)
 
void addtopartlist (struct partinfo **, struct partinfo *, struct partinfo *refi)
 

Variables

action_func do_split
 
action_func do_join
 
action_func do_info
 
action_func do_auto
 
action_func do_queue
 
action_func do_discard
 
off_t opt_maxpartsize
 
const char * opt_depotdir
 
const char * opt_outputfile
 
int opt_npquiet
 
int opt_msdos
 

Macro Definition Documentation

◆ HEADERALLOWANCE

#define HEADERALLOWANCE   1024

◆ PARTMAGIC

#define PARTMAGIC   "debian-split"

◆ PARTSDIR

#define PARTSDIR   "parts"

◆ SPLITPARTDEFMAX

#define SPLITPARTDEFMAX   (450 * 1024)

◆ SPLITVERSION

#define SPLITVERSION   "2.1"

Function Documentation

◆ addtopartlist()

void addtopartlist ( struct partinfo **  partlist,
struct partinfo pi,
struct partinfo refi 
)

References _, partinfo::filename, partinfo::maxpartlen, partinfo::maxpartn, partinfo::md5sum, ohshit(), partinfo::orglength, partinfo::package, print_info(), partinfo::thispartn, and partinfo::version.

Here is the call graph for this function:

◆ mustgetpartinfo()

void mustgetpartinfo ( const char *  filename,
struct partinfo ri 
)

References _, dpkg_ar_close(), dpkg_ar_open(), ohshite(), and read_info().

Here is the call graph for this function:

◆ print_info()

void print_info ( const struct partinfo pi)

References _, partinfo::arch, C_, partinfo::filename, partinfo::filesize, partinfo::fmtversion, deb_version::major, partinfo::maxpartlen, partinfo::maxpartn, partinfo::md5sum, deb_version::minor, partinfo::orglength, partinfo::package, partinfo::thispartlen, partinfo::thispartn, partinfo::thispartoffset, and partinfo::version.

Referenced by addtopartlist(), and do_info().

Here is the caller graph for this function:

◆ read_fail()

void read_fail ( int  rc,
const char *  filename,
const char *  what 
)

References _, ohshit(), and ohshite().

Here is the call graph for this function:

◆ read_info()

struct partinfo * read_info ( struct dpkg_ar ar,
struct partinfo ir 
)

Read a deb-split part archive.

Returns
Part info (nfmalloc'd) if was an archive part and we read it, NULL if it wasn't.

References _, DPKG_AR_MAGIC, dpkg_ar::fd, fd_read(), dpkg_ar::name, and ohshite().

Referenced by do_info(), and mustgetpartinfo().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reassemble()

void reassemble ( struct partinfo **  partlist,
const char *  outputfile 
)

References _, fd_fd_copy, fd_skip, partinfo::filename, partinfo::headerlen, partinfo::maxpartn, ohshit(), ohshite(), P_, dpkg_error::str, and partinfo::thispartlen.

Here is the call graph for this function:

Variable Documentation

◆ do_auto

action_func do_auto

◆ do_discard

action_func do_discard

◆ do_info

action_func do_info

◆ do_join

action_func do_join

◆ do_queue

action_func do_queue

◆ do_split

action_func do_split

◆ opt_depotdir

const char* opt_depotdir
extern

◆ opt_maxpartsize

off_t opt_maxpartsize
extern

◆ opt_msdos

int opt_msdos
extern

◆ opt_npquiet

int opt_npquiet
extern

◆ opt_outputfile

const char* opt_outputfile
extern