dpkg 1.22.7-3-g89f48
|
#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>
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) |
int m_asprintf | ( | char ** | strp, |
const char * | fmt, | ||
... | |||
) |
References args, and m_vasprintf().
Referenced by maintscript_fallback(), and maintscript_new().
void * m_calloc | ( | size_t | nmemb, |
size_t | size | ||
) |
int m_dup | ( | int | oldfd | ) |
References _, ohshite(), and onerr_abort.
Referenced by pager_spawn().
void m_dup2 | ( | int | oldfd, |
int | newfd | ||
) |
References _, ohshite(), and onerr_abort.
Referenced by extracthalf(), pager_reap(), pager_spawn(), and process_archive().
void * m_malloc | ( | size_t | amount | ) |
Referenced by atomic_file_new(), command_init(), deppossi_pkg_iter_new(), dpkg_ar_fdopen(), enqueue_deconfigure(), ensure_statoverrides(), extracthalf(), filter_add(), fsys_hash_iter_new(), fsys_hash_report(), fsys_hash_rev_iter_init(), fsys_node_pkgs_iter_new(), glob_list_prepend(), match_node_new(), parsedb_load(), parsedb_new(), pkg_array_init_from_hash(), pkg_array_init_from_names(), pkg_hash_iter_new(), pkg_hash_report(), pkg_list_new(), str_quote_meta(), str_width(), tar_extractor(), treewalk_open(), varbuf_init(), and varbuf_new().
void m_output | ( | FILE * | f, |
const char * | name | ||
) |
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().
void m_pipe | ( | int | fds[2] | ) |
References _, ohshite(), and onerr_abort.
Referenced by extracthalf(), pager_spawn(), and process_archive().
void * m_realloc | ( | void * | r, |
size_t | amount | ||
) |
Referenced by archivefiles(), commandfd(), and varbuf_grow().
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().
char * m_strndup | ( | const char * | str, |
size_t | n | ||
) |
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().
void setcloexec | ( | int | fd, |
const char * | fn | ||
) |
Referenced by debug_set_output(), dpkg_db_reopen(), file_lock(), log_message(), statusfd_add(), and trigdef_update_start().