| /freebsd-13-stable/sys/arm64/coresight/ |
| HD | coresight_cmd.c | 52 struct endpoint *endp; in coresight_next_device() local 54 TAILQ_FOREACH(endp, &cs_dev->pdata->endpoints, link) { in coresight_next_device() 55 if (endp->input != 0) in coresight_next_device() 58 out = coresight_get_output_device(endp, &out_endp); in coresight_next_device() 62 endp->cs_dev = cs_dev; in coresight_next_device() 63 LIST_INSERT_HEAD(&event->endplist, endp, in coresight_next_device() 98 struct endpoint *endp; in coresight_init_event() local 118 LIST_FOREACH(endp, &event->endplist, endplink) { in coresight_init_event() 119 cs_dev = endp->cs_dev; in coresight_init_event() 130 struct endpoint *endp; in coresight_enable() local [all …]
|
| HD | coresight_fdt.c | 57 struct endpoint *endp; in coresight_fdt_get_ports() local 84 endp = malloc(sizeof(struct endpoint), in coresight_fdt_get_ports() 86 endp->my_node = endpoint_child; in coresight_fdt_get_ports() 87 endp->their_node = OF_node_from_xref(xref); in coresight_fdt_get_ports() 88 endp->dev_node = dev_node; in coresight_fdt_get_ports() 89 endp->reg = port_reg; in coresight_fdt_get_ports() 93 endp->input = 1; in coresight_fdt_get_ports() 99 endp, link); in coresight_fdt_get_ports()
|
| HD | coresight.c | 68 struct endpoint *endp; in coresight_get_output_endpoint() local 73 TAILQ_FOREACH(endp, &pdata->endpoints, link) { in coresight_get_output_endpoint() 74 if (endp->input == 0) in coresight_get_output_endpoint() 75 return (endp); in coresight_get_output_endpoint() 82 coresight_get_output_device(struct endpoint *endp, struct endpoint **out_endp) in coresight_get_output_device() argument 94 if (endp->their_node == endp2->my_node) { in coresight_get_output_device() 103 if (endp->their_handle == endp2->my_handle) { in coresight_get_output_device()
|
| /freebsd-13-stable/crypto/openssh/openbsd-compat/ |
| HD | dirname.c | 32 const char *endp; in dirname() local 42 endp = path + strlen(path) - 1; in dirname() 43 while (endp > path && *endp == '/') in dirname() 44 endp--; in dirname() 47 while (endp > path && *endp != '/') in dirname() 48 endp--; in dirname() 51 if (endp == path) { in dirname() 52 dname[0] = *endp == '/' ? '/' : '.'; in dirname() 58 endp--; in dirname() 59 } while (endp > path && *endp == '/'); in dirname() [all …]
|
| HD | basename.c | 31 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()
|
| /freebsd-13-stable/lib/libc/gen/ |
| HD | dirname_compat.c | 33 const char *endp; in __freebsd11_dirname() local 49 endp = path + strlen(path) - 1; in __freebsd11_dirname() 50 while (endp > path && *endp == '/') in __freebsd11_dirname() 51 endp--; in __freebsd11_dirname() 54 while (endp > path && *endp != '/') in __freebsd11_dirname() 55 endp--; in __freebsd11_dirname() 58 if (endp == path) { in __freebsd11_dirname() 59 dname[0] = *endp == '/' ? '/' : '.'; in __freebsd11_dirname() 65 endp--; in __freebsd11_dirname() 66 } while (endp > path && *endp == '/'); in __freebsd11_dirname() [all …]
|
| HD | basename_compat.c | 32 const char *endp, *startp; in __freebsd11_basename_r() local 43 endp = path + strlen(path) - 1; in __freebsd11_basename_r() 44 while (endp > path && *endp == '/') in __freebsd11_basename_r() 45 endp--; in __freebsd11_basename_r() 48 if (endp == path && *endp == '/') { in __freebsd11_basename_r() 55 startp = endp; in __freebsd11_basename_r() 59 len = endp - startp + 1; in __freebsd11_basename_r()
|
| /freebsd-13-stable/contrib/bmake/ |
| HD | dirname.c | 63 const char *endp; in xdirname_r() local 77 endp = path + strlen(path) - 1; in xdirname_r() 78 while (endp != path && *endp == '/') in xdirname_r() 79 endp--; in xdirname_r() 82 while (endp > path && *endp != '/') in xdirname_r() 83 endp--; in xdirname_r() 85 if (endp == path) { in xdirname_r() 86 path = *endp == '/' ? "/" : "."; in xdirname_r() 92 endp--; in xdirname_r() 93 while (endp > path && *endp == '/'); in xdirname_r() [all …]
|
| /freebsd-13-stable/contrib/lib9p/ |
| HD | rfuncs.c | 66 const char *endp, *comp; in r_basename() local 84 endp = path + strlen(path) - 1; in r_basename() 85 while (*endp == '/' && endp > path) in r_basename() 86 endp--; in r_basename() 88 if (*endp == '/') { in r_basename() 117 comp = endp; in r_basename() 120 len = (size_t)(endp - comp + 1); in r_basename() 161 const char *endp, *dirpart; in r_dirname() local 195 endp = path + strlen(path) - 1; in r_dirname() 196 while (endp > path && *endp == '/') in r_dirname() [all …]
|
| /freebsd-13-stable/lib/libc/resolv/ |
| HD | res_mkupdate.c | 97 u_char *cp, *sp2, *startp, *endp; in res_nmkupdate() local 223 endp = startp + rrecp->r_size - 1; in res_nmkupdate() 227 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate() 242 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate() 255 endp)) in res_nmkupdate() 275 soanum = getnum_str(&startp, endp); in res_nmkupdate() 291 n = getnum_str(&startp, endp); in res_nmkupdate() 296 if (!getword_str(buf2, sizeof buf2, &startp, endp)) in res_nmkupdate() 305 n = getnum_str(&startp, endp); in res_nmkupdate() 311 n = getnum_str(&startp, endp); in res_nmkupdate() [all …]
|
| /freebsd-13-stable/usr.sbin/ypldap/ |
| HD | entries.c | 45 char *endp; in flatten_entries() local 65 endp = linep; in flatten_entries() 75 memcpy(endp, ue->ue_line, len); in flatten_entries() 76 endp[strcspn(endp, ":")] = '\0'; in flatten_entries() 78 ue->ue_line = endp; in flatten_entries() 79 endp += len; in flatten_entries() 103 endp = linep; in flatten_entries() 112 memcpy(endp, ge->ge_line, len); in flatten_entries() 113 endp[strcspn(endp, ":")] = '\0'; in flatten_entries() 115 ge->ge_line = endp; in flatten_entries() [all …]
|
| /freebsd-13-stable/contrib/tcpdump/ |
| HD | strtoaddr.c | 155 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in strtoaddr6() local 161 endp = tp + NS_IN6ADDRSZ; in strtoaddr6() 191 if (tp + NS_INT16SZ > endp) in strtoaddr6() 199 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in strtoaddr6() 208 if (tp + NS_INT16SZ > endp) in strtoaddr6() 221 if (tp == endp) in strtoaddr6() 224 endp[- i] = colonp[n - i]; in strtoaddr6() 227 tp = endp; in strtoaddr6() 229 if (tp != endp) in strtoaddr6()
|
| /freebsd-13-stable/contrib/ntp/libntp/lib/isc/ |
| HD | inet_pton.c | 138 unsigned char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local 144 endp = tp + NS_IN6ADDRSZ; in inet_pton6() 173 if (NS_INT16SZ > endp - tp) in inet_pton6() 181 if (ch == '.' && (NS_INADDRSZ <= endp - tp) && in inet_pton6() 190 if (NS_INT16SZ > endp - tp) in inet_pton6() 203 if (tp == endp) in inet_pton6() 206 endp[- i] = colonp[n - i]; in inet_pton6() 209 tp = endp; in inet_pton6() 211 if (tp != endp) in inet_pton6()
|
| /freebsd-13-stable/sys/libkern/ |
| HD | inet_pton.c | 132 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local 138 endp = tp + NS_IN6ADDRSZ; in inet_pton6() 169 if (tp + NS_INT16SZ > endp) in inet_pton6() 177 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_pton6() 186 if (tp + NS_INT16SZ > endp) in inet_pton6() 199 if (tp == endp) in inet_pton6() 202 endp[- i] = colonp[n - i]; in inet_pton6() 205 tp = endp; in inet_pton6() 207 if (tp != endp) in inet_pton6()
|
| /freebsd-13-stable/lib/libc/inet/ |
| HD | inet_pton.c | 136 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local 142 endp = tp + NS_IN6ADDRSZ; in inet_pton6() 173 if (tp + NS_INT16SZ > endp) in inet_pton6() 181 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_pton6() 190 if (tp + NS_INT16SZ > endp) in inet_pton6() 203 if (tp == endp) in inet_pton6() 206 endp[- i] = colonp[n - i]; in inet_pton6() 209 tp = endp; in inet_pton6() 211 if (tp != endp) in inet_pton6()
|
| /freebsd-13-stable/contrib/ldns/compat/ |
| HD | inet_pton.c | 154 uint8_t tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local 160 endp = tp + NS_IN6ADDRSZ; 190 if (tp + NS_INT16SZ > endp) 198 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && 207 if (tp + NS_INT16SZ > endp) 221 endp[- i] = colonp[n - i]; 224 tp = endp; 226 if (tp != endp)
|
| /freebsd-13-stable/contrib/apr/network_io/unix/ |
| HD | inet_pton.c | 163 unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local 169 endp = tp + IN6ADDRSZ; in inet_pton6() 199 if (tp + INT16SZ > endp) in inet_pton6() 207 if (ch == '.' && ((tp + INADDRSZ) <= endp) && in inet_pton6() 216 if (tp + INT16SZ > endp) in inet_pton6() 230 endp[- i] = colonp[n - i]; in inet_pton6() 233 tp = endp; in inet_pton6() 235 if (tp != endp) in inet_pton6()
|
| /freebsd-13-stable/contrib/unbound/compat/ |
| HD | inet_pton.c | 154 uint8_t tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; local 160 endp = tp + NS_IN6ADDRSZ; 190 if (tp + NS_INT16SZ > endp) 198 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && 207 if (tp + NS_INT16SZ > endp) 221 endp[- i] = colonp[n - i]; 224 tp = endp; 226 if (tp != endp)
|
| /freebsd-13-stable/sbin/mknod/ |
| HD | mknod.c | 116 char *cp, *endp; in main() local 132 mymajor = (long)strtoul(argv[3], &endp, 0); in main() 133 if (endp == argv[3] || *endp != '\0') in main() 137 myminor = (long)strtoul(argv[4], &endp, 0); in main() 138 if (endp == argv[4] || *endp != '\0') in main()
|
| /freebsd-13-stable/contrib/wpa/src/fst/ |
| HD | fst_ctrl_iface.c | 559 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 …]
|
| /freebsd-13-stable/contrib/nvi/ex/ |
| HD | ex_script.c | 196 char *endp, *p, *t, buf[1024]; in sscr_getprompt() local 208 endp = buf; in sscr_getprompt() 228 more: len = sizeof(buf) - (endp - buf); in sscr_getprompt() 229 switch (nr = read(sc->sh_master, endp, len)) { in sscr_getprompt() 237 endp += nr; in sscr_getprompt() 242 for (p = t = buf; p < endp; ++p) { in sscr_getprompt() 253 memmove(buf, t, endp - t); in sscr_getprompt() 254 endp = buf + (endp - t); in sscr_getprompt() 256 if (endp == buf) in sscr_getprompt() 273 llen = endp - buf; in sscr_getprompt() [all …]
|
| /freebsd-13-stable/usr.sbin/chroot/ |
| HD | chroot.c | 66 char *endp, *p, *user, *group, *grouplist; in main() local 111 gid = (gid_t)strtoul(group, &endp, 0); in main() 112 if (*endp != '\0') in main() 132 gidlist[gids] = (gid_t)strtoul(p, &endp, 0); in main() 133 if (*endp != '\0') in main() 149 uid = (uid_t)strtoul(user, &endp, 0); in main() 150 if (*endp != '\0') in main()
|
| /freebsd-13-stable/contrib/nvi/vi/ |
| HD | v_ch.c | 139 CHAR_T *endp, *p, *startp; in v_chf() local 162 endp = (startp = p) + len; in v_chf() 165 while (++p < endp && *p != key); in v_chf() 166 if (p == endp) { in v_chf() 230 CHAR_T *endp, *p; in v_chF() local 254 endp = p - 1; in v_chF() 257 while (--p > endp && *p != key); in v_chF() 258 if (p == endp) { in v_chF() 264 vp->m_stop.cno = (p - endp) - 1; in v_chF()
|
| /freebsd-13-stable/lib/libc/stdlib/ |
| HD | lsearch.c | 38 uint8_t *ep, *endp; in lwork() local 41 for (endp = (uint8_t *)(ep + width * *nelp); ep < endp; ep += width) { in lwork() 54 memcpy(endp, key, width); in lwork() 57 return (endp); in lwork()
|
| /freebsd-13-stable/lib/libc/tests/stdio/ |
| HD | scanfloat_test.c | 283 char *endp; in ATF_TC_BODY() local 287 ATF_REQUIRE(strtod("0xy", &endp) == 0); in ATF_TC_BODY() 288 ATF_REQUIRE(strcmp("xy", endp) == 0); in ATF_TC_BODY() 292 ATF_REQUIRE(strtof("3.5e38", &endp) == FLT_MAX); in ATF_TC_BODY() 293 ATF_REQUIRE(strtod("2e308", &endp) == DBL_MAX); in ATF_TC_BODY() 295 ATF_REQUIRE(strtof("3.5e38", &endp) == INFINITY); in ATF_TC_BODY() 296 ATF_REQUIRE(strtod("2e308", &endp) == INFINITY); in ATF_TC_BODY() 298 ATF_REQUIRE(strtof("3.5e38", &endp) == FLT_MAX); in ATF_TC_BODY() 299 ATF_REQUIRE(strtod("2e308", &endp) == DBL_MAX); in ATF_TC_BODY() 301 ATF_REQUIRE(strtof("3.5e38", &endp) == INFINITY); in ATF_TC_BODY() [all …]
|