/dragonfly/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 …]
|
/dragonfly/lib/libc/resolv/ |
H A D | res_mkupdate.c | 247 endp)) in res_nmkupdate() 331 endp)) in res_nmkupdate() 383 &startp, endp)) < 0) in res_nmkupdate() 412 endp)) < 0) in res_nmkupdate() 424 endp)) < 0) in res_nmkupdate() 433 endp)) < 0) in res_nmkupdate() 508 endp)) in res_nmkupdate() 602 endp)) in res_nmkupdate() 673 &startp, endp)) < 0) { in res_nmkupdate() 684 &startp, endp)) < 0) { in res_nmkupdate() [all …]
|
/dragonfly/contrib/gcc-8.0/gcc/ |
H A D | file-find.c | 174 const char *startp, *endp; in prefix_from_string() local 180 startp = endp = p; in prefix_from_string() 183 if (*endp == PATH_SEPARATOR || *endp == 0) in prefix_from_string() 185 strncpy (nstore, startp, endp-startp); in prefix_from_string() 186 if (endp == startp) in prefix_from_string() 190 else if (! IS_DIR_SEPARATOR (endp[-1])) in prefix_from_string() 193 nstore[endp-startp+1] = 0; in prefix_from_string() 196 nstore[endp-startp] = 0; in prefix_from_string() 202 if (*endp == 0) in prefix_from_string() 204 endp = startp = endp + 1; in prefix_from_string() [all …]
|
/dragonfly/contrib/binutils-2.27/libiberty/ |
H A D | make-relative-prefix.c | 249 char *startp, *endp, *nstore; in make_relative_prefix_1() local 261 startp = endp = temp; in make_relative_prefix_1() 264 if (*endp == PATH_SEPARATOR || *endp == 0) in make_relative_prefix_1() 266 if (endp == startp) in make_relative_prefix_1() 275 if (! IS_DIR_SEPARATOR (endp[-1])) in make_relative_prefix_1() 277 nstore[endp - startp] = DIR_SEPARATOR; in make_relative_prefix_1() 278 nstore[endp - startp + 1] = 0; in make_relative_prefix_1() 281 nstore[endp - startp] = 0; in make_relative_prefix_1() 300 if (*endp == 0) in make_relative_prefix_1() 302 endp = startp = endp + 1; in make_relative_prefix_1() [all …]
|
/dragonfly/contrib/gdb-7/libiberty/ |
H A D | make-relative-prefix.c | 249 char *startp, *endp, *nstore; in make_relative_prefix_1() local 261 startp = endp = temp; in make_relative_prefix_1() 264 if (*endp == PATH_SEPARATOR || *endp == 0) in make_relative_prefix_1() 266 if (endp == startp) in make_relative_prefix_1() 275 if (! IS_DIR_SEPARATOR (endp[-1])) in make_relative_prefix_1() 277 nstore[endp - startp] = DIR_SEPARATOR; in make_relative_prefix_1() 278 nstore[endp - startp + 1] = 0; in make_relative_prefix_1() 281 nstore[endp - startp] = 0; in make_relative_prefix_1() 300 if (*endp == 0) in make_relative_prefix_1() 302 endp = startp = endp + 1; in make_relative_prefix_1() [all …]
|
/dragonfly/contrib/binutils-2.34/libiberty/ |
H A D | make-relative-prefix.c | 252 char *startp, *endp, *nstore; in make_relative_prefix_1() local 267 startp = endp = temp; in make_relative_prefix_1() 270 if (*endp == PATH_SEPARATOR || *endp == 0) in make_relative_prefix_1() 272 if (endp == startp) in make_relative_prefix_1() 281 if (! IS_DIR_SEPARATOR (endp[-1])) in make_relative_prefix_1() 283 nstore[endp - startp] = DIR_SEPARATOR; in make_relative_prefix_1() 284 nstore[endp - startp + 1] = 0; in make_relative_prefix_1() 287 nstore[endp - startp] = 0; in make_relative_prefix_1() 306 if (*endp == 0) in make_relative_prefix_1() 308 endp = startp = endp + 1; in make_relative_prefix_1() [all …]
|
/dragonfly/contrib/gcc-4.7/libiberty/ |
H A D | make-relative-prefix.c | 249 char *startp, *endp, *nstore; in make_relative_prefix_1() local 261 startp = endp = temp; in make_relative_prefix_1() 264 if (*endp == PATH_SEPARATOR || *endp == 0) in make_relative_prefix_1() 266 if (endp == startp) in make_relative_prefix_1() 275 if (! IS_DIR_SEPARATOR (endp[-1])) in make_relative_prefix_1() 277 nstore[endp - startp] = DIR_SEPARATOR; in make_relative_prefix_1() 278 nstore[endp - startp + 1] = 0; in make_relative_prefix_1() 281 nstore[endp - startp] = 0; in make_relative_prefix_1() 300 if (*endp == 0) in make_relative_prefix_1() 302 endp = startp = endp + 1; in make_relative_prefix_1() [all …]
|
/dragonfly/contrib/gcc-8.0/libiberty/ |
H A D | make-relative-prefix.c | 249 char *startp, *endp, *nstore; in make_relative_prefix_1() local 264 startp = endp = temp; in make_relative_prefix_1() 267 if (*endp == PATH_SEPARATOR || *endp == 0) in make_relative_prefix_1() 269 if (endp == startp) in make_relative_prefix_1() 278 if (! IS_DIR_SEPARATOR (endp[-1])) in make_relative_prefix_1() 280 nstore[endp - startp] = DIR_SEPARATOR; in make_relative_prefix_1() 281 nstore[endp - startp + 1] = 0; in make_relative_prefix_1() 284 nstore[endp - startp] = 0; in make_relative_prefix_1() 303 if (*endp == 0) in make_relative_prefix_1() 305 endp = startp = endp + 1; in make_relative_prefix_1() [all …]
|
/dragonfly/lib/libc/inet/ |
H A D | inet_pton.c | 133 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local 139 endp = tp + NS_IN6ADDRSZ; in inet_pton6() 170 if (tp + NS_INT16SZ > endp) in inet_pton6() 178 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_pton6() 187 if (tp + NS_INT16SZ > endp) in inet_pton6() 200 if (tp == endp) in inet_pton6() 203 endp[- i] = colonp[n - i]; in inet_pton6() 206 tp = endp; in inet_pton6() 208 if (tp != endp) in inet_pton6()
|
H A D | inet_cidr_pton.c | 147 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_cidr_pton_ipv6() local 154 endp = tp + NS_IN6ADDRSZ; in inet_cidr_pton_ipv6() 187 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6() 195 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_cidr_pton_ipv6() 210 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6() 223 if (tp == endp) in inet_cidr_pton_ipv6() 226 endp[- i] = colonp[n - i]; in inet_cidr_pton_ipv6() 229 tp = endp; in inet_cidr_pton_ipv6()
|
H A D | inet_net_pton.c | 258 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_net_pton_ipv6() local 269 endp = tp + NS_IN6ADDRSZ; in inet_net_pton_ipv6() 303 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6() 312 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in inet_net_pton_ipv6() 324 if (tp + NS_INT16SZ > endp) in inet_net_pton_ipv6() 337 endp = tmp + 2 * words; in inet_net_pton_ipv6() 347 if (tp == endp) in inet_net_pton_ipv6() 350 endp[- i] = colonp[n - i]; in inet_net_pton_ipv6() 353 tp = endp; in inet_net_pton_ipv6() 355 if (tp != endp) in inet_net_pton_ipv6()
|
/dragonfly/contrib/tcpdump/ |
H A D | strtoaddr.c | 157 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in strtoaddr6() local 163 endp = tp + NS_IN6ADDRSZ; in strtoaddr6() 193 if (tp + NS_INT16SZ > endp) in strtoaddr6() 201 if (ch == '.' && ((tp + NS_INADDRSZ) <= endp) && in strtoaddr6() 210 if (tp + NS_INT16SZ > endp) in strtoaddr6() 223 if (tp == endp) in strtoaddr6() 226 endp[- i] = colonp[n - i]; in strtoaddr6() 229 tp = endp; in strtoaddr6() 231 if (tp != endp) in strtoaddr6()
|
/dragonfly/contrib/wpa_supplicant/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 …]
|
/dragonfly/sbin/md5/ |
H A D | md5.c | 196 off_t *beginp, off_t *endp) in digestfile() argument 239 if (*endp <= 0) in digestfile() 240 *endp = end; in digestfile() 282 char *endp; in parseint() local 284 result = strtod(arg, &endp); in parseint() 285 switch (endp[0]) { in parseint() 296 endp++; in parseint() 297 if (endp[1] == 'b' || endp[1] == 'B') in parseint() 298 endp++; in parseint() 304 warnx("%c (%d): unrecognized suffix", endp[0], (int)endp[0]); in parseint() [all …]
|
/dragonfly/contrib/nvi2/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 …]
|
/dragonfly/usr.sbin/chroot/ |
H A D | chroot.c | 55 char *endp, *p; in main() local 99 gid = (gid_t)strtoul(group, &endp, 0); in main() 100 if (*endp != '\0') in main() 117 gidlist[gids] = (gid_t)strtoul(p, &endp, 0); in main() 118 if (*endp != '\0') in main() 134 uid = (uid_t)strtoul(user, &endp, 0); in main() 135 if (*endp != '\0') in main()
|
/dragonfly/contrib/nvi2/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()
|
/dragonfly/lib/libc/stdlib/ |
H A D | lsearch.c | 41 uint8_t *ep, *endp; in lwork() local 48 for (endp = (uint8_t *)(ep + width * *nelp); ep < endp; ep += width) { in lwork() 61 memcpy(endp, key, width); in lwork() 64 return (endp); in lwork()
|
/dragonfly/contrib/gdb-7/gdb/mi/ |
H A D | mi-parse.c | 313 char *endp; in mi_parse() local 322 parse->thread_group = strtol (chp, &endp, 10); in mi_parse() 323 chp = endp; in mi_parse() 327 char *endp; in mi_parse() local 333 parse->thread = strtol (chp, &endp, 10); in mi_parse() 334 chp = endp; in mi_parse() 338 char *endp; in mi_parse() local 344 parse->frame = strtol (chp, &endp, 10); in mi_parse() 345 chp = endp; in mi_parse()
|
/dragonfly/lib/libc/stdio/ |
H A D | getdelim.c | 111 u_char *endp; in getdelim() local 135 while ((endp = memchr(fp->pub._p, delim, fp->pub._r)) == NULL) { in getdelim() 144 endp++; /* snarf the delimiter, too */ in getdelim() 145 if (sappend(linep, &linelen, linecapp, fp->pub._p, endp - fp->pub._p)) in getdelim() 147 fp->pub._r -= endp - fp->pub._p; in getdelim() 148 fp->pub._p = endp; in getdelim()
|
/dragonfly/contrib/nvi2/regex/ |
H A D | engine.c | 135 const RCHAR_T *endp; in matcher() local 175 m->endp = stop; in matcher() 186 if (endp == NULL) { /* a miss */ in matcher() 198 if (endp != NULL) in matcher() 200 assert(m->coldp < m->endp); in matcher() 241 endp = slow(m, m->coldp, endp-1, gf, gl); in matcher() 242 if (endp == NULL) in matcher() 254 assert(dp == NULL || dp == endp); in matcher() 267 pmatch[0].rm_eo = endp - m->offp; in matcher() 702 c = (p == m->endp) ? OUT : *p; in fast() [all …]
|
/dragonfly/test/stress/fsx/ |
H A D | fsx.c | 973 char *endp; in main() local 998 closeprob = getnum(optarg, &endp); in main() 1018 if (!endp || *endp++ != ':') in main() 1020 monitorend = getnum(endp, &endp); in main() 1030 maxoplen = getnum(optarg, &endp); in main() 1043 readbdy = getnum(optarg, &endp); in main() 1048 style = getnum(optarg, &endp); in main() 1053 truncbdy = getnum(optarg, &endp); in main() 1058 writebdy = getnum(optarg, &endp); in main() 1071 numops = getnum(optarg, &endp); in main() [all …]
|
/dragonfly/sys/bus/u4b/controller/ |
H A D | uhci.h | 121 #define UHCI_TD_SETUP(len, endp, dev) (UHCI_TD_SET_MAXLEN(len) | \ argument 122 UHCI_TD_SET_ENDPT(endp) | \ 126 #define UHCI_TD_OUT(len, endp, dev, dt) (UHCI_TD_SET_MAXLEN(len) | \ argument 127 UHCI_TD_SET_ENDPT(endp) | \ 131 #define UHCI_TD_IN(len, endp, dev, dt) (UHCI_TD_SET_MAXLEN(len) | \ argument 132 UHCI_TD_SET_ENDPT(endp) | \
|
/dragonfly/usr.sbin/ppp/ |
H A D | netgraph.c | 431 #define GETSEGMENT(what, from, sep, endp) \ argument 436 const char *sep, const char **endp) in getsegment() argument 453 *endp = from + len; in getsegment() 454 *endp += strspn(*endp, sep); in getsegment() 472 const char *devp, *endp; in ng_Create() local 516 if (!GETSEGMENT(hook, devp, ".[", &endp)) in ng_Create() 519 devp = endp; in ng_Create() 537 if (!GETSEGMENT(nodetype, devp, "]", &endp)) in ng_Create() 551 devp = *endp == ':' ? endp + 1 : endp; in ng_Create() 684 if (!GETSEGMENT(lasthook, devp, " \t.[", &endp)) in ng_Create() [all …]
|
/dragonfly/games/cribbage/ |
H A D | cards.c | 120 CARD *cp, *endp; in sorthand() local 123 for (endp = &h[n]; h < endp - 1; h++) in sorthand() 124 for (cp = h + 1; cp < endp; cp++) in sorthand()
|