/freebsd/contrib/libarchive/cpio/ |
H A D | cpio.c | 87 static int entry_to_archive(struct cpio *, struct archive_entry *); 88 static int file_to_archive(struct cpio *, const char *); 90 static void list_item_verbose(struct cpio *, struct archive_entry *); 92 static const char *lookup_gname(struct cpio *, gid_t gid); 93 static int lookup_gname_helper(struct cpio *, 95 static const char *lookup_uname(struct cpio *, uid_t uid); 96 static int lookup_uname_helper(struct cpio *, 98 static __LA_NORETURN void mode_in(struct cpio *); 99 static __LA_NORETURN void mode_list(struct cpio *); 100 static void mode_out(struct cpio *); [all …]
|
H A D | cmdline.c | 92 cpio_getopt(struct cpio *cpio) in cpio_getopt() argument 110 cpio->argument = NULL; in cpio_getopt() 115 ++cpio->argv; in cpio_getopt() 116 --cpio->argc; in cpio_getopt() 125 if (cpio->argv[0] == NULL) in cpio_getopt() 128 if (cpio->argv[0][0] != '-') in cpio_getopt() 131 if (strcmp(cpio->argv[0], "--") == 0) { in cpio_getopt() 132 ++cpio->argv; in cpio_getopt() 133 --cpio->argc; in cpio_getopt() 137 opt_word = *cpio->argv++; in cpio_getopt() [all …]
|
H A D | cpio.h | 22 struct cpio { struct 106 int cpio_getopt(struct cpio *cpio);
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_cpio.c | 174 struct cpio { struct 176 int (*read_header)(struct archive_read *, struct cpio *, argument 205 static int header_bin_be(struct archive_read *, struct cpio *, argument 207 static int header_bin_le(struct archive_read *, struct cpio *, 209 static int header_newc(struct archive_read *, struct cpio *, 211 static int header_odc(struct archive_read *, struct cpio *, 213 static int header_afiol(struct archive_read *, struct cpio *, 219 struct cpio *cpio, struct archive_entry *entry); 225 struct cpio *cpio; in archive_read_support_format_cpio() local 231 cpio = calloc(1, sizeof(*cpio)); in archive_read_support_format_cpio() [all …]
|
H A D | archive_write_set_format_cpio_odc.c | 60 struct cpio { struct 104 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 = (struct 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 D | archive_write_set_format_cpio_binary.c | 58 struct cpio { struct 173 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 = (struct 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 D | archive_write_set_format_cpio_newc.c | 61 struct cpio { struct 110 struct cpio *cpio; in archive_write_set_format_cpio_newc() local 119 cpio = calloc(1, sizeof(*cpio)); in archive_write_set_format_cpio_newc() 120 if (cpio == NULL) { in archive_write_set_format_cpio_newc() 124 a->format_data = cpio; in archive_write_set_format_cpio_newc() 141 struct cpio *cpio = (struct cpio *)a->format_data; in archive_write_newc_options() local 150 cpio->opt_sconv = archive_string_conversion_to_charset( in archive_write_newc_options() 152 if (cpio->opt_sconv != NULL) in archive_write_newc_options() 169 struct cpio *cpio; in get_sconv() local 172 cpio = (struct cpio *)a->format_data; in get_sconv() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/xattr/ |
H A D | xattr_011_pos.ksh | 70 log_must touch $TESTDIR/cpio.$$ 71 create_xattr $TESTDIR/cpio.$$ passwd /etc/passwd 72 echo $TESTDIR/cpio.$$ | cpio -o@ > $TEST_BASE_DIR/xattr.$$.cpio 73 echo $TESTDIR/cpio.$$ | cpio -o > $TEST_BASE_DIR/noxattr.$$.cpio 76 log_must cpio -iu < $TEST_BASE_DIR/xattr.$$.cpio 80 log_must cpio -iu@ < $TEST_BASE_DIR/xattr.$$.cpio 84 log_must cpio -iu < $TEST_BASE_DIR/noxattr.$$.cpio 88 log_must cpio -iu@ < $TEST_BASE_DIR/noxattr.$$.cpio 90 log_must rm $TESTDIR/cpio.$$ $TEST_BASE_DIR/xattr.$$.cpio $TEST_BASE_DIR/noxattr.$$.cpio
|
/freebsd/tests/sys/cddl/zfs/tests/xattr/ |
H A D | xattr_011_pos.ksh | 77 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 D | FREEBSD-Xlist | 15 cpio/CMakeLists.txt 16 cpio/cpio_windows.c 17 cpio/cpio_windows.h 18 cpio/config_freebsd.h 19 cpio/test/CMakeLists.txt
|
H A D | README.md | 5 also includes implementations of the common `tar`, `cpio`, and `zcat` 24 * **cpio**: the 'bsdcpio' program is a different interface to essentially the same functionality 62 * cpio.5, mtree.5, and tar.5 provide detailed information about these 64 modern cpio and tar variants. 82 * POSIX octet-oriented cpio 83 * SVR4 ASCII cpio 84 * Binary cpio (big-endian or little-endian) 85 * PWB binary cpio 117 * POSIX octet-oriented cpio 118 * SVR4 "newc" cpio [all...] |
/freebsd/tests/sys/cddl/zfs/tests/migration/ |
H A D | migration_004_pos.ksh | 60 $RM -rf $TESTDIR/cpio${TESTCASE_ID}.cpio 72 $LS $BNAME | $CPIO -oc > $TESTDIR/cpio${TESTCASE_ID}.cpio
|
H A D | migration_005_pos.ksh | 60 $RM -rf $TESTDIR/cpio${TESTCASE_ID}.cpio 72 $LS $BNAME | $CPIO -oc > $TESTDIR/cpio${TESTCASE_ID}.cpio
|
H A D | migration_006_pos.ksh | 60 $RM -rf $NONZFS_TESTDIR/cpio${TESTCASE_ID}.cpio 72 $LS $BNAME | $CPIO -oc > $NONZFS_TESTDIR/cpio${TESTCASE_ID}.cpio
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/migration/ |
H A D | migration_004_pos.ksh | 51 rm -rf $TESTDIR/cpio$$.cpio $TESTDIR/$BNAME
|
H A D | migration_006_pos.ksh | 51 rm -rf $NONZFS_TESTDIR/cpio$$.cpio $TESTDIR/$BNAME
|
H A D | migration_005_pos.ksh | 51 rm -rf $TESTDIR/cpio$$.cpio $NONZFS_TESTDIR/$BNAME
|
/freebsd/usr.bin/cpio/ |
H A D | Makefile | 10 .PATH: ${_LIBARCHIVEDIR}/cpio 11 SRCS= cpio.c cmdline.c
|
/freebsd/libexec/rc/ |
H A D | rc.initdiskless | 373 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 D | README | 9 (7) find . | sort | cpio -o -H newc | gzip > /tmp/initrd.cpio 12 -initrd /tmp/initrd.cpio \
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | archive | 6 # 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/tools/build/options/ |
H A D | WITHOUT_BSD_CPIO | 1 Do not build the BSD licensed version of cpio based on
|
/freebsd/tools/tools/nanobsd/ |
H A D | defaults.sh | 530 find . -print | cpio ${CPIO_SYMLINK} -dumpl ../../../etc/local 549 find $d -print | cpio ${CPIO_SYMLINK} -dumpl conf/base/ 659 find . -print | grep -Ev '/(CVS|\.svn|\.hg|\.git)/' | cpio ${CPIO_SYMLINK} -dumpv ${mnt} 767 find . -print | grep -Ev '/(CVS|\.svn|\.hg|\.git)/' | cpio ${CPIO_SYMLINK} -Ldumpv ${NANO_WORLDDIR}
|
/freebsd/lib/libarchive/tests/ |
H A D | Makefile | 364 ${PACKAGE}FILES+= test_compat_cpio_1.cpio.uu 495 ${PACKAGE}FILES+= test_read_format_cpio_bin_be.cpio.uu 496 ${PACKAGE}FILES+= test_read_format_cpio_bin_le.cpio.uu 497 ${PACKAGE}FILES+= test_read_format_cpio_filename_cp866.cpio.uu 498 ${PACKAGE}FILES+= test_read_format_cpio_filename_eucjp.cpio.uu 499 ${PACKAGE}FILES+= test_read_format_cpio_filename_koi8r.cpio.uu 500 ${PACKAGE}FILES+= test_read_format_cpio_filename_utf8_jp.cpio.uu 501 ${PACKAGE}FILES+= test_read_format_cpio_filename_utf8_ru.cpio.uu 704 ${PACKAGE}FILES+= test_write_disk_appledouble.cpio.gz.uu
|
/freebsd/usr.bin/cpio/tests/ |
H A D | functional_test.sh | 30 export BSDCPIO=$(which cpio)
|