/busybox-1.35.0/testsuite/ |
D | cp.tests | 11 rm -rf cp.testdir >/dev/null 13 mkdir cp.testdir 14 mkdir cp.testdir/dir 15 > cp.testdir/dir/file 16 ln -s file cp.testdir/dir/file_symlink 18 > cp.testdir/file 19 ln -s file cp.testdir/file_symlink 20 ln -s dir cp.testdir/dir_symlink 25 rm -rf cp.testdir2 >/dev/null && mkdir cp.testdir2 || exit 1 38 rm -rf cp.testdir2 >/dev/null && mkdir cp.testdir2 || exit 1 [all …]
|
/busybox-1.35.0/archival/libarchive/ |
D | unsafe_prefix.c | 10 const char *cp = str; in strip_unsafe_prefix() local 13 if (*cp == '/') { in strip_unsafe_prefix() 14 cp++; in strip_unsafe_prefix() 17 if (is_prefixed_with(cp, "/../"+1)) { in strip_unsafe_prefix() 18 cp += 3; in strip_unsafe_prefix() 21 cp2 = strstr(cp, "/../"); in strip_unsafe_prefix() 24 cp = cp2 + 4; in strip_unsafe_prefix() 26 if (cp != str) { in strip_unsafe_prefix() 31 (int)(cp - str), str); in strip_unsafe_prefix() 34 return cp; in strip_unsafe_prefix()
|
/busybox-1.35.0/editors/ |
D | ed.c | 133 const char *cp, *ncp; in findString() local 135 cp = &lp->data[offset]; in findString() 139 ncp = memchr(cp, str[0], left + 1); in findString() 142 left -= (ncp - cp); in findString() 143 cp = ncp; in findString() 144 if (memcmp(cp, str, len) == 0) in findString() 145 return (cp - lp->data); in findString() 146 cp++; in findString() 204 static const char* getNum(const char *cp, smallint *retHaveNum, int *retNum) in getNum() argument 215 cp = skip_whitespace(cp); in getNum() [all …]
|
/busybox-1.35.0/e2fsprogs/ |
D | fsck.c | 200 char *str, *cp; in base_device() local 209 cp = skip_dev_pfx(str); in base_device() 210 if (cp == str) in base_device() 217 if (cp[0] == 'm' && cp[1] == 'd') { in base_device() 218 cp[2] = 0; in base_device() 223 if (is_prefixed_with(cp, "rd/")) { in base_device() 224 cp += 3; in base_device() 225 if (cp[0] != 'c' || !isdigit(cp[1]) in base_device() 226 || cp[2] != 'd' || !isdigit(cp[3])) in base_device() 228 cp[4] = 0; in base_device() [all …]
|
/busybox-1.35.0/libbb/ |
D | procps.c | 39 cache_t *cp; in get_cached() local 45 cp = &cache_user_group[user_group]; in get_cached() 47 for (i = 0; i < cp->size; i++) in get_cached() 48 if (cp->cache[i].id == id) in get_cached() 49 return cp->cache[i].name; in get_cached() 50 i = cp->size++; in get_cached() 51 cp->cache = xrealloc_vector(cp->cache, 2, i); in get_cached() 52 cp->cache[i].id = id; in get_cached() 54 safe_strncpy(cp->cache[i].name, x2x_utoa(id), sizeof(cp->cache[i].name)); in get_cached() 55 return cp->cache[i].name; in get_cached() [all …]
|
D | update_passwd.c | 180 char *cp, *line; in update_passwd() local 218 cp = is_prefixed_with(line, name_colon); in update_passwd() 219 if (!cp) { in update_passwd() 246 cp = strrchr(line, ':'); in update_passwd() 248 *cp++ = '\0'; in update_passwd() 253 tmp = cp; in update_passwd() 254 while ((cp = strsep(&tmp, ",")) != NULL) { in update_passwd() 255 if (strcmp(member, cp) != 0) { in update_passwd() 256 fprintf(new_fp, fmt, cp); in update_passwd() 271 cp = strchrnul(cp, ':'); /* move past old passwd */ in update_passwd() [all …]
|
D | get_last_path_component.c | 13 const char *cp = strrchr(name, '/'); in bb_basename() local 14 if (cp) in bb_basename() 15 return cp + 1; in bb_basename()
|
D | pw_encrypt_sha.c | 50 char *cp; in sha_crypt() local 145 cp = p_bytes; /* was: ... = alloca(key_len); */ in sha_crypt() 147 cp = memcpy(cp, temp_result, _32or64); in sha_crypt() 148 cp += _32or64; in sha_crypt() 150 memcpy(cp, temp_result, cnt); in sha_crypt() 163 cp = s_bytes; /* was: ... = alloca(salt_len); */ in sha_crypt() 165 cp = memcpy(cp, temp_result, _32or64); in sha_crypt() 166 cp += _32or64; in sha_crypt() 168 memcpy(cp, temp_result, cnt); in sha_crypt()
|
D | xconnect.c | 187 const char *cp; variable 207 cp = strchr(host, ']'); 208 if (!cp || (cp[1] != ':' && cp[1] != '\0')) { 216 cp = strrchr(host, ':'); 217 if (ENABLE_FEATURE_IPV6 && cp && strchr(host, ':') != cp) { 219 cp = NULL; /* it's not a port spec */ 222 if (cp) { /* points to ":" or "]:" */ 223 int sz = cp - host + 1; 226 if (ENABLE_FEATURE_IPV6 && *cp != ':') { 227 cp++; /* skip ']' */ [all …]
|
/busybox-1.35.0/networking/libiproute/ |
D | ll_addr.c | 60 char *cp = strchr(arg, ':'); in ll_addr_a2n() local 61 if (cp) { in ll_addr_a2n() 62 *cp = 0; in ll_addr_a2n() 63 cp++; in ll_addr_a2n() 70 if (!cp) { in ll_addr_a2n() 73 arg = cp; in ll_addr_a2n()
|
/busybox-1.35.0/archival/ |
D | chksum_and_xwrite_tar_header.c | 17 const unsigned char *cp; in chksum_and_xwrite_tar_header() local 28 cp = (const unsigned char *) hp; in chksum_and_xwrite_tar_header() 31 do { chksum += *cp++; } while (--size); in chksum_and_xwrite_tar_header()
|
/busybox-1.35.0/examples/bootfloppy/ |
D | mkrootfs.sh | 67 cp -a libc.so* $BASE_DIR/$TARGET_DIR/lib 68 cp -a uClibc*.so $BASE_DIR/$TARGET_DIR/lib 69 cp -a ld.so-1/d-link/ld-linux-uclibc.so* $BASE_DIR/$TARGET_DIR/lib 70 cp -a ld.so-1/libdl/libdl.so* $BASE_DIR/$TARGET_DIR/lib 71 cp -a crypt/libcrypt.so* $BASE_DIR/$TARGET_DIR/lib 89 cp -a etc $TARGET_DIR
|
/busybox-1.35.0/procps/ |
D | mpstat.c | 466 struct stats_cpu *cp; in get_cpu_statistics() local 471 cp = cpu; /* for "cpu " case */ in get_cpu_statistics() 480 cp = &cpu[cpu_number + 1]; in get_cpu_statistics() 485 memset(cp, 0, sizeof(*cp)); in get_cpu_statistics() 490 &cp->cpu_user, &cp->cpu_nice, &cp->cpu_system, in get_cpu_statistics() 491 &cp->cpu_idle, &cp->cpu_iowait, &cp->cpu_irq, in get_cpu_statistics() 492 &cp->cpu_softirq, &cp->cpu_steal, &cp->cpu_guest in get_cpu_statistics() 499 sum = cp->cpu_user + cp->cpu_nice + cp->cpu_system + in get_cpu_statistics() 500 cp->cpu_idle + cp->cpu_iowait + cp->cpu_irq + in get_cpu_statistics() 501 cp->cpu_softirq + cp->cpu_steal; in get_cpu_statistics() [all …]
|
/busybox-1.35.0/networking/ |
D | tftp.c | 324 char *cp; variable 385 cp = xbuf + 2; 463 cp = stpcpy(cp, remote_file) + 1; 465 cp = stpcpy(cp, "octet") + 1; 472 if ((&xbuf[io_bufsize - 1] - cp) < sizeof("blksize NNNNN tsize ") + sizeof(off_t)*3) { 484 strcpy(cp, "blksize"); 485 cp += sizeof("blksize"); 486 cp += snprintf(cp, 6, "%d", blksize) + 1; 496 strcpy(cp, "tsize"); 497 cp += sizeof("tsize"); [all …]
|
D | nslookup.c | 347 const unsigned char *cp; in parse_reply() local 447 cp = ns_rr_rdata(rr); in parse_reply() 449 cp + 6, dname, sizeof(dname)); in parse_reply() 457 ns_get16(cp), ns_get16(cp + 2), ns_get16(cp + 4), dname); in parse_reply() 468 cp = ns_rr_rdata(rr); in parse_reply() 470 cp, dname, sizeof(dname)); in parse_reply() 477 cp += n; in parse_reply() 480 cp, dname, sizeof(dname)); in parse_reply() 487 cp += n; in parse_reply() 489 printf("\tserial = %lu\n", ns_get32(cp)); in parse_reply() [all …]
|
/busybox-1.35.0/testsuite/cp/ |
D | cp-does-not-copy-unreadable-file | 6 setuidgid 1 busybox cp foo bar 8 busybox cp foo bar
|
D | cp-dev-file | 1 busybox cp /dev/null foo
|
D | cp-copies-empty-file | 2 busybox cp foo bar
|
D | cp-preserves-source-file | 2 busybox cp foo bar
|
/busybox-1.35.0/util-linux/ |
D | hwclock.c | 104 char cp[64]; in show_clock() local 106 strftime(cp, sizeof(cp), "%c", ptm); in show_clock() 108 char *cp = ctime(&t); in show_clock() local 109 chomp(cp); in show_clock() 113 printf("%s 0.000000 seconds\n", cp); in show_clock() 127 printf("%s %ld.%06lu seconds\n", cp, diff, (unsigned long)sys_tv.tv_usec); in show_clock()
|
/busybox-1.35.0/loginutils/ |
D | passwd.c | 48 char *cp = NULL; in new_password() local 77 cp = bb_ask_noecho_stdin("Retype password: "); in new_password() 78 if (!cp) in new_password() 80 if (strcmp(cp, newp) != 0) { in new_password() 98 nuke_str(cp); in new_password() 99 if (ENABLE_FEATURE_CLEAN_UP) free(cp); in new_password()
|
/busybox-1.35.0/examples/ |
D | busybox.spec | 58 cp -a /usr/include/asm kernel-include 59 cp -a /usr/include/asm-generic kernel-include 60 cp -a /usr/include/linux kernel-include 73 cp %{SOURCE1} .config 90 cp busybox busybox.static 95 cp %{SOURCE2} .config 99 cp busybox busybox.petitboot
|
/busybox-1.35.0/examples/var_service/dhcp_if/ |
D | dhcp_handler | 69 cp "$file_ipconf" "$dir_ipconf/$file_ipconf" 80 cp "$file_ntpconf" "$dir_ntpconf/$file_ntpconf"
|
/busybox-1.35.0/qemu_multiarch_testing/hdc.dir/ |
D | build | 7 cp -a "bin/busybox-$HOST" bin/busybox 12 cp -af bin/od `which od`
|
D | init | 6 cp -a /mnt /home || { echo "cp: $?"; exit 1; }
|