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

(5601b4769)

#include <config.h>
#include <compat.h>
#include <sys/types.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <dpkg/i18n.h>
#include <dpkg/dpkg.h>
Include dependency graph for mustlib.c:

Functions

void * m_malloc (size_t amount)
 
void * m_calloc (size_t nmemb, size_t size)
 
void * m_realloc (void *r, size_t amount)
 
char * m_strdup (const char *str)
 
char * m_strndup (const char *str, size_t n)
 
int m_vasprintf (char **strp, const char *fmt, va_list args)
 
int m_asprintf (char **strp, const char *fmt,...)
 
int m_dup (int oldfd)
 
void m_dup2 (int oldfd, int newfd)
 
void m_pipe (int fds[2])
 
void m_output (FILE *f, const char *name)
 
void setcloexec (int fd, const char *fn)
 

Function Documentation

◆ m_asprintf()

int m_asprintf ( char **  strp,
const char *  fmt,
  ... 
)

References args, and m_vasprintf().

Referenced by maintscript_fallback(), and maintscript_new().

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

◆ m_calloc()

void * m_calloc ( size_t  nmemb,
size_t  size 
)

Referenced by pager_spawn().

Here is the caller graph for this function:

◆ m_dup()

int m_dup ( int  oldfd)

References _, ohshite(), and onerr_abort.

Referenced by pager_spawn().

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

◆ m_dup2()

void m_dup2 ( int  oldfd,
int  newfd 
)

References _, ohshite(), and onerr_abort.

Referenced by extracthalf(), pager_reap(), pager_spawn(), and process_archive().

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

◆ m_malloc()

void * m_malloc ( size_t  amount)

◆ m_output()

void m_output ( FILE *  f,
const char *  name 
)

References _, and ohshite().

Referenced by archivefiles(), audit(), do_auto(), do_build(), do_info(), do_queue(), extracthalf(), fsys_hash_report(), getselections(), main(), parse_force(), pkg_hash_report(), predeppackage(), print_foreign_arches(), printarch(), process_queue(), unpackchk(), and verify().

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

◆ m_pipe()

void m_pipe ( int  fds[2])

References _, ohshite(), and onerr_abort.

Referenced by extracthalf(), pager_spawn(), and process_archive().

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

◆ m_realloc()

void * m_realloc ( void *  r,
size_t  amount 
)

Referenced by archivefiles(), commandfd(), and varbuf_grow().

Here is the caller graph for this function:

◆ m_strdup()

char * m_strdup ( const char *  str)

Referenced by archivefiles(), atomic_file_new(), commandfd(), dir_make_path(), dir_make_path_parent(), dir_sync_path_parent(), dpkg_db_set_dir(), dpkg_fsys_set_dir(), dpkg_get_pid_execname(), filter_add(), match_node_new(), pkg_hash_find_set(), pkg_spec_parse(), pkg_spec_set(), and varbuf_detach().

Here is the caller graph for this function:

◆ m_strndup()

char * m_strndup ( const char *  str,
size_t  n 
)

Referenced by pkg_spec_parse().

Here is the caller graph for this function:

◆ m_vasprintf()

int m_vasprintf ( char **  strp,
const char *  fmt,
va_list  args 
)

References _, args, ohshite(), and onerr_abort.

Referenced by badusage(), dpkg_error_print(), info(), m_asprintf(), notice(), str_fmt(), and warningv().

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

◆ setcloexec()

void setcloexec ( int  fd,
const char *  fn 
)

References _, and ohshite().

Referenced by debug_set_output(), dpkg_db_reopen(), file_lock(), log_message(), statusfd_add(), and trigdef_update_start().

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