Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 18 of 18) sorted by relevance

/openssh-portable/openbsd-compat/
H A Dvis.c68 *dst++ = c; in vis()
69 *dst = '\0'; in vis()
139 *dst++ = c; in vis()
142 *dst = '\0'; in vis()
143 return (dst); in vis()
167 dst = vis(dst, c, flag, *++src); in strvis()
168 *dst = '\0'; in strvis()
199 dst += i; in strnvis()
243 dst = vis(dst, c, flag, *++src); in strvisx()
246 dst = vis(dst, *src, flag, '\0'); in strvisx()
[all …]
H A Dinet_ntop.c48 static const char *inet_ntop4(const u_char *src, char *dst, size_t size);
49 static const char *inet_ntop6(const u_char *src, char *dst, size_t size);
60 inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop() argument
64 return (inet_ntop4(src, dst, (size_t)size)); in inet_ntop()
66 return (inet_ntop6(src, dst, (size_t)size)); in inet_ntop()
86 inet_ntop4(const u_char *src, char *dst, size_t size) in inet_ntop4() argument
97 strlcpy(dst, tmp, size); in inet_ntop4()
98 return (dst); in inet_ntop4()
108 inet_ntop6(const u_char *src, char *dst, size_t size) in inet_ntop6() argument
207 strlcpy(dst, tmp, size); in inet_ntop6()
[all …]
H A Dstrlcat.c35 strlcat(char *dst, const char *src, size_t siz) in strlcat() argument
37 char *d = dst; in strlcat()
45 dlen = d - dst; in strlcat()
H A Dstrlcpy.c33 strlcpy(char *dst, const char *src, size_t siz) in strlcpy() argument
35 char *d = dst; in strlcpy()
H A Dopenbsd-compat.h97 size_t strlcpy(char *dst, const char *src, size_t siz);
101 size_t strlcat(char *dst, const char *src, size_t siz);
157 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
H A Dsha2.c110 #define BE_8_TO_32(dst, cp) do { \ argument
111 (dst) = (u_int32_t)(cp)[3] | ((u_int32_t)(cp)[2] << 8) | \
115 #define BE_8_TO_64(dst, cp) do { \ argument
116 (dst) = (u_int64_t)(cp)[7] | ((u_int64_t)(cp)[6] << 8) | \
/openssh-portable/
H A Dinstall-sh95 dst=
249 dst=$src
250 dstdir=$dst
267 dst=$dst_arg
271 if test -d "$dst"; then
276 dstdir=$dst
282 (dirname "$dst") 2>/dev/null ||
285 X"$dst" : 'X\(//\)$' \| \
287 echo X"$dst" |
502 test ! -f "$dst" ||
[all …]
H A Dutf8.c78 if (*dp + need < *dst + *sz) in grow_dst()
85 *dp = tp + (*dp - *dst); in grow_dst()
86 *dst = tp; in grow_dst()
108 char *dst; /* Destination string to be returned. */ in vasnmprintf() local
123 if ((dst = malloc(sz)) == NULL) { in vasnmprintf()
133 dp = dst; in vasnmprintf()
164 if (print && (dp - dst >= (int)maxsz - len || in vasnmprintf()
168 if (grow_dst(&dst, &sz, maxsz, in vasnmprintf()
186 if (print && (dp - dst >= (int)maxsz - 4 || in vasnmprintf()
190 if (grow_dst(&dst, &sz, maxsz, in vasnmprintf()
[all …]
H A Dloginrec.h127 char *line_fullname(char *dst, const char *src, u_int dstsize);
128 char *line_stripname(char *dst, const char *src, int dstsize);
129 char *line_abbrevname(char *dst, const char *src, int dstsize);
H A Daddr.c208 addr_and(struct xaddr *dst, const struct xaddr *a, const struct xaddr *b) in addr_and() argument
212 if (dst == NULL || a == NULL || b == NULL || a->af != b->af) in addr_and()
215 memcpy(dst, a, sizeof(*dst)); in addr_and()
218 dst->v4.s_addr &= b->v4.s_addr; in addr_and()
221 dst->scope_id = a->scope_id; in addr_and()
223 dst->addr32[i] &= b->addr32[i]; in addr_and()
H A Dloginrec.c568 memset(dst, '\0', dstsize); in line_fullname()
570 strlcpy(dst, src, dstsize); in line_fullname()
572 strlcpy(dst, "/dev/", dstsize); in line_fullname()
573 strlcat(dst, src, dstsize); in line_fullname()
575 return (dst); in line_fullname()
582 memset(dst, '\0', dstsize); in line_stripname()
584 strlcpy(dst, src + 5, dstsize); in line_stripname()
586 strlcpy(dst, src, dstsize); in line_stripname()
587 return (dst); in line_stripname()
603 memset(dst, '\0', dstsize); in line_abbrevname()
[all …]
H A Dsftp-client.c1611 "directory \"%s\"", dst); in download_dir_internal()
1615 error("mkdir %s: %s", dst, strerror(errno)); in download_dir_internal()
1629 new_dst = path_append(dst, filename); in download_dir_internal()
1661 if (utimes(dst, tv) == -1) in download_dir_internal()
1663 dst, strerror(errno)); in download_dir_internal()
1666 "\"%s\"", dst); in download_dir_internal()
1669 if (mode != tmpmode && chmod(dst, mode) == -1) in download_dir_internal()
1670 error("Can't set final mode on \"%s\": %s", dst, in download_dir_internal()
1960 if (do_mkdir(conn, dst, &a, 0) != 0) { in upload_dir_internal()
1981 new_dst = path_append(dst, filename); in upload_dir_internal()
[all …]
H A Dservconf.c2534 dst->n = src->n; \ in copy_set_server_options()
2585 free(dst->n); \ in copy_set_server_options()
2586 dst->n = src->n; \ in copy_set_server_options()
2593 free(dst->s[i]); \ in copy_set_server_options()
2594 free(dst->s); \ in copy_set_server_options()
2595 dst->s = xcalloc(src->num_s, sizeof(*dst->s)); \ in copy_set_server_options()
2598 dst->num_s = src->num_s; \ in copy_set_server_options()
2606 assemble_algorithms(dst); in copy_set_server_options()
2618 free(dst->adm_forced_command); in copy_set_server_options()
2623 free(dst->chroot_directory); in copy_set_server_options()
[all …]
H A Daddr.h54 int addr_and(struct xaddr *dst, const struct xaddr *a, const struct xaddr *b);
H A Dauth-options.c46 char **dst; in dup_strings() local
54 if ((dst = calloc(nsrc, sizeof(*src))) == NULL) in dup_strings()
57 if ((dst[i] = strdup(src[i])) == NULL) { in dup_strings()
59 free(dst[j]); in dup_strings()
60 free(dst); in dup_strings()
65 *dstp = dst; in dup_strings()
H A Dsftp.c594 process_get(struct sftp_conn *conn, const char *src, const char *dst, in process_get() argument
622 if (g.gl_matchc > 1 && dst != NULL && !local_is_dir(dst)) { in process_get()
624 "\"%s\" is not a directory", dst); in process_get()
638 if (g.gl_matchc == 1 && dst) { in process_get()
639 if (local_is_dir(dst)) { in process_get()
640 abs_dst = path_append(dst, filename); in process_get()
642 abs_dst = xstrdup(dst); in process_get()
644 } else if (dst) { in process_get()
645 abs_dst = path_append(dst, filename); in process_get()
691 if (dst) { in process_put()
[all …]
H A Dmisc.c906 char *ret, *dst; in urldecode() local
910 for (dst = ret; *src != '\0'; src++) { in urldecode()
913 *dst++ = ' '; in urldecode()
922 *dst++ = ch; in urldecode()
926 *dst++ = *src; in urldecode()
930 *dst = '\0'; in urldecode()
H A Dconfigure.ac2516 dnl OpenBSD, 2001: strnvis(char *dst, const char *src, size_t dlen, int flag);
2517 dnl NetBSD: 2012, strnvis(char *dst, size_t dlen, const char *src, int flag);
2529 char dst[16];
2532 if (strnvis(dst, "src", 4, 0) && strcmp(dst, "src") == 0)