Home
last modified time | relevance | path

Searched refs:bsdtar (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/libarchive/tar/
H A Dbsdtar.c102 static void only_mode(struct bsdtar *, const char *opt,
104 static void set_mode(struct bsdtar *, char opt);
137 struct bsdtar *bsdtar, bsdtar_storage; in main() local
151 bsdtar = &bsdtar_storage; in main()
152 memset(bsdtar, 0, sizeof(*bsdtar)); in main()
153 bsdtar->fd = -1; /* Mark as "unused" */ in main()
154 bsdtar->gid = -1; in main()
155 bsdtar->uid = -1; in main()
156 bsdtar->flags = 0; in main()
192 bsdtar->day_first = (*nl_langinfo(D_MD_ORDER) == 'd'); in main()
[all …]
H A Dwrite.c79 static int append_archive(struct bsdtar *, struct archive *,
81 static int append_archive_filename(struct bsdtar *,
83 static void archive_names_from_file(struct bsdtar *bsdtar,
85 static int copy_file_data_block(struct bsdtar *,
90 static void report_write(struct bsdtar *, struct archive *,
92 static void test_for_append(struct bsdtar *);
95 static void write_archive(struct archive *, struct bsdtar *);
96 static void write_entry(struct bsdtar *, struct archive *,
98 static void write_file(struct bsdtar *, struct archive *,
100 static void write_hierarchy(struct bsdtar *, struct archive *,
[all …]
H A Dcmdline.c198 bsdtar_getopt(struct bsdtar *bsdtar) in bsdtar_getopt() argument
215 bsdtar->argument = NULL; in bsdtar_getopt()
218 if (bsdtar->getopt_state == state_start) { in bsdtar_getopt()
220 ++bsdtar->argv; in bsdtar_getopt()
221 --bsdtar->argc; in bsdtar_getopt()
222 if (*bsdtar->argv == NULL) in bsdtar_getopt()
225 if (bsdtar->argv[0][0] == '-') { in bsdtar_getopt()
226 bsdtar->getopt_state = state_next_word; in bsdtar_getopt()
228 bsdtar->getopt_state = state_old_tar; in bsdtar_getopt()
229 bsdtar->getopt_word = *bsdtar->argv++; in bsdtar_getopt()
[all …]
H A Dread.c63 struct bsdtar *bsdtar; member
68 static void read_archive(struct bsdtar *bsdtar, char mode, struct archive *);
73 tar_mode_t(struct bsdtar *bsdtar) in tar_mode_t() argument
75 read_archive(bsdtar, 't', NULL); in tar_mode_t()
76 if (unmatched_inclusions_warn(bsdtar->matching, in tar_mode_t()
78 bsdtar->return_value = 1; in tar_mode_t()
82 tar_mode_x(struct bsdtar *bsdtar) in tar_mode_x() argument
89 if ((bsdtar->flags & OPTFLAG_NUMERIC_OWNER) == 0) in tar_mode_x()
91 archive_write_disk_set_options(writer, bsdtar->extract_flags); in tar_mode_x()
93 read_archive(bsdtar, 'x', writer); in tar_mode_x()
[all …]
H A Dutil.c289 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->pending_chdir != NULL)
316 snprintf(bsdtar->pending_chdir, new_len, "%s/%s",
320 if (bsdtar->pending_chdir == NULL)
[all …]
H A Dbsdtar.h28 struct bsdtar { struct
180 int bsdtar_getopt(struct bsdtar *);
181 void do_chdir(struct bsdtar *);
182 int edit_pathname(struct bsdtar *, struct archive_entry *);
186 void set_chdir(struct bsdtar *, const char *newdir);
188 void tar_mode_c(struct bsdtar *bsdtar);
189 void tar_mode_r(struct bsdtar *bsdtar);
190 void tar_mode_t(struct bsdtar *bsdtar);
191 void tar_mode_u(struct bsdtar *bsdtar);
192 void tar_mode_x(struct bsdtar *bsdtar);
[all …]
H A Dsubst.c42 init_substitution(struct bsdtar *bsdtar) in init_substitution() argument
46 bsdtar->substitution = subst = malloc(sizeof(*subst)); in init_substitution()
53 add_substitution(struct bsdtar *bsdtar, const char *rule_text) in add_substitution() argument
61 if ((subst = bsdtar->substitution) == NULL) { in add_substitution()
62 init_substitution(bsdtar); in add_substitution()
63 subst = bsdtar->substitution; in add_substitution()
199 apply_substitution(struct bsdtar *bsdtar, const char *name, char **result, in apply_substitution() argument
212 if ((subst = bsdtar->substitution) == NULL) in apply_substitution()
312 cleanup_substitution(struct bsdtar *bsdtar) in cleanup_substitution() argument
317 if ((subst = bsdtar->substitution) == NULL) in cleanup_substitution()
/freebsd/usr.bin/tar/
H A DMakefile6 PROG= bsdtar
11 SRCS= bsdtar.c \
/freebsd/contrib/libarchive/
H A DNEWS240 Feb 01, 2010: Integrate Apple extensions for Mac OS extended attributes into bsdtar
291 extended attributes, etc so that bsdtar and bsdcpio don't require
318 Oct 06, 2008: bsdtar: option parser no longer uses getopt_long(),
344 May 21, 2008: Joerg Sonnenberger: fix bsdtar hardlink handling for newc format
353 May 21, 2008: Colin Percival: SIGINFO or SIGUSR1 to bsdtar prints progress info
355 May 16, 2008: bsdtar's test harness no longer depends on file ordering.
359 May 14, 2008: Joerg Sonnenberger: -s substitution support for bsdtar
402 Mar 15, 2008: Many new bsdtar and bsdcpio options from Joerg Sonnenberger.
416 Feb 18, 2008: [bsdtar] Permit appending on block devices.
466 Dec 03, 2007: Fixed bsdcpio -help, bsdtar -help tests.
[all …]
H A DREADME.md23 * **tar**: the 'bsdtar' program is a full-featured 'tar' implementation built on libarchive
51 * bsdtar.1 explains the use of the bsdtar program
224 open at once. bsdtar uses this in its "@archive" extension.
/freebsd/tests/sys/fs/tarfs/
H A Dtarfs_test.sh38 bsdtar "$@"
/freebsd/
H A DObsoleteFiles.inc17957 # 200503XX: bsdtar takes over gtar