Home
last modified time | relevance | path

Searched refs:dstsize (Results 1 – 11 of 11) sorted by relevance

/dragonfly/contrib/tcsh-6/
HDtc.str.c225 static size_t dstsize = 0; local
232 dstsize = MALLOC_INCR;
233 sdst = xmalloc((dstsize + MALLOC_SURPLUS) * sizeof(char));
236 edst = &dst[dstsize];
244 dstsize += MALLOC_INCR;
245 sdst = xrealloc(sdst, (dstsize + MALLOC_SURPLUS) * sizeof(char));
246 edst = &sdst[dstsize];
535 static size_t dstsize = 0; local
542 dstsize = MALLOC_INCR;
543 sdst = xmalloc((dstsize + MALLOC_SURPLUS) * sizeof(char));
[all …]
/dragonfly/crypto/openssh/
HDloginrec.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);
HDloginrec.c567 line_fullname(char *dst, const char *src, u_int dstsize) in line_fullname() argument
569 memset(dst, '\0', dstsize); in line_fullname()
570 if ((strncmp(src, "/dev/", 5) == 0) || (dstsize < (strlen(src) + 5))) in line_fullname()
571 strlcpy(dst, src, dstsize); in line_fullname()
573 strlcpy(dst, "/dev/", dstsize); in line_fullname()
574 strlcat(dst, src, dstsize); in line_fullname()
581 line_stripname(char *dst, const char *src, int dstsize) in line_stripname() argument
583 memset(dst, '\0', dstsize); in line_stripname()
585 strlcpy(dst, src + 5, dstsize); in line_stripname()
587 strlcpy(dst, src, dstsize); in line_stripname()
[all …]
/dragonfly/contrib/libpcap/
HDportability.h70 extern size_t pcap_strlcat(char * restrict dst, const char * restrict src, size_t dstsize);
88 extern size_t pcap_strlcpy(char * restrict dst, const char * restrict src, size_t dstsize);
/dragonfly/lib/libc/nameser/
HDns_samedomain.c168 ns_makecanon(const char *src, char *dst, size_t dstsize) { in ns_makecanon() argument
171 if (n + sizeof "." > dstsize) { /*%< Note: sizeof == 2 */ in ns_makecanon()
/dragonfly/contrib/gcc-4.7/gcc/
HDebitmap.c547 unsigned int dstsize = dst->wordmask->n_bits; in ebitmap_ior_into() local
577 tempmask = sbitmap_alloc (MAX (srcsize, dstsize)); in ebitmap_ior_into()
579 if (srcsize == dstsize) in ebitmap_ior_into()
585 dst->wordmask = sbitmap_resize (dst->wordmask, MAX (srcsize, dstsize), in ebitmap_ior_into()
587 if (srcsize >= dstsize) in ebitmap_ior_into()
/dragonfly/contrib/gcc-8.0/gcc/
HDgimple-ssa-sprintf.c3803 unsigned HOST_WIDE_INT dstsize = HOST_WIDE_INT_M1U; in handle_gimple_call() local
3908 dstsize = get_destination_size (dstptr); in handle_gimple_call()
3916 dstsize = tree_to_uhwi (size); in handle_gimple_call()
3923 if (dstsize > target_size_max () / 2) in handle_gimple_call()
3933 dstsize, target_size_max () / 2); in handle_gimple_call()
3935 else if (dstsize > target_int_max ()) in handle_gimple_call()
3938 dstsize); in handle_gimple_call()
3949 dstsize = (warn_level < 2 in handle_gimple_call()
3965 if (info.bounded && !dstsize) in handle_gimple_call()
3993 info.objsize = dstsize < objsize ? dstsize : objsize; in handle_gimple_call()
[all …]
HDgimple-ssa-warn-restrict.c664 if (tree dstsize = compute_objsize (addr, ostype)) in builtin_access() local
665 dst.basesize = wi::to_offset (dstsize); in builtin_access()
1840 check_bounds_or_overlap (gcall *call, tree dst, tree src, tree dstsize, in check_bounds_or_overlap() argument
1853 builtin_memref dstref (dst, dstsize); in check_bounds_or_overlap()
HDtree-ssa-strlen.c2061 if (tree dstsize = compute_objsize (dst, 1)) in maybe_diag_stxncpy_trunc() local
2067 if (!dstsize) in maybe_diag_stxncpy_trunc()
2070 if (wi::to_wide (dstsize) != cntrange[1]) in maybe_diag_stxncpy_trunc()
2100 tree dstsize = NULL_TREE, srcsize = NULL_TREE; in handle_builtin_stxncpy() local
2109 dstsize = fold_build2 (PLUS_EXPR, type, sidst->nonzero_chars, in handle_builtin_stxncpy()
2137 dstsize, srcsize)) in handle_builtin_stxncpy()
HDbuiltins.c3046 tree maxread, tree srcstr, tree dstsize) in check_access() argument
3115 if (!dstsize) in check_access()
3116 dstsize = maxobjsize; in check_access()
3153 && ((tree_fits_uhwi_p (dstsize) in check_access()
3154 && tree_int_cst_lt (dstsize, range[0])) in check_access()
3172 exp, func, range[0], dstsize); in check_access()
3180 exp, func, range[0], dstsize); in check_access()
3187 exp, func, range[0], dstsize); in check_access()
3194 dstsize); in check_access()
3212 if (range[0] && dstsize && tree_fits_uhwi_p (dstsize)) in check_access()
[all …]
HDgimple-fold.c2033 unsigned HOST_WIDE_INT dstsize; in gimple_fold_builtin_strncat() local
2037 if (!nowarn && compute_builtin_object_size (dst, 1, &dstsize)) in gimple_fold_builtin_strncat()
2039 int cmpdst = compare_tree_int (len, dstsize); in gimple_fold_builtin_strncat()
2056 stmt, fndecl, len, dstsize); in gimple_fold_builtin_strncat()