| /netbsd/src/external/bsd/nvi/dist/common/ |
| D | exf.c | 72 FREF *frp, *tfrp; in file_add() local 85 TAILQ_FOREACH_SAFE(frp, &gp->frefq, q, tfrp) { in file_add() 86 if (frp->name == NULL) { in file_add() 87 TAILQ_REMOVE(&gp->frefq, frp, q); in file_add() 88 if (frp->name != NULL) in file_add() 89 free(frp->name); in file_add() 90 free(frp); in file_add() 93 if (!strcmp(frp->name, name)) in file_add() 94 return (frp); in file_add() 98 CALLOC(sp, frp, FREF *, 1, sizeof(FREF)); in file_add() [all …]
|
| D | gs.c | 161 { FREF *frp; in gs_end() local 163 while ((frp = TAILQ_FIRST(&gp->frefq)) != NULL) { in gs_end() 164 TAILQ_REMOVE(&gp->frefq, frp, q); in gs_end() 165 if (frp->name != NULL) in gs_end() 166 free(frp->name); in gs_end() 167 if (frp->tname != NULL) in gs_end() 168 free(frp->tname); in gs_end() 169 free(frp); in gs_end()
|
| D | main.c | 69 FREF *frp; in editor() local 360 if (sp->frp != NULL) { in editor() 363 *--argv, char *, strlen(sp->frp->name) + 1); in editor() 368 (void)strcpy(*argv, sp->frp->name); in editor() 381 if (sp->frp == NULL) { in editor() 383 if ((frp = file_add(sp, NULL)) == NULL) in editor() 386 if ((frp = file_add(sp, sp->argv[0])) == NULL) in editor() 389 F_SET(frp, FR_RECOVER); in editor() 392 if (file_init(sp, frp, NULL, 0)) in editor()
|
| D | msg.c | 567 len = strlen(sp->frp->name); in msgq_status() 572 for (p = bp, t = sp->frp->name; *t != '\0'; ++t) { in msgq_status() 602 if (F_ISSET(sp->frp, FR_NEWFILE)) { in msgq_status() 603 F_CLR(sp->frp, FR_NEWFILE); in msgq_status() 609 if (F_ISSET(sp->frp, FR_NAMECHANGE)) { in msgq_status() 627 if (F_ISSET(sp->frp, FR_UNLOCKED)) { in msgq_status()
|
| D | recover.c | 405 t = sp->frp->name; in rcv_mailfile() 630 rcv_read(SCR *sp, FREF *frp) in rcv_read() argument 650 name = frp->name; in rcv_read() 793 if (file_init(sp, frp, pathp + sizeof(VI_PHEADER) - 1, 0)) { in rcv_read() 809 F_SET(frp, FR_UNLOCKED); in rcv_read()
|
| /netbsd/src/external/bsd/ipf/dist/lib/ |
| D | printportcmp.c | 15 printportcmp(pr, frp) in printportcmp() argument 17 frpcmp_t *frp; 22 if (frp->frp_cmp == FR_INRANGE || frp->frp_cmp == FR_OUTRANGE) 23 PRINTF(" port %d %s %d", frp->frp_port, 24 pcmp1[frp->frp_cmp], frp->frp_top); 25 else if (frp->frp_cmp == FR_INCRANGE) 26 PRINTF(" port %d:%d", frp->frp_port, frp->frp_top); 28 PRINTF(" port %s %s", pcmp1[frp->frp_cmp], 29 portname(pr, frp->frp_port));
|
| /netbsd/src/external/bsd/nvi/dist/ex/ |
| D | ex_edit.c | 57 FREF *frp; in ex_edit() local 71 frp = sp->frp; in ex_edit() 72 if (sp->ep == NULL || F_ISSET(frp, FR_TMPFILE)) { in ex_edit() 73 if ((frp = file_add(sp, NULL)) == NULL) in ex_edit() 83 if ((frp = file_add(sp, np)) == NULL) in ex_edit() 94 return (ex_N_edit(sp, cmdp, frp, attach)); in ex_edit() 106 if (file_init(sp, frp, NULL, (setalt ? FS_SETALT : 0) | in ex_edit() 119 ex_N_edit(SCR *sp, EXCMD *cmdp, FREF *frp, int attach) in ex_N_edit() argument 139 new->frp = frp; in ex_N_edit() 140 new->frp->flags = sp->frp->flags; in ex_N_edit() [all …]
|
| D | ex_file.c | 44 FREF *frp; in ex_file() local 54 frp = sp->frp; in ex_file() 63 if (!F_ISSET(frp, FR_TMPFILE)) in ex_file() 64 set_alt_name(sp, frp->name); in ex_file() 67 free(frp->name); in ex_file() 68 frp->name = p; in ex_file() 74 F_CLR(frp, FR_TMPEXIT | FR_TMPFILE); in ex_file() 77 F_SET(frp, FR_NAMECHANGE); in ex_file() 80 (void)sp->gp->scr_rename(sp, sp->frp->name, 1); in ex_file()
|
| D | ex_args.c | 54 FREF *frp; in ex_next() local 109 if ((frp = file_add(sp, *sp->cargv)) == NULL) in ex_next() 116 if ((frp = file_add(sp, sp->cargv[1])) == NULL) in ex_next() 119 F_SET(frp, FR_RECOVER); in ex_next() 123 if (file_init(sp, frp, NULL, FS_SETALT | in ex_next() 141 FREF *frp; in ex_N_next() local 155 if ((frp = file_add(new, np)) == NULL || in ex_N_next() 156 file_init(new, frp, NULL, in ex_N_next() 185 FREF *frp; in ex_prev() local 206 if ((frp = file_add(sp, sp->cargv[-1])) == NULL) in ex_prev() [all …]
|
| D | ex_read.c | 58 FREF *frp; in ex_read() local 99 if ((frp = file_add(sp, NULL)) == NULL) in ex_read() 101 if (file_init(sp, frp, NULL, 0)) in ex_read() 199 name = sp->frp->name; in ex_read() 227 if (F_ISSET(sp->frp, FR_TMPFILE) && in ex_read() 228 !F_ISSET(sp->frp, FR_EXNAMED)) { in ex_read() 230 free(sp->frp->name); in ex_read() 231 sp->frp->name = p; in ex_read() 237 F_CLR(sp->frp, FR_TMPEXIT | FR_TMPFILE); in ex_read() 238 F_SET(sp->frp, FR_NAMECHANGE | FR_EXNAMED); in ex_read() [all …]
|
| D | ex_tag.c | 266 if (tp->frp == NULL && (tp->frp = file_add(sp, tp->fname)) == NULL) in ex_tag_nswitch() 270 if (tp->frp == sp->frp) in ex_tag_nswitch() 278 if (file_init(sp, tp->frp, NULL, FS_SETALT)) in ex_tag_nswitch() 302 if (tp->frp == NULL && (tp->frp = file_add(sp, tp->fname)) == NULL) in ex_tag_Nswitch() 315 if (tp->frp == sp->frp) { in ex_tag_Nswitch() 321 new->frp = tp->frp; in ex_tag_Nswitch() 322 new->frp->flags = sp->frp->flags; in ex_tag_Nswitch() 323 } else if (file_init(new, tp->frp, NULL, force)) { in ex_tag_Nswitch() 330 new->cargv = new->argv = ex_buildargv(sp, NULL, tp->frp->name); in ex_tag_Nswitch() 404 p = tqp->current->frp->name; in ex_tag_pop() [all …]
|
| D | ex_preserve.c | 77 FREF *frp; in ex_recover() local 96 if ((frp = file_add(sp, np)) == NULL) in ex_recover() 100 F_SET(frp, FR_RECOVER); in ex_recover() 103 if (file_init(sp, frp, NULL, FS_SETALT | in ex_recover()
|
| D | ex_write.c | 247 if (F_ISSET(sp->frp, FR_TMPFILE) && in exwr() 248 !F_ISSET(sp->frp, FR_EXNAMED)) { in exwr() 251 free(sp->frp->name); in exwr() 252 sp->frp->name = q; in exwr() 263 F_CLR(sp->frp, FR_TMPEXIT | FR_TMPFILE); in exwr() 264 F_SET(sp->frp, FR_NAMECHANGE | FR_EXNAMED); in exwr() 267 (void)sp->gp->scr_rename(sp, sp->frp->name, 1); in exwr()
|
| D | ex_visual.c | 81 sp->frp->lno = sp->lno; in ex_visual() 82 sp->frp->cno = 0; in ex_visual() 84 F_SET(sp->frp, FR_CURSORSET); in ex_visual()
|
| D | ex_cscope.c | 448 FREF *frp; in cscope_find() local 493 frp = sp->frp; in cscope_find() 496 istmp = F_ISSET(sp->frp, FR_TMPFILE) && !F_ISSET(cmdp, E_NEWSCREEN); in cscope_find() 568 rtqp->current->frp = sp->frp; in cscope_find() 572 rtqp->current->frp = frp; in cscope_find()
|
| D | ex_screen.c | 123 col += len = strlen(tsp->frp->name) + sep; in ex_sdisplay() 132 (void)ex_puts(sp, tsp->frp->name); in ex_sdisplay()
|
| /netbsd/src/external/bsd/nvi/dist/vi/ |
| D | v_ex.c | 80 sp->frp->lno = sp->lno; in v_exmode() 81 sp->frp->cno = sp->cno; in v_exmode() 82 F_SET(sp->frp, FR_CURSORSET); in v_exmode() 533 new->frp = wp->ccl_sp->frp; in v_ecl() 534 new->frp->flags = sp->frp->flags; in v_ecl() 640 FREF *frp; in v_ecl_init() local 648 if ((frp = file_add(sp, NULL)) == NULL) in v_ecl_init() 658 if (file_init(wp->ccl_sp, frp, NULL, 0)) { in v_ecl_init()
|
| D | vs_split.c | 357 if (sp->frp != NULL) { in vs_discard() 358 sp->frp->lno = sp->lno; in vs_discard() 359 sp->frp->cno = sp->cno; in vs_discard() 360 F_SET(sp->frp, FR_CURSORSET); in vs_discard() 736 if (sp->frp != NULL) { in vs_swap() 737 sp->frp->lno = sp->lno; in vs_swap() 738 sp->frp->cno = sp->cno; in vs_swap() 739 F_SET(sp->frp, FR_CURSORSET); in vs_swap() 949 if (!strcmp(nsp->frp->name, name)) in vs_getbg() 956 if ((p = strrchr(nsp->frp->name, '/')) == NULL) in vs_getbg() [all …]
|
| /netbsd/src/sys/dist/pf/net/ |
| D | pf_norm.c | 564 struct pf_frcache *frp, *fra, *cur = NULL; in pf_fragcache() local 616 frp = NULL; in pf_fragcache() 620 frp = fra; in pf_fragcache() 623 KASSERT(frp != NULL || fra != NULL); in pf_fragcache() 625 if (frp != NULL) { in pf_fragcache() 628 precut = frp->fr_end - off; in pf_fragcache() 632 h->ip_id, frp->fr_off, frp->fr_end, off, frmax)); in pf_fragcache() 638 h->ip_id, frp->fr_off, frp->fr_end, off, frmax)); in pf_fragcache() 639 frp->fr_end = frmax; in pf_fragcache() 649 h->ip_id, precut, frp->fr_off, frp->fr_end, off, in pf_fragcache() [all …]
|
| /netbsd/src/games/backgammon/backgammon/ |
| D | move.c | 69 static int frp; /* chance to free pl's men */ variable 441 frp = freemen(home) + trapped(home, -cturn); in movcmp() 456 ch, pt, em, frc, frp); in movcmp() 480 oldfrp = frp; in movcmp() 571 if (abs(frp - oldfrp) > rnum(2)) in movegood() 572 return (frp > oldfrp); in movegood()
|
| /netbsd/src/external/bsd/ipf/dist/tools/ |
| D | ipf_y.y | 2591 static void setifname(frp, idx, name) in setifname() argument 2592 frentry_t **frp; in setifname() 2598 pos = addname(frp, name); 2601 (*frp)->fr_ifnames[idx] = pos; 2605 static int addname(frp, name) in addname() argument 2606 frentry_t **frp; in addname() 2618 f = calloc(1, (*frp)->fr_size + nlen); 2619 memcpy(f, *frp, (*frp)->fr_size); 2620 free(*frp); 2621 if (*frp == frc) [all …]
|
| /netbsd/src/sys/external/bsd/ipf/netinet/ |
| D | ip_auth.c | 286 frentry_t *fr, **frp; in ipf_auth_soft_fini() local 317 for (frp = &softa->ipf_auth_rules; ((fr = *frp) != NULL); ) { in ipf_auth_soft_fini() 319 *frp = fr->fr_next; in ipf_auth_soft_fini() 323 frp = &fr->fr_next; in ipf_auth_soft_fini() 695 frentry_t *fr, **frp; in ipf_auth_expire() local 738 for (frp = &softa->ipf_auth_rules; ((fr = *frp) != NULL); ) { in ipf_auth_expire() 740 *frp = fr->fr_next; in ipf_auth_expire() 744 frp = &fr->fr_next; in ipf_auth_expire()
|
| D | ip_frag.c | 1218 ipfr_t **frp = data; in ipf_frag_pkt_deref() local 1223 ipf_frag_deref(softc->ipf_frag_soft, frp, &softf->ipfr_frag); in ipf_frag_pkt_deref() 1225 ipf_frag_deref(softc->ipf_frag_soft, frp); in ipf_frag_pkt_deref() 1238 ipfr_t **frp = data; in ipf_frag_nat_deref() local 1243 ipf_frag_deref(softc->ipf_frag_soft, frp, &softf->ipfr_natfrag); in ipf_frag_nat_deref() 1245 ipf_frag_deref(softc->ipf_frag_soft, frp); in ipf_frag_nat_deref() 1262 ipf_frag_deref(void *arg, ipfr_t **frp in ipf_frag_deref() argument 1271 fra = *frp; in ipf_frag_deref() 1272 *frp = NULL; in ipf_frag_deref()
|
| /netbsd/src/external/historical/nawk/dist/ |
| D | run.c | 231 struct Frame *frp = NULL; /* frame pointer. bottom level unused */ variable 248 frp = frame = (struct Frame *) calloc(nframe += 100, sizeof(*frame)); in call() 255 DPRINTF("calling %s, %d args (%d in defn), frp=%d\n", s, ncall, ndef, (int) (frp-frame)); in call() 262 DPRINTF("evaluate args[%d], frp=%d:\n", i, (int) (frp-frame)); in call() 279 frp++; /* now ok to up frame */ in call() 280 if (frp >= frame + nframe) { in call() 281 int dfp = frp - frame; /* old index */ in call() 285 frp = frame + dfp; in call() 287 frp->fcncell = fcn; in call() 288 frp->args = args; in call() [all …]
|
| /netbsd/src/external/bsd/nvi/dist/cl/ |
| D | cl_term.c | 295 if (sp->frp != NULL && sp->frp->name != NULL) in cl_optchange() 296 (void)cl_rename(sp, sp->frp->name, 1); in cl_optchange()
|