/busybox-1.35.0/libbb/ |
D | copy_file.c | 26 static int ask_and_unlink(const char *dest, int flags) in ask_and_unlink() argument 33 bb_perror_msg("can't create '%s'", dest); in ask_and_unlink() 50 fprintf(stderr, "%s: overwrite '%s'? ", applet_name, dest); in ask_and_unlink() 54 if (unlink(dest) < 0) { in ask_and_unlink() 59 bb_error_msg("can't create '%s': Path does not exist", dest); in ask_and_unlink() 64 bb_perror_msg("can't create '%s'", dest); in ask_and_unlink() 70 printf("removed '%s'\n", dest); in ask_and_unlink() 80 int FAST_FUNC copy_file(const char *source, const char *dest, int flags) in copy_file() argument 102 if (lstat(dest, &dest_stat) < 0) { in copy_file() 104 bb_perror_msg("can't stat '%s'", dest); in copy_file() [all …]
|
D | unicode.c | 133 size_t FAST_FUNC wcstombs(char *dest, const wchar_t *src, size_t n) in wcstombs() argument 140 *dest++ = c; in wcstombs() 150 size_t len = wcrtomb_internal(dest, wc); in wcstombs() 154 dest += len; in wcstombs() 164 memcpy(dest, tbuf, len); in wcstombs() 167 dest += len; in wcstombs() 226 size_t FAST_FUNC mbstowcs(wchar_t *dest, const char *src, size_t n) in mbstowcs() argument 234 if (dest) in mbstowcs() 235 *dest++ = c; in mbstowcs() 248 if (dest) in mbstowcs() [all …]
|
/busybox-1.35.0/coreutils/ |
D | mv.c | 47 const char *dest; in mv_main() local 97 dest = last; in mv_main() 105 dest = last; in mv_main() 114 dest = concat_path_file(last, bb_get_last_path_component_strip(*argv)); in mv_main() 115 dest_exists = cp_mv_stat(dest, &statbuf); in mv_main() 125 && ((access(dest, W_OK) < 0 && isatty(0)) in mv_main() 128 if (fprintf(stderr, "mv: overwrite '%s'? ", dest) < 0) { in mv_main() 137 if (rename(*argv, dest) < 0) { in mv_main() 160 if (unlink(dest) < 0) { in mv_main() 161 bb_perror_msg("can't remove '%s'", dest); in mv_main() [all …]
|
D | install.c | 202 char *dest; in install_main() local 205 dest = arg; in install_main() 209 if (bb_make_directory(dest, 0755, mkdir_flags)) { in install_main() 214 dest = last; in install_main() 216 char *ddir = xstrdup(dest); in install_main() 228 dest = concat_path_file(last, bb_basename(arg)); in install_main() 229 if (copy_file(arg, dest, copy_flags) != 0) { in install_main() 238 args[2] = dest; in install_main() 249 if (chmod(dest, mode) == -1) { in install_main() 250 bb_perror_msg("can't change %s of %s", "permissions", dest); in install_main() [all …]
|
D | cp.c | 119 const char *dest; in cp_main() local 248 dest = last; in cp_main() 260 dest = concat_path_file(last, *argv); in cp_main() 261 dest_dup = xstrdup(dest); in cp_main() 270 dest = concat_path_file(last, bb_get_last_path_component_strip(*argv)); in cp_main() 272 if (copy_file(*argv, dest, flags) < 0) { in cp_main() 280 free((void*)dest); in cp_main()
|
D | stat.c | 419 char *dest = xmalloc(strlen(format) + 2 + 1); 438 memcpy(dest, p, len); 439 dest[len] = '\0'; 456 print_func(dest, *p, filename, data IF_SELINUX(,scontext)); 462 free(dest);
|
/busybox-1.35.0/testsuite/ |
D | testing.sh | 122 dest=$1 128 [ -f "$dest/$i" ] && continue 132 mkdir -p "$dest/$d" && 133 cat "$i" > "$dest/$i" && 134 chmod +x "$dest/$i" 138 mkchroot "$dest" $(ldd "$i" | egrep -o '/.* ')
|
/busybox-1.35.0/networking/udhcp/ |
D | dhcpc.c | 148 static int sprint_nip(char *dest, const char *pre, const uint8_t *ip) in sprint_nip() argument 150 return sprintf(dest, "%s%u.%u.%u.%u", pre, ip[0], ip[1], ip[2], ip[3]); in sprint_nip() 197 char *dest, *ret; in xmalloc_optname_optval() local 207 dest = ret = xmalloc(upper_length + strlen(opt_name) + 2); in xmalloc_optname_optval() 208 dest += sprintf(ret, "%s=", opt_name); in xmalloc_optname_optval() 214 dest += sprint_nip(dest, "", option); in xmalloc_optname_optval() 216 dest += sprint_nip(dest, "/", option + 4); in xmalloc_optname_optval() 222 dest += sprintf(dest, "%u", *option); in xmalloc_optname_optval() 228 dest += sprintf(dest, "%u", ntohs(val_u16)); in xmalloc_optname_optval() 235 dest += sprintf(dest, type == OPTION_U32 ? "%lu" : "%ld", (unsigned long) ntohl(val_u32)); in xmalloc_optname_optval() [all …]
|
D | d6_packet.c | 94 packet.udp.dest = htons(dest_port); in d6_send_raw_packet_from_client_data_ifindex()
|
D | packet.c | 163 packet.udp.dest = htons(dest_port); in udhcp_send_raw_packet()
|
D | common.h | 386 int sprint_nip6(char *dest, /*const char *pre,*/ const uint8_t *ip) FAST_FUNC;
|
D | common.c | 719 int FAST_FUNC sprint_nip6(char *dest, /*const char *pre,*/ const uint8_t *ip) in sprint_nip6() argument 723 return sprintf(dest, /* "%s" */ in sprint_nip6()
|
D | dhcpd.c | 342 char **dest = arg; in read_str() local 344 free(*dest); in read_str() 345 *dest = xstrdup(line); in read_str()
|
/busybox-1.35.0/shell/ |
D | hush.c | 4737 static int add_till_single_quote(o_string *dest, struct in_str *input) in add_till_single_quote() argument 4747 o_addchr(dest, ch); in add_till_single_quote() 4750 static int add_till_single_quote_dquoted(o_string *dest, struct in_str *input) in add_till_single_quote_dquoted() argument 4760 o_addqchr(dest, ch); in add_till_single_quote_dquoted() 4764 static int add_till_backquote(o_string *dest, struct in_str *input, int in_dquote); 4765 static int add_till_double_quote(o_string *dest, struct in_str *input) in add_till_double_quote() argument 4776 o_addchr(dest, ch); in add_till_double_quote() 4779 o_addchr(dest, ch); in add_till_double_quote() 4781 if (!add_till_backquote(dest, input, /*in_dquote:*/ 1)) in add_till_double_quote() 4783 o_addchr(dest, ch); in add_till_double_quote() [all …]
|
D | ash.c | 754 newline_and_flush(FILE *dest) in newline_and_flush() argument 757 putc('\n', dest); in newline_and_flush() 758 fflush(dest); in newline_and_flush() 2896 docd(const char *dest, int flags) in docd() argument 2901 TRACE(("docd(\"%s\", %d) called\n", dest, flags)); in docd() 2905 dir = updatepwd(dest); in docd() 2907 dest = dir; in docd() 2909 err = chdir(dest); in docd() 2922 const char *dest; in cdcmd() local 2931 dest = *argptr; in cdcmd() [all …]
|
/busybox-1.35.0/archival/libarchive/unxz/ |
D | xz_dec_bcj.c | 100 uint32_t dest; in bcj_x86() local 133 dest = src - (s->pos + (uint32_t)i + 5); in bcj_x86() 138 b = (uint8_t)(dest >> (24 - j)); in bcj_x86() 142 src = dest ^ (((uint32_t)1 << (32 - j)) - 1); in bcj_x86() 145 dest &= 0x01FFFFFF; in bcj_x86() 146 dest |= (uint32_t)0 - (dest & 0x01000000); in bcj_x86() 147 put_unaligned_le32(dest, buf + i + 1); in bcj_x86()
|
D | xz_dec_lzma2.c | 538 uint16_t *probs, uint32_t *dest, uint32_t limit) in rc_bittree_reverse() argument 546 *dest += 1 << i; in rc_bittree_reverse() 555 struct rc_dec *rc, uint32_t *dest, uint32_t limit) in rc_direct() argument 565 *dest = (*dest << 1) + (mask + 1); in rc_direct()
|
/busybox-1.35.0/include/ |
D | unicode.h | 106 size_t mbstowcs(wchar_t *dest, const char *src, size_t n) FAST_FUNC; 107 size_t wcstombs(char *dest, const wchar_t *src, size_t n) FAST_FUNC;
|
D | platform.h | 600 static ALWAYS_INLINE void *mempcpy(void *dest, const void *src, size_t len) in mempcpy() argument 602 return memcpy(dest, src, len) + len; in mempcpy()
|
/busybox-1.35.0/util-linux/ |
D | mdev.c | 547 char *dest; in build_alias() local 551 dest = strrchr(alias, '/'); in build_alias() 552 if (dest) { /* ">bar/[baz]" ? */ in build_alias() 553 *dest = '\0'; /* mkdir bar */ in build_alias() 555 *dest = '/'; in build_alias() 556 if (dest[1] == '\0') { /* ">bar/" => ">bar/device_name" */ in build_alias() 557 dest = alias; in build_alias() 559 free(dest); in build_alias()
|
/busybox-1.35.0/archival/libarchive/bz/ |
D | bzlib.c | 384 int BZ2_bzBuffToBuffCompress(char* dest, in BZ2_bzBuffToBuffCompress() argument 393 if (dest == NULL || destLen == NULL in BZ2_bzBuffToBuffCompress() 403 strm.next_out = dest; in BZ2_bzBuffToBuffCompress()
|
/busybox-1.35.0/editors/ |
D | sed.c | 223 static unsigned parse_escapes(char *dest, const char *string, int len, char from, char to) in parse_escapes() argument 225 char *d = dest; in parse_escapes() 235 return d - dest; in parse_escapes() 245 return d - dest; in parse_escapes() 249 return d - dest; in parse_escapes() 255 char *dest = xmalloc(len + 1); in copy_parsing_escapes() local 260 len = parse_escapes(dest, string, len, s[1], s[0]); in copy_parsing_escapes() 261 string = dest; in copy_parsing_escapes() 263 return dest; in copy_parsing_escapes()
|
D | vi.c | 929 char *dest = scr_out_buf; // [MAX_SCR_COLS + MAX_TABSTOP * 2] in format_line() local 947 dest[co++] = c; in format_line() 950 dest[co++] = '^'; in format_line() 958 dest[co++] = c; in format_line() 962 memmove(dest, dest + tabstop, co); in format_line() 974 dest += ofs; in format_line() 977 memset(&dest[co], ' ', columns - co); in format_line() 978 return dest; in format_line() 1410 static char *text_yank(char *p, char *q, int dest, int buftype) in text_yank() argument 1412 char *oldreg = reg[dest]; in text_yank() [all …]
|
D | awk.c | 1047 static var *copyvar(var *dest, const var *src) in copyvar() argument 1049 if (dest != src) { in copyvar() 1050 clrvar(dest); in copyvar() 1051 dest->type |= (src->type & ~(VF_DONTTOUCH | VF_FSTR)); in copyvar() 1053 dest->number = src->number; in copyvar() 1055 dest->string = xstrdup(src->string); in copyvar() 1057 handle_special(dest); in copyvar() 1058 return dest; in copyvar() 2448 static int awk_sub(node *rn, const char *repl, int nm, var *src, var *dest, int subexp) in awk_sub() argument 2533 setvar_p(dest ? dest : intvar[F0], resbuf); in awk_sub()
|
/busybox-1.35.0/miscutils/ |
D | devfsd.c | 299 static void safe_memcpy(char * dest, const char * src, int len); 310 const char *dest; member 363 static void safe_memcpy(char *dest, const char *src, int len) in safe_memcpy() argument 365 memcpy(dest, src, len); in safe_memcpy() 366 dest[len] = '\0'; in safe_memcpy() 445 for (curr = initial_symlinks; curr->dest != NULL; ++curr) in devfsd_main() 446 symlink(curr->dest, curr->name); in devfsd_main()
|