/freebsd/sys/contrib/openzfs/lib/libspl/ |
H A D | strlcat.c | 39 strlcat(char *dst, const char *src, size_t dstsize) in strlcat() argument 42 size_t left = dstsize; in strlcat() 50 if (dstsize == l1) in strlcat() 53 copied = l1 + l2 >= dstsize ? dstsize - l1 - 1 : l2; in strlcat()
|
/freebsd/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 + MALLOC_SURPLUS) * sizeof(char)); [all …]
|
/freebsd/lib/libc/amd64/string/ |
H A D | strlcat.c | 17 strlcat(char *restrict dst, const char *restrict src, size_t dstsize) in strlcat() argument 19 char *loc = __memchr(dst, '\0', dstsize); in strlcat() 24 return (dstlen + __strlcpy(loc, src, dstsize - dstlen)); in strlcat() 26 return (dstsize + strlen(src)); in strlcat()
|
/freebsd/lib/libc/aarch64/string/ |
H A D | strlcat.c | 17 strlcat(char *restrict dst, const char *restrict src, size_t dstsize) in strlcat() argument 19 char *loc = __memchr_aarch64(dst, '\0', dstsize); in strlcat() 24 return (dstlen + __strlcpy(loc, src, dstsize - dstlen)); in strlcat() 26 return (dstsize + strlen(src)); in strlcat()
|
/freebsd/crypto/openssh/ |
H A D | loginrec.h | 127 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 D | loginrec.c | 546 line_fullname(char *dst, const char *src, u_int dstsize) in line_fullname() argument 548 memset(dst, '\0', dstsize); in line_fullname() 549 if ((strncmp(src, "/dev/", 5) == 0) || (dstsize < (strlen(src) + 5))) in line_fullname() 550 strlcpy(dst, src, dstsize); in line_fullname() 552 strlcpy(dst, "/dev/", dstsize); in line_fullname() 553 strlcat(dst, src, dstsize); in line_fullname() 560 line_stripname(char *dst, const char *src, int dstsize) in line_stripname() argument 562 memset(dst, '\0', dstsize); in line_stripname() 564 strlcpy(dst, src + 5, dstsize); in line_stripname() 566 strlcpy(dst, src, dstsize); in line_stripname() [all …]
|
/freebsd/contrib/libpcap/ |
H A D | portability.h | 63 extern size_t pcapint_strlcat(char * restrict dst, const char * restrict src, size_t dstsize); 81 extern size_t pcapint_strlcpy(char * restrict dst, const char * restrict src, size_t dstsize);
|
/freebsd/lib/libc/nameser/ |
H A D | ns_samedomain.c | 166 ns_makecanon(const char *src, char *dst, size_t dstsize) { in ns_makecanon() argument 169 if (n + sizeof "." > dstsize) { /*%< Note: sizeof == 2 */ in ns_makecanon()
|
/freebsd/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/sys/kern/ |
H A D | kern_shutdown.c | 1806 size_t dstsize; in dump_init_header() 1823 dstsize = sizeof(kdh->versionstring); in dump_init_header() 1824 if (strlcpy(kdh->versionstring, version, dstsize) >= dstsize) in dump_init_header() 1825 kdh->versionstring[dstsize - 2] = '\n'; in dump_init_header() 1803 size_t dstsize; dump_init_header() local
|
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_cg.c | 471 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()
|
H A D | dt_parser.c | 1941 size_t dstsize = dt_node_type_size(lp); in dt_cast() local 1943 if (dstsize < srcsize) { in dt_cast() 1944 int n = (sizeof (uint64_t) - dstsize) * NBBY; in dt_cast() 1947 } else if (dstsize > srcsize) { in dt_cast() 1949 int s = (dstsize - srcsize) * NBBY; in dt_cast()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetLibraryInfo.def | 606 /// size_t dstsize) 754 /// size_t dstsize); 760 /// size_t dstsize);
|
/freebsd/sys/contrib/openzfs/lib/libuutil/ |
H A D | libuutil.abi | 1248 <parameter type-id='b59d7dce' name='dstsize'/>
|
/freebsd/sys/contrib/openzfs/lib/libzfs_core/ |
H A D | libzfs_core.abi | 1207 <parameter type-id='b59d7dce' name='dstsize'/>
|