Searched refs:bsdtar (Results 1 - 8 of 8) sorted by relevance

/netbsd-current/external/bsd/libarchive/dist/tar/
H A Dbsdtar.c69 #include "bsdtar.h"
117 static void only_mode(struct bsdtar *, const char *opt,
119 static void set_mode(struct bsdtar *, char opt);
152 struct bsdtar *bsdtar, bsdtar_storage; local
166 bsdtar = &bsdtar_storage;
167 memset(bsdtar, 0, sizeof(*bsdtar));
168 bsdtar->fd = -1; /* Mark as "unused" */
169 bsdtar
1026 set_mode(struct bsdtar *bsdtar, char opt) argument
1038 only_mode(struct bsdtar *bsdtar, const char *opt, const char *valid_modes) argument
[all...]
H A Dcmdline.c42 #include "bsdtar.h"
55 * defined in bsdtar.h. Also note that so far I've found no need
178 * has, of course, been shamelessly tailored for bsdtar. (If you're
196 * early bsdtar as a way to access long options on platforms that did
207 * bsdtar.c.
216 bsdtar_getopt(struct bsdtar *bsdtar) argument
233 bsdtar->argument = NULL;
236 if (bsdtar->getopt_state == state_start) {
238 ++bsdtar
[all...]
H A Dwrite.c76 #include "bsdtar.h"
95 static int append_archive(struct bsdtar *, struct archive *,
97 static int append_archive_filename(struct bsdtar *,
99 static void archive_names_from_file(struct bsdtar *bsdtar,
101 static int copy_file_data_block(struct bsdtar *,
106 static void report_write(struct bsdtar *, struct archive *,
108 static void test_for_append(struct bsdtar *);
111 static void write_archive(struct archive *, struct bsdtar *);
112 static void write_entry(struct bsdtar *, struc
140 set_writer_options(struct bsdtar *bsdtar, struct archive *a) argument
170 set_reader_options(struct bsdtar *bsdtar, struct archive *a) argument
205 tar_mode_c(struct bsdtar *bsdtar) argument
258 tar_mode_r(struct bsdtar *bsdtar) argument
349 tar_mode_u(struct bsdtar *bsdtar) argument
438 write_archive(struct archive *a, struct bsdtar *bsdtar) argument
603 archive_names_from_file(struct bsdtar *bsdtar, struct archive *a) argument
646 append_archive_filename(struct bsdtar *bsdtar, struct archive *a, const char *raw_filename) argument
688 append_archive(struct bsdtar *bsdtar, struct archive *a, struct archive *ina) argument
738 copy_file_data_block(struct bsdtar *bsdtar, struct archive *a, struct archive *in_a, struct archive_entry *entry) argument
817 struct bsdtar *bsdtar = (struct bsdtar *)_data; local
832 struct bsdtar *bsdtar = (struct bsdtar *)_data; local
870 write_hierarchy(struct bsdtar *bsdtar, struct archive *a, const char *path) argument
964 write_file(struct bsdtar *bsdtar, struct archive *a, struct archive_entry *entry) argument
974 write_entry(struct bsdtar *bsdtar, struct archive *a, struct archive_entry *entry) argument
1008 report_write(struct bsdtar *bsdtar, struct archive *a, struct archive_entry *entry, int64_t progress) argument
1036 test_for_append(struct bsdtar *bsdtar) argument
[all...]
H A Dread.c77 #include "bsdtar.h"
81 struct bsdtar *bsdtar; member in struct:progress_data
86 static void read_archive(struct bsdtar *bsdtar, char mode, struct archive *);
91 tar_mode_t(struct bsdtar *bsdtar) argument
93 read_archive(bsdtar, 't', NULL);
94 if (unmatched_inclusions_warn(bsdtar->matching,
96 bsdtar
100 tar_mode_x(struct bsdtar *bsdtar) argument
123 struct bsdtar *bsdtar = progress_data->bsdtar; local
159 read_archive(struct bsdtar *bsdtar, char mode, struct archive *writer) argument
[all...]
H A Dutil.c61 #include "bsdtar.h"
289 set_chdir(struct bsdtar *bsdtar, const char *newdir) argument
301 free(bsdtar->pending_chdir);
302 bsdtar->pending_chdir = NULL;
304 if (bsdtar->pending_chdir == NULL)
306 bsdtar->pending_chdir = strdup(newdir);
309 char *old_pending = bsdtar->pending_chdir;
312 bsdtar->pending_chdir = malloc(new_len);
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 Dbsdtar.h39 * The internal state for the "bsdtar" program.
43 * pointer to this structure is passed to most bsdtar internal
46 struct bsdtar { struct
198 int bsdtar_getopt(struct bsdtar *);
199 void do_chdir(struct bsdtar *);
200 int edit_pathname(struct bsdtar *, struct archive_entry *);
204 void set_chdir(struct bsdtar *, const char *newdir);
206 void tar_mode_c(struct bsdtar *bsdtar);
207 void tar_mode_r(struct bsdtar *bsdta
[all...]
H A Dsubst.c29 #include "bsdtar.h"
60 init_substitution(struct bsdtar *bsdtar) argument
64 bsdtar->substitution = subst = malloc(sizeof(*subst));
71 add_substitution(struct bsdtar *bsdtar, const char *rule_text) argument
79 if ((subst = bsdtar->substitution) == NULL) {
80 init_substitution(bsdtar);
81 subst = bsdtar->substitution;
217 apply_substitution(struct bsdtar *bsdta argument
330 cleanup_substitution(struct bsdtar *bsdtar) argument
[all...]
/netbsd-current/external/bsd/libarchive/bin/tar/
H A DMakefile4 SRCS= bsdtar.c cmdline.c creation_set.c read.c subst.c util.c write.c
12 tar.1: ${LIBARCHIVEDIR}/tar/bsdtar.1
13 ${TOOL_CAT} ${LIBARCHIVEDIR}/tar/bsdtar.1 > $@

Completed in 219 milliseconds