dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Functions
info.c File Reference

(271a1855f)

#include <config.h>
#include <compat.h>
#include <sys/stat.h>
#include <errno.h>
#include <limits.h>
#include <string.h>
#include <unistd.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <dpkg/i18n.h>
#include <dpkg/c-ctype.h>
#include <dpkg/dpkg.h>
#include <dpkg/dpkg-db.h>
#include <dpkg/fdio.h>
#include <dpkg/ar.h>
#include <dpkg/options.h>
#include "dpkg-split.h"
Include dependency graph for info.c:

Functions

struct partinforead_info (struct dpkg_ar *ar, struct partinfo *ir)
 Read a deb-split part archive.
 
void mustgetpartinfo (const char *filename, struct partinfo *ri)
 
void print_info (const struct partinfo *pi)
 
int do_info (const char *const *argv)
 

Function Documentation

◆ do_info()

int do_info ( const char *const *  argv)

References _, badusage(), cipaction, dpkg_ar_close(), dpkg_ar_open(), m_output(), ohshite(), cmdinfo::olong, print_info(), and read_info().

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().

Referenced by do_auto(), do_discard(), do_join(), and do_queue().

Here is the call graph for this function:
Here is the caller 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_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_hdr::ar_name, partinfo::arch, varbuf::buf, deb_version_parse(), DPKG_AR_MAGIC, dpkg_ar_member_get_size(), dpkg_ar_member_is_illegal(), dpkg_ar_normalize_name(), dpkg_ar::fd, fd_read(), partinfo::filename, partinfo::filesize, partinfo::fmtversion, partinfo::headerlen, deb_version::major, partinfo::maxpartlen, partinfo::maxpartn, MD5HASHLEN, partinfo::md5sum, deb_version::minor, dpkg_ar::mode, dpkg_ar::name, nfstrsave(), ohshit(), ohshite(), partinfo::orglength, partinfo::package, PARTMAGIC, read_fail(), dpkg_ar::size, partinfo::thispartlen, partinfo::thispartn, partinfo::thispartoffset, varbuf_grow(), VARBUF_INIT, varbuf_reset(), varbuf_trunc(), and partinfo::version.

Referenced by do_auto(), do_info(), and mustgetpartinfo().

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