dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
dpkg-deb.h
Go to the documentation of this file.
1/*
2 * dpkg-deb - construction and deconstruction of *.deb archives
3 * dpkg-deb.h - external definitions for this program
4 *
5 * Copyright © 1994,1995 Ian Jackson <ijackson@chiark.greenend.org.uk>
6 * Copyright © 2006-2012 Guillem Jover <guillem@debian.org>
7 *
8 * This is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
22#ifndef DPKG_DEB_H
23#define DPKG_DEB_H
24
25#include <dpkg/deb-version.h>
26
38
39extern int opt_verbose;
40extern int opt_root_owner_group;
42extern int opt_debug;
43extern int opt_nocheck;
44extern const char *opt_showformat;
45
46extern struct deb_version deb_format;
47
62
63void extracthalf(const char *debar, const char *dir,
64 enum dpkg_tar_options taroption, int admininfo);
65
68
69#define ARCHIVEVERSION "2.0"
70
71#define BUILDCONTROLDIR "DEBIAN"
72#define EXTRACTCONTROLDIR BUILDCONTROLDIR
73
74#define OLDARCHIVEVERSION "0.939000"
75
76#define OLDDEBDIR "DEBIAN"
77#define OLDOLDDEBDIR ".DEBIAN"
78
79#define DEBMAGIC "debian-binary"
80#define ADMINMEMBER "control.tar"
81#define DATAMEMBER "data.tar"
82
83#ifdef PATH_MAX
84# define INTERPRETER_MAX PATH_MAX
85#else
86# define INTERPRETER_MAX 1024
87#endif
88
89#endif /* DPKG_DEB_H */
action_func do_field
Definition dpkg-deb.h:32
int opt_uniform_compression
Definition main.c:146
DPKG_TAR_PERMS
Preserve tar permissions on extract.
Definition dpkg-deb.h:56
DPKG_TAR_LIST
List tar files.
Definition dpkg-deb.h:52
int opt_nocheck
Definition main.c:143
enum DPKG_ATTR_ENUM_FLAGS dpkg_tar_options
Definition dpkg-deb.h:48
action_func do_ctrltarfile
Definition dpkg-deb.h:36
action_func do_raw_extract
Definition dpkg-deb.h:35
action_func do_fsystarfile
Definition dpkg-deb.h:37
DPKG_TAR_CREATE_DIR
Guarantee extraction into a new directory, abort if it exists.
Definition dpkg-deb.h:60
action_func do_extract
Definition dpkg-deb.h:33
action_func do_showinfo
Definition dpkg-deb.h:30
DPKG_TAR_EXTRACT
Extract tar files.
Definition dpkg-deb.h:54
int opt_verbose
Definition main.c:144
struct compress_params compress_params_deb0
Definition main.c:166
action_func do_contents
Definition dpkg-deb.h:28
struct deb_version deb_format
Definition main.c:148
DPKG_TAR_NOMTIME
Do not set tar mtime on extract.
Definition dpkg-deb.h:58
action_func do_vextract
Definition dpkg-deb.h:34
action_func do_build
Definition dpkg-deb.h:27
action_func do_info
Definition dpkg-deb.h:31
const char * opt_showformat
Definition main.c:48
int opt_root_owner_group
Definition main.c:145
void extracthalf(const char *debar, const char *dir, enum dpkg_tar_options taroption, int admininfo)
Definition extract.c:107
int opt_debug
Definition main.c:142
action_func do_control
Definition dpkg-deb.h:29
DPKG_TAR_PASSTHROUGH
Output the tar file directly, without any processing.
Definition dpkg-deb.h:50
#define DPKG_ATTR_ENUM_FLAGS
Definition macros.h:149
#define DPKG_BIT(n)
Return the integer value of bit n.
Definition macros.h:203
int action_func(const char *const *argv)
Definition options.h:36
Definition compress.h:60
Data structure representing a .deb format version.
Definition deb-version.h:37