Home
last modified time | relevance | path

Searched refs:prefix_len (Results 1 – 25 of 55) sorted by relevance

123

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_symbolizer_libcdep.cc21 uptr prefix_len = internal_strcspn(str, delims); in ExtractToken() local
22 *result = (char*)InternalAlloc(prefix_len + 1); in ExtractToken()
23 internal_memcpy(*result, str, prefix_len); in ExtractToken()
24 (*result)[prefix_len] = '\0'; in ExtractToken()
25 const char *prefix_end = str + prefix_len; in ExtractToken()
53 uptr prefix_len = in ExtractTokenUpToDelimiter() local
55 *result = (char *)InternalAlloc(prefix_len + 1); in ExtractTokenUpToDelimiter()
56 internal_memcpy(*result, str, prefix_len); in ExtractTokenUpToDelimiter()
57 (*result)[prefix_len] = '\0'; in ExtractTokenUpToDelimiter()
58 const char *prefix_end = str + prefix_len; in ExtractTokenUpToDelimiter()
Dsanitizer_posix.cc330 uptr prefix_len = end - beg; in FindPathToBinary() local
331 if (prefix_len + name_len + 2 <= kMaxPathLength) { in FindPathToBinary()
332 internal_memcpy(buffer.data(), beg, prefix_len); in FindPathToBinary()
333 buffer[prefix_len] = '/'; in FindPathToBinary()
334 internal_memcpy(&buffer[prefix_len + 1], name, name_len); in FindPathToBinary()
335 buffer[prefix_len + 1 + name_len] = '\0'; in FindPathToBinary()
Dsanitizer_stacktrace_printer.cc20 uptr prefix_len = internal_strlen(prefix); in StripFunctionName() local
21 if (0 == internal_strncmp(function, prefix, prefix_len)) in StripFunctionName()
22 return function + prefix_len; in StripFunctionName()
/external/bison/lib/
Dbasename-lgpl.c61 size_t prefix_len = FILE_SYSTEM_PREFIX_LEN (name); in base_len() local
70 if (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE && prefix_len in base_len()
71 && len == prefix_len && ISSLASH (name[prefix_len])) in base_len()
72 return prefix_len + 1; in base_len()
/external/tcpdump/
Dprint-lspping.c199 u_int8_t prefix_len; member
216 u_int8_t prefix_len; member
232 u_int8_t prefix_len; member
254 u_int8_t prefix_len; member
331 u_int8_t prefix_len; member
352 u_int8_t prefix_len; member
641 subtlv_ptr.lspping_tlv_targetfec_subtlv_ldp_ipv4->prefix_len); in lspping_print()
650 subtlv_ptr.lspping_tlv_targetfec_subtlv_ldp_ipv6->prefix_len); in lspping_print()
659 subtlv_ptr.lspping_tlv_targetfec_subtlv_bgp_ipv4->prefix_len, in lspping_print()
669 subtlv_ptr.lspping_tlv_targetfec_subtlv_bgp_ipv6->prefix_len, in lspping_print()
[all …]
Dutil.c431 int prefix_len = 32; in mask2plen() local
434 while (prefix_len >= 0) { in mask2plen()
435 if (bitmasks[prefix_len] == mask) in mask2plen()
437 prefix_len--; in mask2plen()
439 return (prefix_len); in mask2plen()
Dprint-isoclns.c1605 int prefix_len; in isis_print_tlv_ip_reach() local
1621 prefix_len = mask2plen(EXTRACT_32BITS(tlv_ip_reach->mask)); in isis_print_tlv_ip_reach()
1623 if (prefix_len == -1) in isis_print_tlv_ip_reach()
1632 prefix_len); in isis_print_tlv_ip_reach()
2093 u_int8_t pdu_type, max_area, id_length, tlv_type, tlv_len, tmp, alen, lan_alen, prefix_len; in isis_print() local
3007 prefix_len=*tptr++; /* read out prefix length in semioctets*/ in isis_print()
3008 if (prefix_len < 2) { in isis_print()
3009 printf("\n\t\tAddress: prefix length %u < 2", prefix_len); in isis_print()
3013 if (tmp < prefix_len/2) in isis_print()
3015 if (!TTEST2(*tptr, prefix_len/2)) in isis_print()
[all …]
/external/libunwind/tests/
Dtest-coredump-unwind.c90 int prefix_len, strerr_len, msgeol_len, used; in verror_msg_helper() local
104 prefix_len = msg_prefix[0] ? strlen(msg_prefix) + 2 : 0; in verror_msg_helper()
108 char *msg1 = (char*) realloc(msg, prefix_len + used + strerr_len + msgeol_len + 3); in verror_msg_helper()
116 if (prefix_len) in verror_msg_helper()
119 memmove(msg + prefix_len, msg, used); in verror_msg_helper()
120 used += prefix_len; in verror_msg_helper()
145 syslog(LOG_ERR, "%s", msg + prefix_len); in verror_msg_helper()
/external/lldb/source/Target/
DPathMappingList.cpp213 const size_t prefix_len = pos->first.GetLength(); in RemapPath() local
215 if (::strncmp (pos->first.GetCString(), path, prefix_len) == 0) in RemapPath()
218 new_path.append(path + prefix_len); in RemapPath()
238 const size_t prefix_len = pos->first.GetLength(); in FindFile() local
240 if (orig_path_len >= prefix_len) in FindFile()
242 if (::strncmp (pos->first.GetCString(), orig_path, prefix_len) == 0) in FindFile()
244 … = snprintf(new_path, sizeof(new_path), "%s/%s", pos->second.GetCString(), orig_path + prefix_len); in FindFile()
/external/compiler-rt/lib/profile/
DGCDAProfiling.c170 size_t filename_len, prefix_len; in mangle_filename() local
201 prefix_len = strlen(prefix); in mangle_filename()
202 new_filename = malloc(prefix_len + 1 + filename_len + 1); in mangle_filename()
203 memcpy(new_filename, prefix, prefix_len); in mangle_filename()
205 if (prefix[prefix_len - 1] != '/') in mangle_filename()
206 new_filename[prefix_len++] = '/'; in mangle_filename()
207 memcpy(new_filename + prefix_len, fname, filename_len + 1); in mangle_filename()
/external/srtp/srtp/
Dsrtp.c608 int prefix_len; in srtp_protect() local
786 prefix_len = auth_get_prefix_length(stream->rtp_auth); in srtp_protect()
787 if (prefix_len) { in srtp_protect()
788 status = cipher_output(stream->rtp_cipher, auth_tag, prefix_len); in srtp_protect()
792 octet_string_hex_string(auth_tag, prefix_len)); in srtp_protect()
852 int tag_len, prefix_len; in srtp_unprotect() local
1001 if (stream->rtp_auth->prefix_len != 0) { in srtp_unprotect()
1003 prefix_len = auth_get_prefix_length(stream->rtp_auth); in srtp_unprotect()
1004 status = cipher_output(stream->rtp_cipher, tmp_tag, prefix_len); in srtp_unprotect()
1006 octet_string_hex_string(tmp_tag, prefix_len)); in srtp_unprotect()
[all …]
/external/libselinux/src/
Dlabel_file.c37 size_t prefix_len; /* length of fixed path prefix */ member
197 spec->prefix_len = len; in spec_hasMetaChars()
214 spec->prefix_len = c - spec->regex_str; in spec_hasMetaChars()
687 size_t prefix_len = 0; in lookup_best_match() local
707 prefix_len = specs[0]->prefix_len; in lookup_best_match()
717 if (specs[i]->prefix_len > prefix_len) { in lookup_best_match()
719 prefix_len = specs[i]->prefix_len; in lookup_best_match()
/external/elfutils/src/src/
Dsize.c364 size_t prefix_len = prefix == NULL ? 0 : strlen (prefix); in handle_ar() local
366 char new_prefix[prefix_len + 1 + fname_len]; in handle_ar()
372 cp = mempcpy (cp, prefix, prefix_len); in handle_ar()
649 size_t prefix_len = prefix == NULL ? 0 : strlen (prefix); in handle_elf() local
651 char fullname[prefix_len + 1 + fname_len]; in handle_elf()
657 cp = mempcpy (cp, prefix, prefix_len); in handle_elf()
Dobjdump.c307 size_t prefix_len = prefix != NULL ? strlen (prefix) : 0; in handle_ar() local
308 char new_prefix[prefix_len + fname_len + 2]; in handle_ar()
778 size_t prefix_len = prefix == NULL ? 0 : strlen (prefix); in handle_elf() local
781 char fullname[prefix_len + 1 + fname_len + suffix_len]; in handle_elf()
784 cp = mempcpy (cp, prefix, prefix_len); in handle_elf()
/external/boringssl/src/crypto/bio/
Dbio.c474 const uint8_t *prefix, size_t prefix_len, in bio_read_all() argument
478 size_t len = prefix_len + kChunkSize; in bio_read_all()
482 if (len < prefix_len) { in bio_read_all()
489 memcpy(*out, prefix, prefix_len); in bio_read_all()
490 size_t done = prefix_len; in bio_read_all()
/external/linux-tools-perf/src/tools/perf/util/
Dhelp.c121 int prefix_len; in list_commands_in_dir() local
131 prefix_len = strlen(prefix); in list_commands_in_dir()
147 entlen = strlen(de->d_name) - prefix_len; in list_commands_in_dir()
151 add_cmdname(cmds, de->d_name + prefix_len, entlen); in list_commands_in_dir()
/external/libpng/
Dpngwutil.c490 compression_state *comp, png_uint_32 prefix_len) in png_text_compress() argument
546 if (output_len + prefix_len > PNG_UINT_31_MAX) in png_text_compress()
603 if (output_len + prefix_len >= PNG_UINT_31_MAX) in png_text_compress()
1676 png_uint_32 key_len, prefix_len; in png_write_iTXt() local
1724 prefix_len = key_len; in png_write_iTXt()
1725 if (lang_len > PNG_UINT_31_MAX-prefix_len) in png_write_iTXt()
1726 prefix_len = PNG_UINT_31_MAX; in png_write_iTXt()
1728 prefix_len = (png_uint_32)(prefix_len + lang_len); in png_write_iTXt()
1730 if (lang_key_len > PNG_UINT_31_MAX-prefix_len) in png_write_iTXt()
1731 prefix_len = PNG_UINT_31_MAX; in png_write_iTXt()
[all …]
/external/pdfium/samples/fx_lpng/lpng_v163/
Dfx_pngwutil.c489 compression_state *comp, png_uint_32 prefix_len) in png_text_compress() argument
545 if (output_len + prefix_len > PNG_UINT_31_MAX) in png_text_compress()
602 if (output_len + prefix_len >= PNG_UINT_31_MAX) in png_text_compress()
1675 png_uint_32 key_len, prefix_len; in png_write_iTXt() local
1723 prefix_len = key_len; in png_write_iTXt()
1724 if (lang_len > PNG_UINT_31_MAX-prefix_len) in png_write_iTXt()
1725 prefix_len = PNG_UINT_31_MAX; in png_write_iTXt()
1727 prefix_len = (png_uint_32)(prefix_len + lang_len); in png_write_iTXt()
1729 if (lang_key_len > PNG_UINT_31_MAX-prefix_len) in png_write_iTXt()
1730 prefix_len = PNG_UINT_31_MAX; in png_write_iTXt()
[all …]
/external/boringssl/src/crypto/rsa/
Drsa.c375 unsigned prefix_len = sig_prefix->len; in pkcs1_prefixed_msg() local
379 signed_msg_len = prefix_len + msg_len; in pkcs1_prefixed_msg()
380 if (signed_msg_len < prefix_len) { in pkcs1_prefixed_msg()
391 memcpy(signed_msg, prefix, prefix_len); in pkcs1_prefixed_msg()
392 memcpy(signed_msg + prefix_len, msg, msg_len); in pkcs1_prefixed_msg()
/external/boringssl/src/crypto/x509v3/
Dv3_utl.c684 static int wildcard_match(const unsigned char *prefix, size_t prefix_len, in wildcard_match() argument
695 if (subject_len < prefix_len + suffix_len) in wildcard_match()
697 if (!equal_nocase(prefix, prefix_len, subject, prefix_len, flags)) in wildcard_match()
699 wildcard_start = subject + prefix_len; in wildcard_match()
707 if (prefix_len == 0 && *suffix == '.') in wildcard_match()
/external/iproute2/include/linux/
Dinet_diag.h79 __u8 prefix_len; member
/external/srtp/crypto/hash/
Dnull_auth.c73 (*a)->prefix_len = out_len; in null_auth_alloc()
/external/mksh/src/
Dedit.c229 int prefix_len; in x_print_expansions() local
237 (prefix_len = x_longest_prefix(nwords, words)) > 0) { in x_print_expansions()
242 prefix_len = x_basename(words[0], NULL); in x_print_expansions()
245 if (x_basename(words[i] + prefix_len, NULL) > in x_print_expansions()
246 prefix_len) in x_print_expansions()
250 while (prefix_len > 0 && words[0][prefix_len - 1] != '/') in x_print_expansions()
251 prefix_len--; in x_print_expansions()
255 XPput(l, words[i] + prefix_len); in x_print_expansions()
678 size_t j, prefix_len; in x_longest_prefix() local
684 prefix_len = strlen(words[0]); in x_longest_prefix()
[all …]
/external/kernel-headers/original/uapi/linux/
Dinet_diag.h79 __u8 prefix_len; member
/external/iproute2/ip/
Dipprefix.c84 fprintf(fp, "/%u ", prefix->prefix_len); in print_prefix()

123