Home
last modified time | relevance | path

Searched refs:cpio (Results 1 – 25 of 65) sorted by relevance

123

/freebsd/contrib/libarchive/cpio/
H A Dcpio.c92 static int entry_to_archive(struct cpio *, struct archive_entry *);
93 static int file_to_archive(struct cpio *, const char *);
95 static void list_item_verbose(struct cpio *, struct archive_entry *);
97 static const char *lookup_gname(struct cpio *, gid_t gid);
98 static int lookup_gname_helper(struct cpio *,
100 static const char *lookup_uname(struct cpio *, uid_t uid);
101 static int lookup_uname_helper(struct cpio *,
103 static __LA_NORETURN void mode_in(struct cpio *);
104 static __LA_NORETURN void mode_list(struct cpio *);
105 static void mode_out(struct cpio *);
[all …]
H A Dcmdline.c95 cpio_getopt(struct cpio *cpio) in cpio_getopt() argument
113 cpio->argument = NULL; in cpio_getopt()
118 ++cpio->argv; in cpio_getopt()
119 --cpio->argc; in cpio_getopt()
128 if (cpio->argv[0] == NULL) in cpio_getopt()
131 if (cpio->argv[0][0] != '-') in cpio_getopt()
134 if (strcmp(cpio->argv[0], "--") == 0) { in cpio_getopt()
135 ++cpio->argv; in cpio_getopt()
136 --cpio->argc; in cpio_getopt()
140 opt_word = *cpio->argv++; in cpio_getopt()
[all …]
H A Dcpio.h22 struct cpio { struct
104 int cpio_getopt(struct cpio *cpio);
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_support_format_cpio.c177 struct cpio { struct
179 int (*read_header)(struct archive_read *, struct cpio *, argument
209 static int header_bin_be(struct archive_read *, struct cpio *, argument
211 static int header_bin_le(struct archive_read *, struct cpio *,
213 static int header_newc(struct archive_read *, struct cpio *,
215 static int header_odc(struct archive_read *, struct cpio *,
217 static int header_afiol(struct archive_read *, struct cpio *,
223 struct cpio *cpio, struct archive_entry *entry);
229 struct cpio *cpio; in archive_read_support_format_cpio() local
235 cpio = calloc(1, sizeof(*cpio)); in archive_read_support_format_cpio()
[all …]
H A Darchive_write_set_format_cpio_odc.c61 struct cpio { struct
105 struct cpio *cpio; in archive_write_set_format_cpio_odc() local
113 cpio = calloc(1, sizeof(*cpio)); in archive_write_set_format_cpio_odc()
114 if (cpio == NULL) { in archive_write_set_format_cpio_odc()
118 a->format_data = cpio; in archive_write_set_format_cpio_odc()
135 struct cpio *cpio = a->format_data; in archive_write_odc_options() local
144 cpio->opt_sconv = archive_string_conversion_to_charset( in archive_write_odc_options()
146 if (cpio->opt_sconv != NULL) in archive_write_odc_options()
175 synthesize_ino_value(struct cpio *cpio, struct archive_entry *entry) in synthesize_ino_value() argument
192 return (int)(++cpio->ino_next); in synthesize_ino_value()
[all …]
H A Darchive_write_set_format_cpio_binary.c59 struct cpio { struct
174 struct cpio *cpio; in archive_write_set_format_cpio_binary() local
188 cpio = calloc(1, sizeof(*cpio)); in archive_write_set_format_cpio_binary()
189 if (cpio == NULL) { in archive_write_set_format_cpio_binary()
193 a->format_data = cpio; in archive_write_set_format_cpio_binary()
238 struct cpio *cpio = a->format_data; in archive_write_binary_options() local
247 cpio->opt_sconv = archive_string_conversion_to_charset( in archive_write_binary_options()
249 if (cpio->opt_sconv != NULL) in archive_write_binary_options()
278 synthesize_ino_value(struct cpio *cpio, struct archive_entry *entry) in synthesize_ino_value() argument
295 return (int)(++cpio->ino_next); in synthesize_ino_value()
[all …]
H A Darchive_write_set_format_cpio_newc.c61 struct cpio { struct
110 struct cpio *cpio; in archive_write_set_format_cpio_newc() local
118 cpio = calloc(1, sizeof(*cpio)); in archive_write_set_format_cpio_newc()
119 if (cpio == NULL) { in archive_write_set_format_cpio_newc()
123 a->format_data = cpio; in archive_write_set_format_cpio_newc()
140 struct cpio *cpio = a->format_data; in archive_write_newc_options() local
149 cpio->opt_sconv = archive_string_conversion_to_charset( in archive_write_newc_options()
151 if (cpio->opt_sconv != NULL) in archive_write_newc_options()
168 struct cpio *cpio = a->format_data; in get_sconv() local
171 sconv = cpio->opt_sconv; in get_sconv()
[all …]
/freebsd/usr.bin/cpio/tests/
H A DMakefile14 CFLAGS+= -I${_LIBARCHIVEDIR}/cpio
15 CFLAGS+= -I${_LIBARCHIVEDIR}/cpio/test
24 .PATH: ${_LIBARCHIVEDIR}/cpio
30 .PATH: ${_LIBARCHIVEDIR}/cpio/test
99 ${PACKAGE}FILES+= test_extract.cpio.Z.uu
100 ${PACKAGE}FILES+= test_extract.cpio.bz2.uu
101 ${PACKAGE}FILES+= test_extract.cpio.grz.uu
102 ${PACKAGE}FILES+= test_extract.cpio.gz.uu
103 ${PACKAGE}FILES+= test_extract.cpio.lrz.uu
104 ${PACKAGE}FILES+= test_extract.cpio.lz.uu
[all …]
H A Dfunctional_test.sh30 export BSDCPIO=$(which cpio)
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/xattr/
H A Dxattr_011_pos.ksh61 log_must touch $TESTDIR/cpio.$$
62 create_xattr $TESTDIR/cpio.$$ passwd /etc/passwd
63 echo $TESTDIR/cpio.$$ | cpio -o@ > $TEST_BASE_DIR/xattr.$$.cpio
64 echo $TESTDIR/cpio.$$ | cpio -o > $TEST_BASE_DIR/noxattr.$$.cpio
67 log_must cpio -iu < $TEST_BASE_DIR/xattr.$$.cpio
71 log_must cpio -iu@ < $TEST_BASE_DIR/xattr.$$.cpio
75 log_must cpio -iu < $TEST_BASE_DIR/noxattr.$$.cpio
79 log_must cpio -iu@ < $TEST_BASE_DIR/noxattr.$$.cpio
81 log_must rm $TESTDIR/cpio.$$ $TEST_BASE_DIR/xattr.$$.cpio $TEST_BASE_DIR/noxattr.$$.cpio
/freebsd/tests/sys/cddl/zfs/tests/xattr/
H A Dxattr_011_pos.ksh77 log_must $TOUCH $TESTDIR/cpio.${TESTCASE_ID}
78 create_xattr $TESTDIR/cpio.${TESTCASE_ID} passwd /etc/passwd
79 $ECHO $TESTDIR/cpio.${TESTCASE_ID} | $CPIO -o@ > $TMPDIR/xattr.${TESTCASE_ID}.cpio
80 $ECHO $TESTDIR/cpio.${TESTCASE_ID} | $CPIO -o > $TMPDIR/noxattr.${TESTCASE_ID}.cpio
83 log_must $CPIO -iu < $TMPDIR/xattr.${TESTCASE_ID}.cpio
87 log_must $CPIO -iu@ < $TMPDIR/xattr.${TESTCASE_ID}.cpio
91 log_must $CPIO -iu < $TMPDIR/noxattr.${TESTCASE_ID}.cpio
95 log_must $CPIO -iu@ < $TMPDIR/noxattr.${TESTCASE_ID}.cpio
97 log_must $RM $TESTDIR/cpio.${TESTCASE_ID} $TMPDIR/xattr.${TESTCASE_ID}.cpio $TMPDIR/noxattr.${TESTC…
/freebsd/contrib/libarchive/
H A DFREEBSD-Xlist16 cpio/CMakeLists.txt
17 cpio/cpio_windows.c
18 cpio/cpio_windows.h
19 cpio/config_freebsd.h
20 cpio/test/CMakeLists.txt
H A DREADME.md5 also includes implementations of the common `tar`, `cpio`, and `zcat`
24 * **cpio**: the 'bsdcpio' program is a different interface to essentially the same functionality
65 * cpio.5, mtree.5, and tar.5 provide detailed information about these
67 modern cpio and tar variants.
85 * POSIX octet-oriented cpio
86 * SVR4 ASCII cpio
87 * Binary cpio (big-endian or little-endian)
88 * PWB binary cpio
121 * POSIX octet-oriented cpio
122 * SVR4 "newc" cpio
[all …]
/freebsd/tests/sys/cddl/zfs/tests/migration/
H A Dmigration_004_pos.ksh60 $RM -rf $TESTDIR/cpio${TESTCASE_ID}.cpio
72 $LS $BNAME | $CPIO -oc > $TESTDIR/cpio${TESTCASE_ID}.cpio
H A Dmigration_005_pos.ksh60 $RM -rf $TESTDIR/cpio${TESTCASE_ID}.cpio
72 $LS $BNAME | $CPIO -oc > $TESTDIR/cpio${TESTCASE_ID}.cpio
H A Dmigration_006_pos.ksh60 $RM -rf $NONZFS_TESTDIR/cpio${TESTCASE_ID}.cpio
72 $LS $BNAME | $CPIO -oc > $NONZFS_TESTDIR/cpio${TESTCASE_ID}.cpio
/freebsd/usr.bin/cpio/
H A DMakefile7 .PATH: ${_LIBARCHIVEDIR}/cpio
8 SRCS= cpio.c cmdline.c
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/migration/
H A Dmigration_004_pos.ksh42 rm -rf $TESTDIR/cpio$$.cpio $TESTDIR/$BNAME
H A Dmigration_006_pos.ksh42 rm -rf $NONZFS_TESTDIR/cpio$$.cpio $TESTDIR/$BNAME
H A Dmigration_005_pos.ksh42 rm -rf $TESTDIR/cpio$$.cpio $NONZFS_TESTDIR/$BNAME
/freebsd/libexec/rc/
H A Drc.initdiskless373 if [ -d $j -a ! -f $j.cpio.gz ]; then
378 for j in /conf/$i/*.cpio.gz ; do
379 subdir=${j%*.cpio.gz}
/freebsd/stand/kboot/
H A DREADME9 (7) find . | sort | cpio -o -H newc | gzip > /tmp/initrd.cpio
12 -initrd /tmp/initrd.cpio \
/freebsd/contrib/file/magic/Magdir/
H A Darchive6 # cpio, ar, arc, arj, hpack, lha/lharc, rar, squish, uc2, zip, zoo, etc.
327 # cpio archives
329 # Yes, the top two "cpio archive" formats *are* supposed to just be "short".
331 # byte order as the machine running "file" with "cpio archive", and
333 # from the machine running "file" with "byte-swapped cpio archive".
335 # The SVR4 "cpio(4)" hints that there are additional formats, but they
340 # Reference: https://people.freebsd.org/~kientzle/libarchive/man/cpio.5.txt
343 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/a/ark-cpio-bin.trid.xml
344 # Note: called "CPIO archive (binary)" by TrID, "cpio/Binary LE" by 7-Zip and "CPIO" by DROID via …
346 # skip DROID fmt-635-signature-id-960.cpio by looking for pathname of 1st entry
[all …]
/freebsd/lib/libarchive/tests/
H A DMakefile435 ${PACKAGE}FILES+= test_compat_cpio_1.cpio.uu
597 ${PACKAGE}FILES+= test_read_format_cpio_afio_header.part1.cpio.uu
598 ${PACKAGE}FILES+= test_read_format_cpio_afio_header.part2.cpio.uu
599 ${PACKAGE}FILES+= test_read_format_cpio_bin_be.cpio.uu
600 ${PACKAGE}FILES+= test_read_format_cpio_bin_le.cpio.uu
601 ${PACKAGE}FILES+= test_read_format_cpio_filename_cp866.cpio.uu
602 ${PACKAGE}FILES+= test_read_format_cpio_filename_eucjp.cpio.uu
603 ${PACKAGE}FILES+= test_read_format_cpio_filename_koi8r.cpio.uu
604 ${PACKAGE}FILES+= test_read_format_cpio_filename_utf8_jp.cpio.uu
605 ${PACKAGE}FILES+= test_read_format_cpio_filename_utf8_ru.cpio.uu
[all …]
/freebsd/tools/build/options/
H A DWITHOUT_BSD_CPIO1 Do not build the BSD licensed version of cpio based on

123