dpkg 1.21.11
|
#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 | ) |
void m_dup2 | ( | int | oldfd, |
int | newfd | ||
) |
References _, ohshite(), and onerr_abort.
Referenced by pager_reap().
void * m_malloc | ( | size_t | amount | ) |
Referenced by atomic_file_new(), command_init(), deppossi_pkg_iter_new(), dpkg_ar_fdopen(), enqueue_deconfigure(), 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(), treewalk_open(), varbuf_init(), and varbuf_new().
void m_output | ( | FILE * | f, |
const char * | name | ||
) |
Referenced by do_info(), predeppackage(), print_foreign_arches(), and printarch().
void m_pipe | ( | int | fds[2] | ) |
void * m_realloc | ( | void * | r, |
size_t | amount | ||
) |
char * m_strdup | ( | const char * | str | ) |
Referenced by atomic_file_new(), dir_make_path(), dir_make_path_parent(), dir_sync_path_parent(), filter_add(), match_node_new(), pkg_hash_find_set(), and pkg_spec_parse().
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(), and str_fmt().
void setcloexec | ( | int | fd, |
const char * | fn | ||
) |
Referenced by debug_set_output(), file_lock(), log_message(), and statusfd_add().