Home
last modified time | relevance | path

Searched refs:endp (Results 1 – 25 of 139) sorted by relevance

123456

/external/openssh/openbsd-compat/
Ddirname.c33 const char *endp; in dirname() local
43 endp = path + strlen(path) - 1; in dirname()
44 while (endp > path && *endp == '/') in dirname()
45 endp--; in dirname()
48 while (endp > path && *endp != '/') in dirname()
49 endp--; in dirname()
52 if (endp == path) { in dirname()
53 dname[0] = *endp == '/' ? '/' : '.'; in dirname()
59 endp--; in dirname()
60 } while (endp > path && *endp == '/'); in dirname()
[all …]
Dbasename.c31 const char *endp, *startp; in basename() local
41 endp = path + strlen(path) - 1; in basename()
42 while (endp > path && *endp == '/') in basename()
43 endp--; in basename()
46 if (endp == path && *endp == '/') { in basename()
53 startp = endp; in basename()
57 len = endp - startp + 1; in basename()
/external/elfutils/libdw/
Ddwarf_formsdata.c45 const unsigned char *endp = attr->cu->endp; in dwarf_formsdata() local
50 if (datap + 1 > endp) in dwarf_formsdata()
60 if (datap + 2 > endp) in dwarf_formsdata()
66 if (datap + 4 > endp) in dwarf_formsdata()
72 if (datap + 8 > endp) in dwarf_formsdata()
78 if (datap + 1 > endp) in dwarf_formsdata()
80 get_sleb128 (*return_sval, datap, endp); in dwarf_formsdata()
84 if (datap + 1 > endp) in dwarf_formsdata()
86 get_uleb128 (*return_sval, datap, endp); in dwarf_formsdata()
Ddwarf_formblock.c45 const unsigned char *endp = attr->cu->endp; in dwarf_formblock() local
50 if (unlikely (endp - datap < 1)) in dwarf_formblock()
57 if (unlikely (endp - datap < 2)) in dwarf_formblock()
64 if (unlikely (endp - datap < 4)) in dwarf_formblock()
72 if (unlikely (endp - datap < 1)) in dwarf_formblock()
74 get_uleb128 (return_block->length, datap, endp); in dwarf_formblock()
82 if (unlikely (endp - datap < 16)) in dwarf_formblock()
93 if (unlikely (return_block->length > (size_t) (endp - return_block->data))) in dwarf_formblock()
Dlibdw_form.c46 const unsigned char *endp = cu->endp; in __libdw_form_val_compute_len() local
72 if (unlikely ((size_t) (endp - startp) < 1)) in __libdw_form_val_compute_len()
78 if (unlikely ((size_t) (endp - startp) < 2)) in __libdw_form_val_compute_len()
84 if (unlikely ((size_t) (endp - startp) < 4)) in __libdw_form_val_compute_len()
91 get_uleb128 (u128, valp, endp); in __libdw_form_val_compute_len()
98 (size_t) (endp - startp)); in __libdw_form_val_compute_len()
114 get_uleb128 (u128, valp, endp); in __libdw_form_val_compute_len()
119 get_uleb128 (u128, valp, endp); in __libdw_form_val_compute_len()
132 if (unlikely (result > (size_t) (endp - startp))) in __libdw_form_val_compute_len()
Ddwarf_formudata.c123 unsigned char *endp = d->d_buf + d->d_size; in __libdw_formptr() local
124 if (unlikely (readp >= endp)) in __libdw_formptr()
132 *endpp = endp; in __libdw_formptr()
145 const unsigned char *endp = attr->cu->endp; in dwarf_formudata() local
150 if (datap + 1 > endp) in dwarf_formudata()
160 if (datap + 2 > endp) in dwarf_formudata()
299 if (datap + 1 > endp) in dwarf_formudata()
301 get_sleb128 (*return_uval, datap, endp); in dwarf_formudata()
307 if (datap + 1 > endp) in dwarf_formudata()
309 get_uleb128 (*return_uval, datap, endp); in dwarf_formudata()
[all …]
Ddwarf_formref.c42 const unsigned char *endp = attr->cu->endp; in __libdw_formref() local
53 if (datap + 1 > endp) in __libdw_formref()
63 if (datap + 2 > endp) in __libdw_formref()
69 if (datap + 4 > endp) in __libdw_formref()
75 if (datap + 8 > endp) in __libdw_formref()
81 if (datap + 1 > endp) in __libdw_formref()
83 get_uleb128 (*return_offset, datap, endp); in __libdw_formref()
Ddwarf_ranges.c48 Dwarf_Addr *beginp, Dwarf_Addr *endp, in __libdw_read_begin_end_pair_inc() argument
92 *endp = end; in __libdw_read_begin_end_pair_inc()
107 *endp = begin + end; in __libdw_read_begin_end_pair_inc()
153 *endp = end + *basep; in __libdw_read_begin_end_pair_inc()
195 *endp = end; in __libdw_read_begin_end_pair_inc()
210 *endp = begin + end; in __libdw_read_begin_end_pair_inc()
223 *endp = end + base; in __libdw_read_begin_end_pair_inc()
243 *endp = end; in __libdw_read_begin_end_pair_inc()
256 *endp = begin + end; in __libdw_read_begin_end_pair_inc()
302 *endp = end; in __libdw_read_begin_end_pair_inc()
[all …]
Ddwarf_formaddr.c89 const unsigned char *endp = attr->cu->endp; in dwarf_formaddr() local
103 if (datap >= endp) in dwarf_formaddr()
109 get_uleb128 (idx, datap, endp); in dwarf_formaddr()
113 if (datap >= endp - 1) in dwarf_formaddr()
119 if (datap >= endp - 2) in dwarf_formaddr()
125 if (datap >= endp - 3) in dwarf_formaddr()
131 if (datap >= endp - 4) in dwarf_formaddr()
Ddwarf_siblingof.c79 size_t size = sibattr.cu->endp - sibattr.cu->startp; in dwarf_siblingof()
98 unsigned char *endp = sibattr.cu->endp; in dwarf_siblingof() local
104 if (addr >= endp) in dwarf_siblingof()
128 unsigned char *endp = sibattr.cu->endp; in dwarf_siblingof() local
129 if (addr >= endp) in dwarf_siblingof()
Ddwarf_formstring.c93 const unsigned char *endp = cu->endp; in dwarf_formstring() local
98 if (datap >= endp) in dwarf_formstring()
104 get_uleb128 (idx, datap, endp); in dwarf_formstring()
108 if (datap >= endp - 1) in dwarf_formstring()
114 if (datap >= endp - 2) in dwarf_formstring()
120 if (datap >= endp - 3) in dwarf_formstring()
126 if (datap >= endp - 4) in dwarf_formstring()
Dencoded-value.h89 const unsigned char *endp = cache->data->d.d_buf + cache->data->d.d_size; in __libdw_cfi_read_address_inc() local
94 if (unlikely (*addrp + 4 > endp)) in __libdw_cfi_read_address_inc()
104 if (unlikely (*addrp + 8 > endp)) in __libdw_cfi_read_address_inc()
157 const unsigned char *endp = cache->data->d.d_buf + cache->data->d.d_size; in read_encoded_value() local
161 if (unlikely (*p + 2 > endp)) in read_encoded_value()
171 if (unlikely (*p + 2 > endp)) in read_encoded_value()
199 get_uleb128 (value, *p, endp); in read_encoded_value()
203 get_sleb128 (value, *p, endp); in read_encoded_value()
Ddwarf_getmacros.c146 const unsigned char *const endp, in get_table_for_offset() argument
152 if (readp + 3 > endp) in get_table_for_offset()
173 if (readp > endp) in get_table_for_offset()
224 if (readp >= endp) in get_table_for_offset()
226 get_uleb128 (e.nforms, readp, endp); in get_table_for_offset()
231 if (readp > endp) in get_table_for_offset()
274 const unsigned char *const endp, in cache_op_table() argument
284 ? get_table_for_offset (dbg, macoff, startp, endp, cudie) in cache_op_table()
321 const unsigned char *const endp = d->d_buf + d->d_size; in read_macros() local
324 startp, endp, cudie); in read_macros()
[all …]
/external/e2fsprogs/intl/
Dplural-exp.c113 char *endp; in EXTRACT_PLURAL_EXPRESSION() local
124 n = strtoul (nplurals, &endp, 10); in EXTRACT_PLURAL_EXPRESSION()
126 for (endp = nplurals, n = 0; *endp >= '0' && *endp <= '9'; endp++) in EXTRACT_PLURAL_EXPRESSION()
127 n = n * 10 + (*endp - '0'); in EXTRACT_PLURAL_EXPRESSION()
129 if (nplurals == endp) in EXTRACT_PLURAL_EXPRESSION()
/external/curl/lib/
Dinet_pton.c155 unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local
161 endp = tp + IN6ADDRSZ; in inet_pton6()
192 if(tp + INT16SZ > endp) in inet_pton6()
200 if(ch == '.' && ((tp + INADDRSZ) <= endp) && in inet_pton6()
209 if(tp + INT16SZ > endp) in inet_pton6()
222 if(tp == endp) in inet_pton6()
225 *(endp - i) = *(colonp + n - i); in inet_pton6()
228 tp = endp; in inet_pton6()
230 if(tp != endp) in inet_pton6()
/external/tcpdump/
Dstrtoaddr.c161 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in strtoaddr6() local
167 endp = tp + NS_IN6ADDRSZ; in strtoaddr6()
197 if (tp + NS_INT16SZ > endp) in strtoaddr6()
205 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in strtoaddr6()
214 if (tp + NS_INT16SZ > endp) in strtoaddr6()
227 if (tp == endp) in strtoaddr6()
230 endp[- i] = colonp[n - i]; in strtoaddr6()
233 tp = endp; in strtoaddr6()
235 if (tp != endp) in strtoaddr6()
Dprint-cdp.c283 const u_char *endp = p + l; in cdp_print_addr() local
289 if (p + 4 > endp) in cdp_print_addr()
294 while (p < endp && num >= 0) { in cdp_print_addr()
296 if (p + 2 > endp) in cdp_print_addr()
303 if (p + pl + 2 > endp) in cdp_print_addr()
316 if (p + 4 > endp) in cdp_print_addr()
331 if (p + al > endp) in cdp_print_addr()
342 if (p + pl > endp) in cdp_print_addr()
348 if (p + 2 > endp) in cdp_print_addr()
354 if (p + al > endp) in cdp_print_addr()
/external/iproute2/lib/
Dmpls_pton.c13 char *endp; in mpls_pton1() local
19 label = strtoul(name, &endp, 0); in mpls_pton1()
24 if (endp == name) /* no digits */ in mpls_pton1()
28 if (*endp == '\0') { in mpls_pton1()
34 if (*endp != '/') in mpls_pton1()
37 name = endp + 1; in mpls_pton1()
/external/ltp/testcases/kernel/io/ltp-aiodio/
Ddio_sparse.c105 char *endp; in main() local
111 alignment = strtol(optarg, &endp, 0); in main()
112 alignment = scale_by_kmg(alignment, *endp); in main()
115 writesize = strtol(optarg, &endp, 0); in main()
116 writesize = scale_by_kmg(writesize, *endp); in main()
119 filesize = strtol(optarg, &endp, 0); in main()
120 filesize = scale_by_kmg(filesize, *endp); in main()
123 offset = strtol(optarg, &endp, 0); in main()
124 offset = scale_by_kmg(offset, *endp); in main()
/external/curl/src/
Dtool_urlglob.c203 char *endp; in glob_range() local
205 step = strtoul(&pattern[4], &endp, 10); in glob_range()
206 if(errno || &pattern[4] == endp || *endp != ']') in glob_range()
209 pattern = endp + 1; in glob_range()
243 char *endp; in glob_range() local
259 min_n = strtoul(pattern, &endp, 10); in glob_range()
260 if(errno || (endp == pattern)) in glob_range()
261 endp = NULL; in glob_range()
263 if(*endp != '-') in glob_range()
264 endp = NULL; in glob_range()
[all …]
/external/libnl/lib/
Dmpls.c61 char *endp; in mpls_pton1() local
67 label = strtoul(name, &endp, 0); in mpls_pton1()
72 if (endp == name) /* no digits */ in mpls_pton1()
76 if (*endp == '\0') { in mpls_pton1()
82 if (*endp != '/') in mpls_pton1()
85 name = endp + 1; in mpls_pton1()
/external/wpa_supplicant_8/src/fst/
Dfst_ctrl_iface.c559 char *endp; in get_peer_mbies() local
566 if (fst_read_next_text_param(params, ifname, sizeof(ifname), &endp) || in get_peer_mbies()
570 while (isspace(*endp)) in get_peer_mbies()
571 endp++; in get_peer_mbies()
572 if (fst_read_peer_addr(endp, peer_addr)) in get_peer_mbies()
821 int fst_read_next_int_param(const char *params, bool *valid, char **endp) in fst_read_next_int_param() argument
827 *endp = (char *) params; in fst_read_next_int_param()
830 ret = (int) strtol(curp, endp, 0); in fst_read_next_int_param()
831 if (!**endp || isspace(**endp)) in fst_read_next_int_param()
840 char **endp) in fst_read_next_text_param() argument
[all …]
/external/llvm-project/polly/lib/External/isl/imath/
Dimrat.c685 char *endp; in mp_rat_read_cstring() local
687 if ((res = mp_int_read_cstring(MP_NUMER_P(r), radix, str, &endp)) != MP_OK && in mp_rat_read_cstring()
692 while (isspace((unsigned char) *endp)) in mp_rat_read_cstring()
693 ++endp; in mp_rat_read_cstring()
696 if (*endp != '/') { in mp_rat_read_cstring()
699 *end = endp; in mp_rat_read_cstring()
703 ++endp; /* skip separator */ in mp_rat_read_cstring()
704 if ((res = mp_int_read_cstring(MP_DENOM_P(r), radix, endp, end)) != MP_OK) in mp_rat_read_cstring()
723 char *endp; in mp_rat_read_ustring() local
729 if ((res = mp_rat_read_cstring(r, radix, str, &endp)) != MP_OK) { in mp_rat_read_ustring()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/
Dinet_net_pton.c274 unsigned char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_net_pton_ipv6() local
285 endp = tp + NS_IN6ADDRSZ; in inet_net_pton_ipv6()
319 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6()
328 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_net_pton_ipv6()
340 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6()
353 endp = tmp + 2 * words; in inet_net_pton_ipv6()
363 if (tp == endp) in inet_net_pton_ipv6()
366 *(endp - i) = *(colonp + n - i); in inet_net_pton_ipv6()
369 tp = endp; in inet_net_pton_ipv6()
371 if (tp != endp) in inet_net_pton_ipv6()
/external/llvm-project/llvm/test/CodeGen/AArch64/
Di128-align.ll11 %endp = getelementptr %struct, %struct* @var, i64 1
12 %endi = ptrtoint %struct* %endp to i64
23 %endp = getelementptr %struct, %struct* @var, i64 0, i32 1
24 %endi = ptrtoint i128* %endp to i64

123456