Home
last modified time | relevance | path

Searched refs:startp (Results 1 – 17 of 17) sorted by relevance

/openbsd/lib/libc/gen/
H A Dbasename.c29 const char *endp, *startp; in basename() local
51 startp = endp; in basename()
52 while (startp > path && *(startp - 1) != '/') in basename()
53 startp--; in basename()
55 len = endp - startp + 1; in basename()
60 memcpy(bname, startp, len); in basename()
/openbsd/gnu/usr.bin/gcc/gcc/java/
H A Djcf-path.c192 const char *startp, *endp; local
197 startp = endp = cp;
202 if (endp == startp)
210 strncpy (buf, startp, endp - startp);
211 buf[endp - startp] = '\0';
217 startp = endp;
345 const char *startp, *endp; local
352 startp = endp = cp;
357 if (endp == startp)
360 strncpy (buf, startp, endp - startp);
[all …]
/openbsd/gnu/lib/libiberty/src/
H A Dmake-relative-prefix.c242 char *startp, *endp, *nstore; in make_relative_prefix() local
249 startp = endp = temp; in make_relative_prefix()
254 if (endp == startp) in make_relative_prefix()
262 strncpy (nstore, startp, endp - startp); in make_relative_prefix()
265 nstore[endp - startp] = DIR_SEPARATOR; in make_relative_prefix()
266 nstore[endp - startp + 1] = 0; in make_relative_prefix()
269 nstore[endp - startp] = 0; in make_relative_prefix()
284 endp = startp = endp + 1; in make_relative_prefix()
/openbsd/usr.sbin/dhcrelay/
H A Ddhcrelay.c642 uint8_t *p, *startp; in relay_agentinfo_append()
651 startp = (uint8_t *)dp; in relay_agentinfo_append()
756 if (p < (startp + maxlen)) in relay_agentinfo_append()
757 memset(p, 0, (startp + maxlen) - p); in relay_agentinfo_append()
766 uint8_t *p, *np, *startp, *endp; in relay_agentinfo_remove()
771 startp = (uint8_t *)dp; in relay_agentinfo_remove()
803 if (endp < (startp + maxlen)) in relay_agentinfo_remove()
805 (startp + maxlen) - endp); in relay_agentinfo_remove()
835 if (endp < (startp + maxlen)) in relay_agentinfo_remove()
837 (startp in relay_agentinfo_remove()
640 uint8_t *p, *startp; relay_agentinfo_append() local
764 uint8_t *p, *np, *startp, *endp; relay_agentinfo_remove() local
[all...]
/openbsd/bin/ksh/
H A Dedit.c588 x_locate_word(const char *buf, int buflen, int pos, int *startp, in x_locate_word() argument
596 *startp = pos; in x_locate_word()
636 *startp = start; in x_locate_word()
717 x_cf_glob(int flags, const char *buf, int buflen, int pos, int *startp, in x_cf_glob() argument
725 len = x_locate_word(buf, buflen, pos, startp, &is_command); in x_cf_glob()
736 nwords = x_command_glob(flags, buf + *startp, len, &words); in x_cf_glob()
737 else if (!x_try_array(buf, buflen, buf + *startp, len, &nwords, &words)) in x_cf_glob()
738 nwords = x_file_glob(flags, buf + *startp, len, &words); in x_cf_glob()
747 *endp = *startp + len; in x_cf_glob()
/openbsd/usr.bin/vi/vi/
H A Dv_ch.c140 char *endp, *p, *startp; in v_chf() local
163 endp = (startp = p) + len; in v_chf()
173 vp->m_stop.cno = p - startp; in v_chf()
/openbsd/gnu/usr.bin/gcc/gcc/
H A Dgcc.c3201 startp = endp = temp;
3206 strncpy (nstore, startp, endp - startp);
3207 if (endp == startp)
3215 nstore[endp - startp] = 0;
3236 startp = endp = temp;
3241 strncpy (nstore, startp, endp - startp);
3242 if (endp == startp)
3250 nstore[endp - startp] = 0;
3269 startp = endp = temp;
3274 strncpy (nstore, startp, endp - startp);
[all …]
H A Dcollect2.c773 const char *startp, *endp; local
779 startp = endp = p;
784 strncpy (nstore, startp, endp-startp);
785 if (endp == startp)
791 nstore[endp-startp] = DIR_SEPARATOR;
792 nstore[endp-startp+1] = 0;
795 nstore[endp-startp] = 0;
803 endp = startp = endp + 1;
H A Djump.c551 squeeze_notes (startp, endp) in squeeze_notes() argument
552 rtx* startp; in squeeze_notes()
555 rtx start = *startp;
597 *startp = start;
/openbsd/gnu/gcc/gcc/
H A Dgcc.c3422 startp = endp = temp; in process_command()
3427 strncpy (nstore, startp, endp - startp); in process_command()
3428 if (endp == startp) in process_command()
3436 nstore[endp - startp] = 0; in process_command()
3456 startp = endp = temp; in process_command()
3461 strncpy (nstore, startp, endp - startp); in process_command()
3462 if (endp == startp) in process_command()
3470 nstore[endp - startp] = 0; in process_command()
3489 startp = endp = temp; in process_command()
3494 strncpy (nstore, startp, endp - startp); in process_command()
[all …]
H A Dcollect2.c696 const char *startp, *endp; in prefix_from_string() local
702 startp = endp = p; in prefix_from_string()
707 strncpy (nstore, startp, endp-startp); in prefix_from_string()
708 if (endp == startp) in prefix_from_string()
714 nstore[endp-startp] = DIR_SEPARATOR; in prefix_from_string()
715 nstore[endp-startp+1] = 0; in prefix_from_string()
718 nstore[endp-startp] = 0; in prefix_from_string()
726 endp = startp = endp + 1; in prefix_from_string()
H A Djump.c270 squeeze_notes (rtx* startp, rtx* endp) in squeeze_notes() argument
272 rtx start = *startp; in squeeze_notes()
314 *startp = start; in squeeze_notes()
/openbsd/sys/dev/
H A Drnd.c256 u_int startp, startc, i; in dequeue_randomness() local
259 startp = rnd_event_prod - QEVCONSUME; in dequeue_randomness()
261 u_int e = (startp + i) & (QEVLEN-1); in dequeue_randomness()
/openbsd/usr.bin/ssh/
H A Dscp.c723 find_brace(const char *pattern, int *startp, int *endp) in find_brace() argument
728 *startp = *endp = -1; in find_brace()
751 if (*startp == -1) in find_brace()
752 *startp = i; in find_brace()
758 if (*startp < 0) { in find_brace()
768 if (*endp < 0 && (*startp >= 0 || in_bracket)) in find_brace()
/openbsd/sys/arch/hppa/hppa/
H A Dpmap.c672 pmap_virtual_space(vaddr_t *startp, vaddr_t *endp) in pmap_virtual_space() argument
674 *startp = SYSCALLGATE + PAGE_SIZE; in pmap_virtual_space()
/openbsd/sys/arch/i386/i386/
H A Dpmap.c1563 pmap_virtual_space(vaddr_t *startp, vaddr_t *endp) in pmap_virtual_space() argument
1565 *startp = virtual_avail; in pmap_virtual_space()
/openbsd/gnu/usr.bin/perl/
H A Dop.c2769 OP **startp; in S_process_optree() local
2776 startp = &CvSTART(cv); in S_process_optree()
2778 startp = PL_in_eval? &PL_eval_start : &PL_main_start; in S_process_optree()
2780 *startp = start; in S_process_optree()
2784 CALL_PEEP(*startp); in S_process_optree()
2786 op_prune_chain_head(startp); in S_process_optree()