|
dpkg 1.22.7-3-g89f48
|
#include <config.h>#include <compat.h>#include <sys/stat.h>#include <errno.h>#include <string.h>#include <pwd.h>#include <grp.h>#include <unistd.h>#include <inttypes.h>#include <stdlib.h>#include <stdio.h>#include <dpkg/macros.h>#include <dpkg/dpkg.h>#include <dpkg/i18n.h>#include <dpkg/error.h>#include <dpkg/tarfn.h>Data Structures | |
| struct | tar_header |
| struct | tar_symlink_entry |
Macros | |
| #define | TAR_MAGIC_USTAR "ustar\0" "00" |
| #define | TAR_MAGIC_GNU "ustar " " \0" |
| #define | TAR_TYPE_SIGNED(t) (!((t)0 < (t)-1)) |
| #define | TAR_TYPE_MIN(t) |
| #define | TAR_TYPE_MAX(t) |
| #define | TAR_ATOUL(str, type) (type)tar_atoul(str, sizeof(str), TAR_TYPE_MAX(type)) |
| #define | TAR_ATOSL(str, type) (type)tar_atosl(str, sizeof(str), TAR_TYPE_MIN(type), TAR_TYPE_MAX(type)) |
Functions | |
| uintmax_t | tar_atoul (const char *s, size_t size, uintmax_t max) |
| intmax_t | tar_atosl (const char *s, size_t size, intmax_t min, intmax_t max) |
| void | tar_entry_update_from_system (struct tar_entry *te) |
| Update the tar entry from system information. | |
| int | tar_extractor (struct tar_archive *tar) |
| #define TAR_ATOSL | ( | str, | |
| type | |||
| ) | (type)tar_atosl(str, sizeof(str), TAR_TYPE_MIN(type), TAR_TYPE_MAX(type)) |
| #define TAR_ATOUL | ( | str, | |
| type | |||
| ) | (type)tar_atoul(str, sizeof(str), TAR_TYPE_MAX(type)) |
| #define TAR_MAGIC_GNU "ustar " " \0" |
| #define TAR_MAGIC_USTAR "ustar\0" "00" |
| #define TAR_TYPE_MAX | ( | t | ) |
| #define TAR_TYPE_MIN | ( | t | ) |
| #define TAR_TYPE_SIGNED | ( | t | ) | (!((t)0 < (t)-1)) |