Home
last modified time | relevance | path

Searched refs:baselen (Results 1 – 17 of 17) sorted by relevance

/netbsd/lib/libc/gen/
H A Dhumanize_number.c53 size_t baselen; in humanize_number() local
96 baselen = 3; /* sign, digit, prefix */ in humanize_number()
102 baselen += 2; in humanize_number()
106 baselen = 2; /* digit, prefix */ in humanize_number()
111 baselen += 2; in humanize_number()
118 baselen++; in humanize_number()
120 baselen += strlen(suffix); in humanize_number()
123 if (len < baselen + 1) in humanize_number()
133 if (len - baselen > 19) in humanize_number()
137 for (max = 100, i = len - baselen; i-- > 0;) in humanize_number()
[all …]
/netbsd/external/gpl2/rcs/dist/src/
H A Drcsfnms.c627 size_t dlen, baselen, xlen;
651 VOID memcpy(p, base, baselen);
652 VOID memcpy(p += baselen, x, xlen);
662 VOID memcpy(p += baselen, x, xlen);
698 size_t arglen, dlen, baselen, xlen; local
717 baselen = x - base;
721 baselen <= (arglen = strlen(p)) &&
723 memcmp(base, p, baselen) == 0
730 p[baselen] = 0;
735 baselen = strlen(base);
[all …]
/netbsd/external/ibm-public/postfix/dist/src/util/
H A Dvstring_vstream.c128 #define VSTRING_GET_RESULT(vp, baselen) \ argument
147 return (VSTRING_GET_RESULT(vp, baselen)); in vstring_get_flags()
163 return (c == '\n' ? c : VSTRING_GET_RESULT(vp, baselen)); in vstring_get_flags_nonl()
179 return (c == 0 ? c : VSTRING_GET_RESULT(vp, baselen)); in vstring_get_flags_null()
202 return (VSTRING_GET_RESULT(vp, baselen)); in vstring_get_flags_bound()
222 return (c == '\n' ? c : VSTRING_GET_RESULT(vp, baselen)); in vstring_get_flags_nonl_bound()
242 return (c == 0 ? c : VSTRING_GET_RESULT(vp, baselen)); in vstring_get_flags_null_bound()
/netbsd/sbin/nvmectl/
H A Dhumanize_bignum.c110 size_t i, baselen, maxscale; in humanize_bignum() local
151 baselen = 3; /* sign, digit, prefix */ in humanize_bignum()
155 baselen = 2; /* digit, prefix */ in humanize_bignum()
166 baselen++; in humanize_bignum()
168 baselen += strlen(suffix); in humanize_bignum()
171 if (len < baselen + 1) in humanize_bignum()
182 for (i = len - baselen; i-- > 0;) { in humanize_bignum()
225 if (len < baselen + 1 + 2) in humanize_bignum()
/netbsd/bin/mv/
H A Dmv.c91 size_t baselen; in main() local
136 baselen = strlcpy(path, argv[argc - 1], sizeof(path)); in main()
137 if (baselen >= sizeof(path)) in main()
139 endp = &path[baselen]; in main()
140 if (!baselen || *(endp - 1) != '/') { in main()
142 ++baselen; in main()
153 if ((baselen + (len = strlen(p))) >= MAXPATHLEN) { in main()
/netbsd/external/gpl3/gcc.old/dist/gcc/d/
H A Dd-spec.cc384 int baselen = strlen (base) - 2; in lang_specific_driver() local
385 char *out = XNEWVEC (char, baselen + 3); in lang_specific_driver()
387 memcpy (out, base, baselen); in lang_specific_driver()
389 out[baselen] = '.'; in lang_specific_driver()
391 out[baselen + 1] = 's'; in lang_specific_driver()
393 out[baselen + 1] = 'o'; in lang_specific_driver()
394 out[baselen + 2] = '\0'; in lang_specific_driver()
/netbsd/external/gpl3/gcc/dist/gcc/d/
H A Dd-spec.cc394 int baselen = strlen (base) - 2; in lang_specific_driver() local
395 char *out = XNEWVEC (char, baselen + 3); in lang_specific_driver()
397 memcpy (out, base, baselen); in lang_specific_driver()
399 out[baselen] = '.'; in lang_specific_driver()
401 out[baselen + 1] = 's'; in lang_specific_driver()
403 out[baselen + 1] = 'o'; in lang_specific_driver()
404 out[baselen + 2] = '\0'; in lang_specific_driver()
/netbsd/external/gpl3/gdb/dist/gnulib/import/
H A Dfilenamecat-lgpl.c52 size_t baselen = strlen (base); in mfile_name_concat() local
70 char *p_concat = malloc (dirlen + (sep != '\0') + baselen + 1); in mfile_name_concat()
84 p = mempcpy (p, base, baselen); in mfile_name_concat()
/netbsd/external/gpl3/gdb.old/dist/gnulib/import/
H A Dfilenamecat-lgpl.c52 size_t baselen = strlen (base); in mfile_name_concat() local
70 char *p_concat = malloc (dirlen + (sep != '\0') + baselen + 1); in mfile_name_concat()
84 p = mempcpy (p, base, baselen); in mfile_name_concat()
/netbsd/external/gpl2/xcvs/dist/lib/
H A Dfilenamecat.c76 size_t baselen = strlen (base); in file_name_concat() local
78 char *p_concat = xmalloc (dirlen + needs_separator + baselen + 1); in file_name_concat()
88 p = mempcpy (p, base, baselen); in file_name_concat()
/netbsd/external/apache2/mDNSResponder/nss/
H A Dnss_mdnsd.c153 size_t baselen; member
954 iter->baselen = 0; in search_init()
1022 if (!iter->baselen) { in search_next()
1023 iter->baselen = strlcpy(iter->buf, iter->name, sizeof(iter->buf)); in search_next()
1024 if (iter->baselen >= sizeof(iter->buf) - 1) { in search_next()
1030 iter->buf[iter->baselen++] = '.'; in search_next()
1033 len = strlcpy(&(iter->buf[iter->baselen]), in search_next()
1035 sizeof(iter->buf) - iter->baselen); in search_next()
1039 if (len >= sizeof(iter->buf) - iter->baselen) { in search_next()
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/x509v3/
H A Dv3_ncons.c678 int hostlen, baselen, i; in nc_ip() local
683 baselen = base->length; in nc_ip()
688 if (!((baselen == 8) || (baselen == 32))) in nc_ip()
692 if (hostlen * 2 != baselen) in nc_ip()
/netbsd/crypto/external/bsd/openssl/dist/crypto/x509/
H A Dv3_ncons.c807 int hostlen, baselen, i; in nc_ip() local
812 baselen = base->length; in nc_ip()
817 if (!((baselen == 8) || (baselen == 32))) in nc_ip()
821 if (hostlen * 2 != baselen) in nc_ip()
/netbsd/usr.bin/config/
H A Dfiles.c100 size_t baselen; in addfile() local
137 (baselen = (size_t)(dotp - tail)) >= sizeof(base)) { in addfile()
170 memcpy(base, tail, baselen); in addfile()
171 base[baselen] = '\0'; in addfile()
/netbsd/external/gpl2/diffutils/dist/src/
H A Dsdiff.c338 size_t namelen = strlen (name), baselen = strlen (base); in expand_name() local
340 char *r = xmalloc (namelen + insert_slash + baselen + 1); in expand_name()
343 memcpy (r + namelen + insert_slash, base, baselen + 1); in expand_name()
/netbsd/external/cddl/osnet/dist/lib/libzfs/common/
H A Dlibzfs_sendrecv.c2124 int baselen, char *newname, recvflags_t *flags) in recv_rename() argument
2163 if (err != 0 && strncmp(name + baselen, "recv-", 5) != 0) { in recv_rename()
2167 "%.*srecv-%u-%u", baselen, name, getpid(), seq); in recv_rename()
2196 recv_destroy(libzfs_handle_t *hdl, const char *name, int baselen, in recv_destroy() argument
2244 err = recv_rename(hdl, name, NULL, baselen, newname, flags); in recv_destroy()
/netbsd/sys/netipsec/
H A Dkey.c8229 int baselen = 0; in key_validate_ext() local
8249 baselen = PFKEY_ALIGN8(sizeof(struct sadb_address)); in key_validate_ext()
8256 baselen = PFKEY_ALIGN8(sizeof(struct sadb_ident)); in key_validate_ext()
8270 sa = (const struct sockaddr *)(((const u_int8_t*)ext)+baselen); in key_validate_ext()
8271 if (len < baselen + sal) in key_validate_ext()
8273 if (baselen + PFKEY_ALIGN8(sa->sa_len) != len) in key_validate_ext()