| /netbsd-src/bin/csh/ |
| H A D | str.c | 101 static size_t dstsize = 0; in str2short() local 107 dstsize = MALLOC_INCR; in str2short() 108 sdst = xreallocarray(NULL, (size_t)dstsize, sizeof(*sdst)); in str2short() 112 edst = &dst[dstsize]; in str2short() 116 dstsize += MALLOC_INCR; in str2short() 117 sdst = xreallocarray(sdst, (size_t)dstsize, sizeof(*sdst)); in str2short() 118 edst = &sdst[dstsize]; in str2short() 130 static size_t dstsize = 0; in short2str() local 137 dstsize = MALLOC_INCR; in short2str() 138 sdst = xreallocarray(NULL, dstsize, sizeof(*sdst)); in short2str() [all …]
|
| /netbsd-src/sys/dev/arcbios/ |
| H A D | arcbios.c | 175 char *dst, size_t dstsize) in arcbios_component_id_copy() argument 178 dstsize--; in arcbios_component_id_copy() 179 if (dstsize > node->IdentifierLength) in arcbios_component_id_copy() 180 dstsize = node->IdentifierLength; in arcbios_component_id_copy() 181 memcpy(dst, (void *)(intptr_t)node->Identifier, dstsize); in arcbios_component_id_copy() 182 dst[dstsize] = '\0'; in arcbios_component_id_copy()
|
| /netbsd-src/sys/external/bsd/drm2/include/linux/ |
| H A D | string.h | 98 strscpy(char *dst, const char *src, size_t dstsize) in strscpy() argument 100 size_t n = dstsize; in strscpy() 115 return dstsize - n; in strscpy()
|
| /netbsd-src/external/bsd/am-utils/dist/m4/ |
| H A D | copy-if-newbig | 13 $dstsize = $dststat[7]; 17 if ($srcsize > $dstsize && $srcmtime > $dstmtime) {
|
| /netbsd-src/external/gpl3/binutils/dist/gprofng/libcollector/ |
| H A D | libcol_util.h | 45 extern size_t __collector_strlcpy (char *dst, const char *src, size_t dstsize); 48 extern size_t __collector_strlcat (char *dst, const char *src, size_t dstsize); 53 extern size_t __collector_strncpy (char *dst, const char *src, size_t dstsize); 54 extern size_t __collector_strncat (char *dst, const char *src, size_t dstsize);
|
| H A D | libcol_util.c | 375 __collector_strlcpy (char *dst, const char *src, size_t dstsize) in __collector_strlcpy() argument 378 size_t n = dstsize - 1; in __collector_strlcpy() 383 if (dstsize > 0) in __collector_strlcpy() 389 __collector_strncpy (char *dst, const char *src, size_t dstsize) in __collector_strncpy() argument 392 for (i = 0; i < dstsize; i++) in __collector_strncpy() 415 __collector_strlcat (char *dst, const char *src, size_t dstsize) in __collector_strlcat() argument 418 return sz + __collector_strlcpy (dst + sz, src, dstsize - sz); in __collector_strlcat()
|
| /netbsd-src/external/gpl3/binutils.old/dist/gprofng/libcollector/ |
| H A D | libcol_util.h | 44 extern size_t __collector_strlcpy (char *dst, const char *src, size_t dstsize); 47 extern size_t __collector_strlcat (char *dst, const char *src, size_t dstsize); 52 extern size_t __collector_strncpy (char *dst, const char *src, size_t dstsize); 53 extern size_t __collector_strncat (char *dst, const char *src, size_t dstsize);
|
| H A D | libcol_util.c | 381 __collector_strlcpy (char *dst, const char *src, size_t dstsize) in __collector_strlcpy() argument 384 size_t n = dstsize - 1; in __collector_strlcpy() 389 if (dstsize > 0) in __collector_strlcpy() 395 __collector_strncpy (char *dst, const char *src, size_t dstsize) in __collector_strncpy() argument 398 for (i = 0; i < dstsize; i++) in __collector_strncpy() 421 __collector_strlcat (char *dst, const char *src, size_t dstsize) in __collector_strlcat() argument 424 return sz + __collector_strlcpy (dst + sz, src, dstsize - sz); in __collector_strlcat()
|
| /netbsd-src/external/mpl/bind/dist/lib/ns/ |
| H A D | hooks.c | 61 ns_plugin_expandpath(const char *src, char *dst, size_t dstsize) { 71 result = snprintf(dst, dstsize, "%s", src); in ns_plugin_expandpath() 76 result = snprintf(dst, dstsize, "%s/%s", NAMED_PLUGINDIR, src); in ns_plugin_expandpath() 81 } else if ((size_t)result >= dstsize) { in ns_plugin_expandpath() 62 ns_plugin_expandpath(const char * src,char * dst,size_t dstsize) ns_plugin_expandpath() argument
|
| /netbsd-src/external/bsd/libbind/dist/nameser/ |
| H A D | ns_samedomain.c | 168 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()
|
| /netbsd-src/lib/libc/nameser/ |
| H A D | ns_samedomain.c | 175 ns_makecanon(const char *src, char *dst, size_t dstsize) { in ns_makecanon() argument 178 if (n + sizeof "." > dstsize) { /*%< Note: sizeof == 2 */ in ns_makecanon()
|
| /netbsd-src/external/gpl3/binutils/dist/gprofng/src/ |
| H A D | collector_module.h | 95 size_t (*strlcat)(char *dest, const char *src, size_t dstsize); 96 size_t (*strlcpy)(char *dest, const char *src, size_t dstsize); 99 size_t (*strncpy)(char *dst, const char *src, size_t dstsize);
|
| /netbsd-src/external/gpl3/binutils.old/dist/gprofng/src/ |
| H A D | collector_module.h | 91 size_t (*strlcat)(char *dest, const char *src, size_t dstsize); 92 size_t (*strlcpy)(char *dest, const char *src, size_t dstsize); 95 size_t (*strncpy)(char *dst, const char *src, size_t dstsize);
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | gimple-ssa-warn-access.cc | 1257 tree maxread, tree srcstr, tree dstsize, in check_access() argument 1341 if (!dstsize) in check_access() 1342 dstsize = maxobjsize; in check_access() 1378 && ((tree_fits_uhwi_p (dstsize) in check_access() 1379 && tree_int_cst_lt (dstsize, range[0])) in check_access() 1402 func, range[0], dstsize) in check_access() 1407 range[0], dstsize)); in check_access() 1418 range, dstsize, in check_access() 1444 tree size = dstsize; in check_access() 1523 tree maxread, tree srcstr, tree dstsize, in check_access() argument [all …]
|
| H A D | gimple-ssa-sprintf.cc | 4376 unsigned HOST_WIDE_INT dstsize = HOST_WIDE_INT_M1U; in handle_printf_call() local 4569 dstsize = get_destination_size (dstptr, info.callstmt, ptr_qry); in handle_printf_call() 4577 dstsize = tree_to_uhwi (size); in handle_printf_call() 4584 if (dstsize > target_size_max () / 2) in handle_printf_call() 4594 dstsize, target_size_max () / 2); in handle_printf_call() 4600 else if (dstsize > target_int_max ()) in handle_printf_call() 4604 dstsize); in handle_printf_call() 4625 dstsize = warn_level < 2 ? maxsize : minsize; in handle_printf_call() 4651 if (info.bounded && !dstsize) in handle_printf_call() 4679 info.objsize = dstsize < objsize ? dstsize : objsize; in handle_printf_call() [all …]
|
| H A D | gimple-ssa-warn-restrict.cc | 2002 check_bounds_or_overlap (gimple *call, tree dst, tree src, tree dstsize, in check_bounds_or_overlap() argument 2008 call, dst, src, dstsize, srcsize, in check_bounds_or_overlap() 2014 gimple *call, tree dst, tree src, tree dstsize, in check_bounds_or_overlap() argument 2020 builtin_memref dstref (ptrqry, call, dst, dstsize); in check_bounds_or_overlap() 2033 offset_int wroff = acs.write_off (dstsize); in check_bounds_or_overlap()
|
| /netbsd-src/external/bsd/openldap/dist/contrib/slapd-modules/passwd/pbkdf2/ |
| H A D | pw-pbkdf2.c | 84 static int ab64_to_b64(char *src, char *dst, size_t dstsize){ in ab64_to_b64() argument 88 if(i >= dstsize){ in ab64_to_b64() 99 if(i >= dstsize){ in ab64_to_b64()
|
| /netbsd-src/external/gpl3/binutils/dist/include/vms/ |
| H A D | eihs.h | 38 unsigned char dstsize[4]; member
|
| /netbsd-src/external/gpl3/binutils.old/dist/include/vms/ |
| H A D | eihs.h | 38 unsigned char dstsize[4]; member
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
| H A D | gimple-ssa-sprintf.c | 4322 unsigned HOST_WIDE_INT dstsize = HOST_WIDE_INT_M1U; in handle_printf_call() local 4515 dstsize = get_destination_size (dstptr); in handle_printf_call() 4523 dstsize = tree_to_uhwi (size); in handle_printf_call() 4530 if (dstsize > target_size_max () / 2) in handle_printf_call() 4540 dstsize, target_size_max () / 2); in handle_printf_call() 4546 else if (dstsize > target_int_max ()) in handle_printf_call() 4550 dstsize); in handle_printf_call() 4568 dstsize = warn_level < 2 ? maxsize : minsize; in handle_printf_call() 4601 if (info.bounded && !dstsize) in handle_printf_call() 4630 info.objsize = dstsize < objsize ? dstsize : objsize; in handle_printf_call() [all …]
|
| H A D | gimple-ssa-warn-restrict.c | 767 if (tree dstsize = compute_objsize (addr, ostype)) in builtin_access() local 768 dst.basesize = wi::to_offset (dstsize); in builtin_access() 1990 check_bounds_or_overlap (gimple *call, tree dst, tree src, tree dstsize, in check_bounds_or_overlap() argument 1996 builtin_memref dstref (dst, dstsize); in check_bounds_or_overlap() 2009 offset_int wroff = acs.write_off (dstsize); in check_bounds_or_overlap()
|
| /netbsd-src/sys/net/ |
| H A D | nd.c | 311 uint8_t *lldst, size_t dstsize) in nd_resolve() argument 350 memcpy(lldst, &ln->ll_addr, MIN(dstsize, ifp->if_addrlen)); in nd_resolve()
|
| /netbsd-src/external/mpl/bind/dist/lib/ns/include/ns/ |
| H A D | hooks.h | 518 ns_plugin_expandpath(const char *src, char *dst, size_t dstsize); 522 * in 'dst', which is 'dstsize' bytes large.
|
| /netbsd-src/external/bsd/openldap/dist/libraries/liblber/ |
| H A D | sockbuf.c | 936 socklen_t dstsize; in sb_dgram_write() local 945 dstsize = dst->sa_family == AF_INET ? sizeof( struct sockaddr_in ) in sb_dgram_write() 950 rc = sendto( sbiod->sbiod_sb->sb_fd, buf, len, 0, dst, dstsize ); in sb_dgram_write()
|
| /netbsd-src/external/cddl/osnet/dist/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()
|