Searched refs:bsdtar (Results 1 - 8 of 8) sorted by last modified time

/freebsd-11-stable/usr.bin/tar/
H A DMakefile6 PROG= bsdtar
11 SRCS= bsdtar.c \
34 SYMLINKS= bsdtar ${BINDIR}/tar
35 MLINKS= bsdtar.1 tar.1
/freebsd-11-stable/contrib/libarchive/tar/
H A Dutil.c62 #include "bsdtar.h"
290 set_chdir(struct bsdtar *bsdtar, const char *newdir) argument
302 free(bsdtar->pending_chdir);
303 bsdtar->pending_chdir = NULL;
305 if (bsdtar->pending_chdir == NULL)
307 bsdtar->pending_chdir = strdup(newdir);
310 char *old_pending = bsdtar->pending_chdir;
312 bsdtar->pending_chdir = malloc(old_len + strlen(newdir) + 2);
315 if (bsdtar
325 do_chdir(struct bsdtar *bsdtar) argument
378 warn_strip_leading_char(struct bsdtar *bsdtar, const char *c) argument
389 warn_strip_drive_letter(struct bsdtar *bsdtar) argument
404 strip_absolute_path(struct bsdtar *bsdtar, const char *p) argument
467 edit_pathname(struct bsdtar *bsdtar, struct archive_entry *entry) argument
631 struct bsdtar *bsdtar = (struct bsdtar *)_client_data; local
661 list_item_verbose(struct bsdtar *bsdtar, FILE *out, struct archive_entry *entry) argument
[all...]
H A Dcmdline.c43 #include "bsdtar.h"
56 * defined in bsdtar.h. Also note that so far I've found no need
175 * has, of course, been shamelessly tailored for bsdtar. (If you're
193 * early bsdtar as a way to access long options on platforms that did
204 * bsdtar.c.
213 bsdtar_getopt(struct bsdtar *bsdtar) argument
224 bsdtar->argument = NULL;
227 if (bsdtar->getopt_state == state_start) {
229 ++bsdtar
[all...]
H A Dbsdtar.h25 * $FreeBSD: stable/11/contrib/libarchive/tar/bsdtar.h 358088 2020-02-19 01:50:47Z mm $
41 * The internal state for the "bsdtar" program.
45 * pointer to this structure is passed to most bsdtar internal
48 struct bsdtar { struct
194 int bsdtar_getopt(struct bsdtar *);
195 void do_chdir(struct bsdtar *);
196 int edit_pathname(struct bsdtar *, struct archive_entry *);
200 void set_chdir(struct bsdtar *, const char *newdir);
202 void tar_mode_c(struct bsdtar *bsdtar);
[all...]
H A Dbsdtar.c27 __FBSDID("$FreeBSD: stable/11/contrib/libarchive/tar/bsdtar.c 358088 2020-02-19 01:50:47Z mm $");
70 #include "bsdtar.h"
122 static void only_mode(struct bsdtar *, const char *opt,
124 static void set_mode(struct bsdtar *, char opt);
157 struct bsdtar *bsdtar, bsdtar_storage; local
170 bsdtar = &bsdtar_storage;
171 memset(bsdtar, 0, sizeof(*bsdtar));
172 bsdtar
943 set_mode(struct bsdtar *bsdtar, char opt) argument
955 only_mode(struct bsdtar *bsdtar, const char *opt, const char *valid_modes) argument
[all...]
H A Dwrite.c77 #include "bsdtar.h"
96 static int append_archive(struct bsdtar *, struct archive *,
98 static int append_archive_filename(struct bsdtar *,
100 static void archive_names_from_file(struct bsdtar *bsdtar,
102 static int copy_file_data_block(struct bsdtar *,
107 static void report_write(struct bsdtar *, struct archive *,
109 static void test_for_append(struct bsdtar *);
112 static void write_archive(struct archive *, struct bsdtar *);
113 static void write_entry(struct bsdtar *, struc
141 set_writer_options(struct bsdtar *bsdtar, struct archive *a) argument
171 set_reader_options(struct bsdtar *bsdtar, struct archive *a) argument
202 tar_mode_c(struct bsdtar *bsdtar) argument
255 tar_mode_r(struct bsdtar *bsdtar) argument
346 tar_mode_u(struct bsdtar *bsdtar) argument
435 write_archive(struct archive *a, struct bsdtar *bsdtar) argument
600 archive_names_from_file(struct bsdtar *bsdtar, struct archive *a) argument
643 append_archive_filename(struct bsdtar *bsdtar, struct archive *a, const char *raw_filename) argument
685 append_archive(struct bsdtar *bsdtar, struct archive *a, struct archive *ina) argument
733 copy_file_data_block(struct bsdtar *bsdtar, struct archive *a, struct archive *in_a, struct archive_entry *entry) argument
810 struct bsdtar *bsdtar = (struct bsdtar *)_data; local
825 struct bsdtar *bsdtar = (struct bsdtar *)_data; local
863 write_hierarchy(struct bsdtar *bsdtar, struct archive *a, const char *path) argument
957 write_file(struct bsdtar *bsdtar, struct archive *a, struct archive_entry *entry) argument
967 write_entry(struct bsdtar *bsdtar, struct archive *a, struct archive_entry *entry) argument
1002 report_write(struct bsdtar *bsdtar, struct archive *a, struct archive_entry *entry, int64_t progress) argument
1030 test_for_append(struct bsdtar *bsdtar) argument
[all...]
H A Dread.c78 #include "bsdtar.h"
82 struct bsdtar *bsdtar; member in struct:progress_data
87 static void read_archive(struct bsdtar *bsdtar, char mode, struct archive *);
92 tar_mode_t(struct bsdtar *bsdtar) argument
94 read_archive(bsdtar, 't', NULL);
95 if (unmatched_inclusions_warn(bsdtar->matching,
97 bsdtar
101 tar_mode_x(struct bsdtar *bsdtar) argument
124 struct bsdtar *bsdtar = progress_data->bsdtar; local
160 read_archive(struct bsdtar *bsdtar, char mode, struct archive *writer) argument
[all...]
H A Dsubst.c30 #include "bsdtar.h"
59 init_substitution(struct bsdtar *bsdtar) argument
63 bsdtar->substitution = subst = malloc(sizeof(*subst));
70 add_substitution(struct bsdtar *bsdtar, const char *rule_text) argument
78 if ((subst = bsdtar->substitution) == NULL) {
79 init_substitution(bsdtar);
80 subst = bsdtar->substitution;
210 apply_substitution(struct bsdtar *bsdta argument
312 cleanup_substitution(struct bsdtar *bsdtar) argument
[all...]

Completed in 87 milliseconds