Searched refs:dstsize (Results 1 - 10 of 10) sorted by relevance
/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/ |
H A D | strlcat.c | 32 * Appends src to the dstsize buffer at dst. The append will never 34 * terminated. Never reference beyond &dst[dstsize-1] when computing 39 strlcat(char *dst, const char *src, size_t dstsize) argument 42 size_t left = dstsize; 50 if (dstsize == l1) 53 copied = l1 + l2 >= dstsize ? dstsize - l1 - 1 : l2;
|
/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/include/ |
H A D | string.h | 33 extern size_t strlcat(char *dst, const char *src, size_t dstsize);
|
/freebsd-13-stable/crypto/openssh/ |
H A D | loginrec.h | 125 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);
|
H A D | loginrec.c | 564 line_fullname(char *dst, const char *src, u_int dstsize) argument 566 memset(dst, '\0', dstsize); 567 if ((strncmp(src, "/dev/", 5) == 0) || (dstsize < (strlen(src) + 5))) 568 strlcpy(dst, src, dstsize); 570 strlcpy(dst, "/dev/", dstsize); 571 strlcat(dst, src, dstsize); 578 line_stripname(char *dst, const char *src, int dstsize) argument 580 memset(dst, '\0', dstsize); 582 strlcpy(dst, src + 5, dstsize); 584 strlcpy(dst, src, dstsize); 597 line_abbrevname(char *dst, const char *src, int dstsize) argument [all...] |
/freebsd-13-stable/contrib/libpcap/ |
H A D | portability.h | 63 extern size_t pcap_strlcat(char * restrict dst, const char * restrict src, size_t dstsize); 81 extern size_t pcap_strlcpy(char * restrict dst, const char * restrict src, size_t dstsize);
|
/freebsd-13-stable/contrib/tcsh/ |
H A D | tc.str.c | 225 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 [all...] |
/freebsd-13-stable/lib/libc/nameser/ |
H A D | ns_samedomain.c | 172 ns_makecanon(const char *src, char *dst, size_t dstsize) { argument 175 if (n + sizeof "." > dstsize) { /*%< Note: sizeof == 2 */
|
/freebsd-13-stable/sys/kern/ |
H A D | kern_shutdown.c | 1722 size_t dstsize; local 1739 dstsize = sizeof(kdh->versionstring); 1740 if (strlcpy(kdh->versionstring, version, dstsize) >= dstsize) 1741 kdh->versionstring[dstsize - 2] = '\n';
|
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_cg.c | 471 size_t dstsize = dt_node_type_size(dst); local 478 if (dstsize == srcsize && 481 if (dstsize > srcsize && (src->dn_flags & DT_NF_SIGNED) == 0) 486 if (dstsize > srcsize) { 488 int s = (dstsize - srcsize) * NBBY; 512 } else if (dstsize != sizeof (uint64_t)) { 513 int n = sizeof (uint64_t) * NBBY - dstsize * NBBY;
|
H A D | dt_parser.c | 1918 size_t dstsize = dt_node_type_size(lp); local 1920 if (dstsize < srcsize) { 1921 int n = (sizeof (uint64_t) - dstsize) * NBBY; 1924 } else if (dstsize > srcsize) { 1926 int s = (dstsize - srcsize) * NBBY;
|
Completed in 290 milliseconds