| /freebsd-14.2/sys/arm64/coresight/ |
| H A D | coresight_cmd.c | 52 struct endpoint *endp; in coresight_next_device() local 55 if (endp->input != 0) in coresight_next_device() 62 endp->cs_dev = cs_dev; in coresight_next_device() 98 struct endpoint *endp; in coresight_init_event() local 119 cs_dev = endp->cs_dev; in coresight_init_event() 130 struct endpoint *endp; in coresight_enable() local 133 cs_dev = endp->cs_dev; in coresight_enable() 142 struct endpoint *endp; in coresight_disable() local 145 cs_dev = endp->cs_dev; in coresight_disable() 153 struct endpoint *endp; in coresight_read() local [all …]
|
| H A D | 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()
|
| H A D | 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-14.2/crypto/openssh/openbsd-compat/ |
| H A D | 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 …]
|
| H A D | 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-14.2/lib/libc/gen/ |
| H A D | dirname_compat.c | 32 const char *endp; in __freebsd11_dirname() local 48 endp = path + strlen(path) - 1; in __freebsd11_dirname() 49 while (endp > path && *endp == '/') in __freebsd11_dirname() 50 endp--; in __freebsd11_dirname() 53 while (endp > path && *endp != '/') in __freebsd11_dirname() 54 endp--; in __freebsd11_dirname() 57 if (endp == path) { in __freebsd11_dirname() 58 dname[0] = *endp == '/' ? '/' : '.'; in __freebsd11_dirname() 64 endp--; in __freebsd11_dirname() 65 } while (endp > path && *endp == '/'); in __freebsd11_dirname() [all …]
|
| H A D | basename_compat.c | 31 const char *endp, *startp; in __freebsd11_basename_r() local 42 endp = path + strlen(path) - 1; in __freebsd11_basename_r() 43 while (endp > path && *endp == '/') in __freebsd11_basename_r() 44 endp--; in __freebsd11_basename_r() 47 if (endp == path && *endp == '/') { in __freebsd11_basename_r() 54 startp = endp; in __freebsd11_basename_r() 58 len = endp - startp + 1; in __freebsd11_basename_r()
|
| /freebsd-14.2/contrib/bmake/ |
| H A D | 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-14.2/contrib/lib9p/ |
| H A D | rfuncs.c | 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() 196 while (endp > path && *endp == '/') in r_dirname() 197 endp--; in r_dirname() 198 while (endp > path && *endp != '/') in r_dirname() 199 endp--; in r_dirname() 200 while (endp > path && *endp == '/') in r_dirname() 201 endp--; in r_dirname() [all …]
|
| /freebsd-14.2/usr.sbin/ypldap/ |
| H A D | entries.c | 44 char *endp; in flatten_entries() local 63 endp = linep; in flatten_entries() 73 memcpy(endp, ue->ue_line, len); in flatten_entries() 74 endp[strcspn(endp, ":")] = '\0'; in flatten_entries() 76 ue->ue_line = endp; in flatten_entries() 77 endp += len; in flatten_entries() 99 endp = linep; in flatten_entries() 108 memcpy(endp, ge->ge_line, len); in flatten_entries() 109 endp[strcspn(endp, ":")] = '\0'; in flatten_entries() 111 ge->ge_line = endp; in flatten_entries() [all …]
|
| /freebsd-14.2/lib/libc/resolv/ |
| H A D | res_mkupdate.c | 254 endp)) in res_nmkupdate() 338 endp)) in res_nmkupdate() 390 &startp, endp)) < 0) in res_nmkupdate() 419 endp)) < 0) in res_nmkupdate() 431 endp)) < 0) in res_nmkupdate() 440 endp)) < 0) in res_nmkupdate() 515 endp)) in res_nmkupdate() 609 endp)) in res_nmkupdate() 680 &startp, endp)) < 0) { in res_nmkupdate() 691 &startp, endp)) < 0) { in res_nmkupdate() [all …]
|
| /freebsd-14.2/contrib/tcpdump/ |
| H A D | 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-14.2/sys/libkern/ |
| H A D | 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-14.2/contrib/ntp/libntp/lib/isc/ |
| H A D | 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-14.2/lib/libc/inet/ |
| H A D | inet_pton.c | 135 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local 141 endp = tp + NS_IN6ADDRSZ; in inet_pton6() 172 if (tp + NS_INT16SZ > endp) in inet_pton6() 180 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_pton6() 189 if (tp + NS_INT16SZ > endp) in inet_pton6() 202 if (tp == endp) in inet_pton6() 205 endp[- i] = colonp[n - i]; in inet_pton6() 208 tp = endp; in inet_pton6() 210 if (tp != endp) in inet_pton6()
|
| H A D | inet_cidr_pton.c | 155 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_cidr_pton_ipv6() local 162 endp = tp + NS_IN6ADDRSZ; in inet_cidr_pton_ipv6() 195 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6() 203 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_cidr_pton_ipv6() 218 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6() 231 if (tp == endp) in inet_cidr_pton_ipv6() 234 endp[- i] = colonp[n - i]; in inet_cidr_pton_ipv6() 237 tp = endp; in inet_cidr_pton_ipv6()
|
| /freebsd-14.2/contrib/unbound/compat/ |
| H A D | 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-14.2/contrib/ldns/compat/ |
| H A D | 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-14.2/sbin/mknod/ |
| H A D | 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-14.2/contrib/wpa/src/fst/ |
| H A D | fst_ctrl_iface.c | 559 char *endp; in get_peer_mbies() local 571 endp++; in get_peer_mbies() 831 if (!**endp || isspace(**endp)) in fst_read_next_int_param() 847 (*endp)++; in fst_read_next_text_param() 854 while (**endp && !isspace(**endp) && max_chars_to_copy > 0) { in fst_read_next_text_param() 856 (*endp)++; in fst_read_next_text_param() 889 char *endp; in fst_parse_attach_command() local 895 &endp)) in fst_parse_attach_command() 905 &endp); in fst_parse_attach_command() 915 &endp); in fst_parse_attach_command() [all …]
|
| /freebsd-14.2/usr.sbin/chroot/ |
| H A D | 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-14.2/contrib/nvi/ex/ |
| H A D | ex_script.c | 208 endp = buf; in sscr_getprompt() 237 endp += nr; 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() 274 endp = buf; in sscr_getprompt() 423 char *endp, *p, *t; in sscr_insert() local 442 endp = bp; in sscr_insert() 456 endp += nr; in sscr_insert() [all …]
|
| /freebsd-14.2/contrib/nvi/vi/ |
| H A D | 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-14.2/lib/libc/stdlib/ |
| H A D | lsearch.c | 37 uint8_t *ep, *endp; in lwork() local 40 for (endp = (uint8_t *)(ep + width * *nelp); ep < endp; ep += width) { in lwork() 53 memcpy(endp, key, width); in lwork() 56 return (endp); in lwork()
|
| /freebsd-14.2/lib/libc/tests/stdio/ |
| H A D | scanfloat_test.c | 282 char *endp; in ATF_TC_BODY() local 286 ATF_REQUIRE(strtod("0xy", &endp) == 0); in ATF_TC_BODY() 287 ATF_REQUIRE(strcmp("xy", endp) == 0); in ATF_TC_BODY() 291 ATF_REQUIRE(strtof("3.5e38", &endp) == FLT_MAX); in ATF_TC_BODY() 292 ATF_REQUIRE(strtod("2e308", &endp) == DBL_MAX); in ATF_TC_BODY() 294 ATF_REQUIRE(strtof("3.5e38", &endp) == INFINITY); in ATF_TC_BODY() 295 ATF_REQUIRE(strtod("2e308", &endp) == INFINITY); in ATF_TC_BODY() 297 ATF_REQUIRE(strtof("3.5e38", &endp) == FLT_MAX); in ATF_TC_BODY() 298 ATF_REQUIRE(strtod("2e308", &endp) == DBL_MAX); in ATF_TC_BODY() 300 ATF_REQUIRE(strtof("3.5e38", &endp) == INFINITY); in ATF_TC_BODY() [all …]
|