dpkg 1.21.11
Functions
info.c File Reference

(affb86e43)

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

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_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: