Home
last modified time | relevance | path

Searched refs:endp (Results 1 – 25 of 137) 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()
Dbsd-closefrom.c73 char fdpath[PATH_MAX], *endp; in closefrom() local
82 fd = strtol(dent->d_name, &endp, 10); in closefrom()
83 if (dent->d_name != endp && *endp == '\0' && in closefrom()
/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()
Dlibdw_form.c46 const unsigned char *endp = cu->endp; in __libdw_form_val_compute_len() local
70 if (unlikely ((size_t) (endp - startp) < 1)) in __libdw_form_val_compute_len()
76 if (unlikely ((size_t) (endp - startp) < 2)) in __libdw_form_val_compute_len()
82 if (unlikely ((size_t) (endp - startp) < 4)) in __libdw_form_val_compute_len()
89 get_uleb128 (u128, valp, endp); in __libdw_form_val_compute_len()
96 (size_t) (endp - startp)); in __libdw_form_val_compute_len()
106 get_uleb128 (u128, valp, endp); in __libdw_form_val_compute_len()
111 get_uleb128 (u128, valp, endp); in __libdw_form_val_compute_len()
124 if (unlikely (result > (size_t) (endp - startp))) in __libdw_form_val_compute_len()
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_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()
83 if (unlikely (return_block->length > (size_t) (endp - return_block->data))) in dwarf_formblock()
Ddwarf_formudata.c81 unsigned char *endp = d->d_buf + d->d_size; in __libdw_formptr() local
82 if (unlikely (readp >= endp)) in __libdw_formptr()
90 *endpp = endp; in __libdw_formptr()
103 const unsigned char *endp = attr->cu->endp; in dwarf_formudata() local
108 if (datap + 1 > endp) in dwarf_formudata()
118 if (datap + 2 > endp) in dwarf_formudata()
213 if (datap + 1 > endp) in dwarf_formudata()
215 get_sleb128 (*return_uval, datap, endp); in dwarf_formudata()
219 if (datap + 1 > endp) in dwarf_formudata()
221 get_uleb128 (*return_uval, datap, endp); in dwarf_formudata()
Ddwarf_child.c59 unsigned char *const endp in __libdw_find_attr() local
67 if (unlikely (attrp >= endp)) in __libdw_find_attr()
70 get_uleb128 (attr_name, attrp, endp); in __libdw_find_attr()
72 if (unlikely (attrp >= endp)) in __libdw_find_attr()
75 get_uleb128 (attr_form, attrp, endp); in __libdw_find_attr()
149 const unsigned char *endp = cu->endp; in dwarf_child() local
152 if (unlikely (code >= endp)) /* Truncated section. */ in dwarf_child()
Ddwarf_getattrs.c65 const unsigned char *endp; in dwarf_getattrs() local
66 endp = ((const unsigned char *) dbg->sectiondata[IDX_debug_abbrev]->d_buf in dwarf_getattrs()
71 if (unlikely (attrp >= endp)) in dwarf_getattrs()
78 get_uleb128 (attr.code, attrp, endp); in dwarf_getattrs()
79 if (unlikely (attrp >= endp)) in dwarf_getattrs()
81 get_uleb128 (attr.form, attrp, endp); in dwarf_getattrs()
Ddwarf_hasattr.c56 unsigned char *const endp in dwarf_hasattr() local
64 if (unlikely (attrp >= endp)) in dwarf_hasattr()
69 get_uleb128 (attr_name, attrp, endp); in dwarf_hasattr()
71 if (unlikely (attrp >= endp)) in dwarf_hasattr()
73 get_uleb128 (attr_form, attrp, endp); in dwarf_hasattr()
Dencoded-value.h88 const unsigned char *endp = cache->data->d.d_buf + cache->data->d.d_size; in __libdw_cfi_read_address_inc() local
93 if (unlikely (*addrp + 4 > endp)) in __libdw_cfi_read_address_inc()
103 if (unlikely (*addrp + 8 > endp)) in __libdw_cfi_read_address_inc()
156 const unsigned char *endp = cache->data->d.d_buf + cache->data->d.d_size; in read_encoded_value() local
160 if (unlikely (*p + 2 > endp)) in read_encoded_value()
170 if (unlikely (*p + 2 > endp)) in read_encoded_value()
198 get_uleb128 (value, *p, endp); in read_encoded_value()
202 get_sleb128 (value, *p, endp); in read_encoded_value()
Ddwarf_getmacros.c147 const unsigned char *const endp, in get_table_for_offset() argument
153 if (readp + 3 > endp) in get_table_for_offset()
174 if (readp > endp) in get_table_for_offset()
220 if (readp >= endp) in get_table_for_offset()
222 get_uleb128 (e.nforms, readp, endp); in get_table_for_offset()
227 if (readp > endp) in get_table_for_offset()
270 const unsigned char *const endp, in cache_op_table() argument
280 ? get_table_for_offset (dbg, macoff, startp, endp, cudie) in cache_op_table()
317 const unsigned char *const endp = d->d_buf + d->d_size; in read_macros() local
320 startp, endp, cudie); in read_macros()
[all …]
Ddwarf_siblingof.c62 unsigned char *endp = sibattr.cu->endp; in dwarf_siblingof() local
81 size_t size = sibattr.cu->endp - sibattr.cu->startp; in dwarf_siblingof()
104 if (addr >= endp) in dwarf_siblingof()
128 if (addr >= endp) in dwarf_siblingof()
/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/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/curl/lib/
Dinet_pton.c154 unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local
160 endp = tp + IN6ADDRSZ; in inet_pton6()
189 if(tp + INT16SZ > endp) in inet_pton6()
197 if(ch == '.' && ((tp + INADDRSZ) <= endp) && in inet_pton6()
206 if(tp + INT16SZ > endp) in inet_pton6()
219 if(tp == endp) in inet_pton6()
222 *(endp - i) = *(colonp + n - i); in inet_pton6()
225 tp = endp; in inet_pton6()
227 if(tp != endp) in inet_pton6()
/external/iproute2/lib/
Dmpls_pton.c12 char *endp; in mpls_pton1() local
18 label = strtoul(name, &endp, 0); in mpls_pton1()
23 if (endp == name) /* no digits */ in mpls_pton1()
27 if (*endp == '\0') { in mpls_pton1()
33 if (*endp != '/') in mpls_pton1()
36 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.c200 char *endp; in glob_range() local
203 lstep = strtoul(&pattern[4], &endp, 10); in glob_range()
204 if(errno || &pattern[4] == endp || *endp != ']') in glob_range()
207 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/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, Boolean *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/c-ares/
Dinet_net_pton.c282 unsigned char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_net_pton_ipv6() local
293 endp = tp + NS_IN6ADDRSZ; in inet_net_pton_ipv6()
327 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6()
336 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_net_pton_ipv6()
348 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6()
361 endp = tmp + 2 * words; in inet_net_pton_ipv6()
371 if (tp == endp) in inet_net_pton_ipv6()
374 *(endp - i) = *(colonp + n - i); in inet_net_pton_ipv6()
377 tp = endp; in inet_net_pton_ipv6()
379 if (tp != endp) in inet_net_pton_ipv6()
/external/elfutils/tests/
Daddrscopes.c169 char *endp; in main() local
170 uintmax_t addr = strtoumax (buf, &endp, 0); in main()
171 if (endp != buf) in main()
183 char *endp; in main() local
184 uintmax_t addr = strtoumax (argv[remaining], &endp, 0); in main()
185 if (endp != argv[remaining]) in main()
/external/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