Home
last modified time | relevance | path

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

/NextBSD/contrib/tcsh/
HDtc.str.c214 static size_t dstsize = 0; in short2str() local
221 dstsize = MALLOC_INCR; in short2str()
222 sdst = xmalloc((dstsize + MALLOC_SURPLUS) * sizeof(char)); in short2str()
225 edst = &dst[dstsize]; in short2str()
233 dstsize += MALLOC_INCR; in short2str()
234 sdst = xrealloc(sdst, (dstsize + MALLOC_SURPLUS) * sizeof(char)); in short2str()
235 edst = &sdst[dstsize]; in short2str()
524 static size_t dstsize = 0; in short2qstr() local
531 dstsize = MALLOC_INCR; in short2qstr()
532 sdst = xmalloc((dstsize + MALLOC_SURPLUS) * sizeof(char)); in short2qstr()
[all …]
/NextBSD/crypto/openssh/
HDloginrec.h125 char *line_fullname(char *dst, const char *src, u_int dstsize);
126 char *line_stripname(char *dst, const char *src, int dstsize);
127 char *line_abbrevname(char *dst, const char *src, int dstsize);
HDloginrec.c560 line_fullname(char *dst, const char *src, u_int dstsize) in line_fullname() argument
562 memset(dst, '\0', dstsize); in line_fullname()
563 if ((strncmp(src, "/dev/", 5) == 0) || (dstsize < (strlen(src) + 5))) in line_fullname()
564 strlcpy(dst, src, dstsize); in line_fullname()
566 strlcpy(dst, "/dev/", dstsize); in line_fullname()
567 strlcat(dst, src, dstsize); in line_fullname()
574 line_stripname(char *dst, const char *src, int dstsize) in line_stripname() argument
576 memset(dst, '\0', dstsize); in line_stripname()
578 strlcpy(dst, src + 5, dstsize); in line_stripname()
580 strlcpy(dst, src, dstsize); in line_stripname()
[all …]
/NextBSD/lib/libc/nameser/
HDns_samedomain.c170 ns_makecanon(const char *src, char *dst, size_t dstsize) { in ns_makecanon() argument
173 if (n + sizeof "." > dstsize) { /*%< Note: sizeof == 2 */ in ns_makecanon()
/NextBSD/cddl/contrib/opensolaris/lib/libdtrace/common/
HDdt_cg.c471 size_t dstsize = dt_node_type_size(dst); in dt_cg_typecast() local
478 if (dstsize == srcsize && in dt_cg_typecast()
481 if (dstsize > srcsize && (src->dn_flags & DT_NF_SIGNED) == 0) in dt_cg_typecast()
486 if (dstsize > srcsize) { in dt_cg_typecast()
488 int s = (dstsize - srcsize) * NBBY; in dt_cg_typecast()
512 } else if (dstsize != sizeof (uint64_t)) { in dt_cg_typecast()
513 int n = sizeof (uint64_t) * NBBY - dstsize * NBBY; in dt_cg_typecast()
HDdt_parser.c1918 size_t dstsize = dt_node_type_size(lp); in dt_cast() local
1920 if (dstsize < srcsize) { in dt_cast()
1921 int n = (sizeof (uint64_t) - dstsize) * NBBY; in dt_cast()
1924 } else if (dstsize > srcsize) { in dt_cast()
1926 int s = (dstsize - srcsize) * NBBY; in dt_cast()