Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 90) sorted by relevance

1234

/busybox-1.35.0/testsuite/
Dcp.tests11 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/
Dunsafe_prefix.c10 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/
Ded.c133 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/
Dfsck.c200 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/
Dprocps.c39 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 …]
Dupdate_passwd.c180 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 …]
Dget_last_path_component.c13 const char *cp = strrchr(name, '/'); in bb_basename() local
14 if (cp) in bb_basename()
15 return cp + 1; in bb_basename()
Dpw_encrypt_sha.c50 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()
Dxconnect.c187 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/
Dll_addr.c60 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/
Dchksum_and_xwrite_tar_header.c17 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/
Dmkrootfs.sh67 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/
Dmpstat.c466 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/
Dtftp.c324 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 …]
Dnslookup.c347 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/
Dcp-does-not-copy-unreadable-file6 setuidgid 1 busybox cp foo bar
8 busybox cp foo bar
Dcp-dev-file1 busybox cp /dev/null foo
Dcp-copies-empty-file2 busybox cp foo bar
Dcp-preserves-source-file2 busybox cp foo bar
/busybox-1.35.0/util-linux/
Dhwclock.c104 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/
Dpasswd.c48 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/
Dbusybox.spec58 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/
Ddhcp_handler69 cp "$file_ipconf" "$dir_ipconf/$file_ipconf"
80 cp "$file_ntpconf" "$dir_ntpconf/$file_ntpconf"
/busybox-1.35.0/qemu_multiarch_testing/hdc.dir/
Dbuild7 cp -a "bin/busybox-$HOST" bin/busybox
12 cp -af bin/od `which od`
Dinit6 cp -a /mnt /home || { echo "cp: $?"; exit 1; }

1234