/openbsd/usr.bin/mandoc/ |
H A D | eqn.c | 318 ep->data = ep->start = ep->end = NULL; in eqn_reset() 319 ep->sz = ep->toksz = 0; in eqn_reset() 348 ep->defs[i].keysz, ep->start, ep->toksz)) in eqn_def_find() 386 if (ep->end - ep->data >= ep->sublen) in eqn_next() 389 ep->start = ep->end; in eqn_next() 411 ep->end = strchr(ep->start + 1, *ep->start); in eqn_next() 423 ep->toksz = ep->end - ep->start; in eqn_next() 444 ep->data = mandoc_realloc(ep->data, ep->sz + 1); in eqn_next() 459 ep->start = mandoc_strndup(ep->start, ep->toksz); in eqn_next() 475 ep->start = mandoc_strndup(ep->start, ep->toksz); in eqn_next() [all …]
|
/openbsd/gnu/usr.bin/gcc/gcc/config/v850/ |
H A D | lib1funcs.asm | 271 mov ep,r1 273 mov sp,ep 285 mov r1,ep 295 mov ep,r1 296 mov sp,ep 309 mov r1,ep 322 mov ep,r1 324 mov sp,ep 335 mov r1,ep 345 mov ep,r1 [all …]
|
/openbsd/sbin/restore/ |
H A D | symtab.c | 82 for (ep = entry[inum % entrytblsize]; ep != NULL; ep = ep->e_next) in lookupino() 144 for (ep = lookupino(ROOTINO); ep != NULL; ep = ep->e_entries) { in lookupname() 151 for ( ; ep != NULL; ep = ep->e_sibling) in lookupname() 195 memcpy(cp, ep->e_name, ep->e_namlen); in myname() 199 ep = ep->e_parent; in myname() 456 for (ep = lookupino(i); ep != NULL; ep = ep->e_links) { in dumpsymtable() 468 for (ep = lookupino(i); ep != NULL; ep = ep->e_links) { in dumpsymtable() 593 for (ep = &baseep[1]; ep < lep; ep++) { in initsymtable() 594 ep->e_name = base + (long)ep->e_name; in initsymtable() 599 ep->e_links = &baseep[(long)ep->e_links]; in initsymtable() [all …]
|
H A D | restore.c | 96 newnode(ep); in addfile() 118 freeentry(ep); in deletefile() 155 for ( ; ep != NULL; ep = ep->e_links) { in removeoldleaves() 221 for (ep = ip->e_links; ep != NULL; ep = ep->e_links) { in nodeupdates() 223 ip = ep; in nodeupdates() 308 newnode(ep); in nodeupdates() 511 for (ep = removelist; ep != NULL; ep = ep->e_next) { in findunreflinks() 545 for (ep = removelist; ep != NULL; ep = *prev) { in removeoldnodes() 556 for (ep = removelist; ep != NULL; ep = ep->e_next) in removeoldnodes() 772 for (ep = lookupino(i); ep != NULL; ep = ep->e_links) { in checkrestore() [all …]
|
H A D | utilities.c | 57 struct entry *ep; in pathcheck() local 68 if (ep == NULL) { in pathcheck() 71 newnode(ep); in pathcheck() 91 ep->e_name = savename(gentempname(ep)); in mktempname() 92 ep->e_namlen = strlen(ep->e_name); in mktempname() 162 cp = myname(ep); in removenode() 182 cp = myname(ep); in removeleaf() 225 struct entry *ep; in lowerbnd() local 229 if (ep == NULL || ep->e_type == NODE) in lowerbnd() 243 struct entry *ep; in upperbnd() local [all …]
|
/openbsd/usr.bin/vi/common/ |
H A D | log.c | 97 ep->l_high = ep->l_cur = 1; in log_init() 147 ep = sp->ep; in log_cursor() 175 ep = sp->ep; in log_cursor1() 193 ep->l_high = ++ep->l_cur; in log_cursor1() 212 ep = sp->ep; in log_line() 287 ep->l_high = ++ep->l_cur; in log_line() 307 ep = sp->ep; in log_mark() 356 ep = sp->ep; in log_backward() 459 ep = sp->ep; in log_setline() 546 ep = sp->ep; in log_forward() [all …]
|
H A D | line.c | 91 if ((ep = sp->ep) == NULL) { in db_get() 189 if ((ep = sp->ep) == NULL) { in db_delete() 206 if (ep->db->del(ep->db, &key, 0) == 1) { in db_delete() 244 if ((ep = sp->ep) == NULL) { in db_append() 312 if ((ep = sp->ep) == NULL) { in db_insert() 371 if ((ep = sp->ep) == NULL) { in db_set() 418 if ((ep = sp->ep) == NULL) { in db_exist() 453 if ((ep = sp->ep) == NULL) { in db_last() 487 ep->c_nlines = ep->c_lno = lno; in db_last() 525 ep = sp->ep; in scr_update() [all …]
|
H A D | exf.c | 156 ep->c_lno = ep->c_nlines = OOBLNO; in file_init() 157 ep->rcv_fd = ep->fcntl_fd = -1; in file_init() 345 &ep->fcntl_fd, ep->db->fd(ep->db), 0)) { in file_init() 411 sp->ep = ep; in file_init() 436 (void)ep->db->close(ep->db); in file_init() 634 ep = sp->ep; in file_end() 680 if (ep->db->close != NULL && ep->db->close(ep->db) && !force) { in file_end() 745 ep = sp->ep; in file_write() 1211 ep = sp->ep; in file_m1() 1250 ep = sp->ep; in file_m2() [all …]
|
/openbsd/games/hack/ |
H A D | hack.engrave.c | 91 if(x == ep->engr_x && y == ep->engr_y) in engr_at() 93 ep = ep->nxt_engr; in engr_at() 105 if(ep && ep->engr_time <= moves) { in sengr_at() 133 if(ep){ in wipe_engr_at() 150 if(!ep->engr_txt[0]) del_engr(ep); in wipe_engr_at() 159 if(ep && ep->engr_txt[0]) { in read_engr_at() 191 ep->engr_txt = (char *)(ep + 1); in make_engr_at() 344 if(!ep->engr_lth || !ep->engr_txt[0]){ in save_engravings() 345 ep = ep->nxt_engr; in save_engravings() 350 ep = ep->nxt_engr; in save_engravings() [all …]
|
/openbsd/usr.bin/spell/ |
H A D | spellprog.c | 306 for (ep = word; (*ep = ch = getchar()) != '\n'; ep++) { in main() 332 if (trypref(ep, ".", 0) || suffix(ep, 0)) in main() 405 return (trypref(ep, a, lev) || suffix(ep, lev)); in strip() 414 if (*ep == 's' && ep[-1] == 's') in s() 564 if (!(ep[-2] == 'n' && ep[-1] == 'g')) in CCe() 584 if (trypref(ep, d, lev) || suffix(ep, lev)) in VCe() 586 ep--; in VCe() 657 if (vowel(*ep) && monosyl(bp, ep)) in tryword() 661 if (i == 0 && vowel(*ep) && ep[-1] == ep[-2] && monosyl(bp, ep-1)) { in tryword() 662 ep--; in tryword() [all …]
|
/openbsd/sys/dev/pci/drm/apple/ |
H A D | afk.c | 50 dcp_send_message(ep->dcp, ep->endpoint, message); in afk_send() 91 apple_rtkit_start_ep(ep->dcp->rtk, ep->endpoint); in afk_start() 109 if (ep->bfr) { in afk_getbuf() 115 ep->bfr = dmam_alloc_coherent(ep->dcp->dev, size, &ep->bfr_dma, in afk_getbuf() 141 ep->endpoint, ep->bfr_tag, tag); in afk_init_rxtx() 154 ep->endpoint, base, ep->bfr_size); in afk_init_rxtx() 162 ep->endpoint, end, ep->bfr_size); in afk_init_rxtx() 179 if (ep->rxbfr.ready && ep->txbfr.ready) in afk_init_rxtx() 280 ep->services[ch_idx].ep = ep; in afk_recv_handle_init() 686 work->ep = ep; in afk_receive_message() [all …]
|
/openbsd/gnu/gcc/gcc/config/v850/ |
H A D | lib1funcs.asm | 272 mov ep,r1 274 mov sp,ep 286 mov r1,ep 311 mov ep,r1 312 mov sp,ep 325 mov r1,ep 353 mov ep,r1 355 mov sp,ep 366 mov r1,ep 390 mov ep,r1 [all …]
|
/openbsd/usr.sbin/smtpd/ |
H A D | envelope.c | 140 memset(ep, 0, sizeof *ep); in envelope_load_buffer() 181 switch (ep->type) { in envelope_dump_buffer() 383 return ascii_load_string(ep->username, buf, sizeof(ep->username)); in ascii_load_field() 396 return ascii_load_string(ep->helo, buf, sizeof ep->helo); in ascii_load_field() 415 return ascii_load_string(ep->mda_exec, buf, sizeof(ep->mda_exec)); in ascii_load_field() 421 return ascii_load_string(ep->mda_user, buf, sizeof(ep->mda_user)); in ascii_load_field() 434 return ascii_load_string(ep->tag, buf, sizeof ep->tag); in ascii_load_field() 633 if (ep->username[0]) in ascii_dump_field() 666 if (ep->mda_exec[0]) in ascii_dump_field() 714 if (ep->esc_class) in ascii_dump_field() [all …]
|
/openbsd/usr.bin/sndiod/ |
H A D | midi.c | 92 for (i = 0, ep = midi_ep;; i++, ep++) { in midi_new() 98 ep->ops = ops; in midi_new() 100 ep->used = 0; in midi_new() 101 ep->len = 0; in midi_new() 102 ep->idx = 0; in midi_new() 103 ep->st = 0; in midi_new() 106 ep->num = i; in midi_new() 117 return ep; in midi_new() 436 if ((ep->txmask & p->self) || (p->txmask & ep->self)) in midi_abort() 437 ep->ops->exit(ep->arg); in midi_abort() [all …]
|
/openbsd/usr.bin/rs/ |
H A D | rs.c | 97 ep = getptrs(ep); \ 124 struct entry *ep; in getfile() local 154 ep->w = mbsavis(&ep->s, curline); in getfile() 168 ep->w = 0; in getfile() 170 ep->w = mbsavis(&ep->s, strsep(&p, delim)); in getfile() 179 ep->s = ""; in getfile() 180 ep->w = 0; in getfile() 181 INCR(ep); in getfile() 194 ep = elem; in putfile() 275 for (ep = elem + nelem; ep < lp; ep++) in prepfile() [all …]
|
/openbsd/regress/lib/libc/hsearch/ |
H A D | hsearchtest.c | 61 ENTRY e, *ep, *ep2; in main() local 79 TEST(ep != NULL); in main() 90 ep = hsearch(e, FIND); in main() 91 TEST(ep != NULL); in main() 99 ep = hsearch(e, FIND); in main() 100 TEST(ep != NULL); in main() 106 ep = hsearch(e, FIND); in main() 107 TEST(ep == NULL); in main() 111 ep = hsearch(e, FIND); in main() 114 TEST(ep != NULL); in main() [all …]
|
/openbsd/usr.sbin/tcpdump/ |
H A D | print-dvmrp.c | 81 const u_char *ep; in dvmrp_print() local 84 ep = (const u_char *)snapend; in dvmrp_print() 85 if (bp >= ep) in dvmrp_print() 101 print_probe(bp, ep, len); in dvmrp_print() 107 print_report(bp, ep, len); in dvmrp_print() 116 print_neighbors(bp, ep, len); in dvmrp_print() 138 print_prune(bp, ep, len); in dvmrp_print() 143 print_graft(bp, ep, len); in dvmrp_print() 181 if (bp + width + 1 > ep) { in print_report() 242 while (len > 0 && bp < ep) { in print_neighbors() [all …]
|
/openbsd/gnu/lib/libiberty/src/ |
H A D | setenv.c | 85 register char **ep = 0; in setenv() local 95 for (ep = __environ; *ep != NULL; ++ep) in setenv() 96 if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=') in setenv() 141 size_t len = strlen (*ep); in setenv() 151 *ep = new_string; in setenv() 153 memcpy (*ep, name, namelen); in setenv() 154 (*ep)[namelen] = '='; in setenv() 167 char **ep; in unsetenv() local 171 for (ep = __environ; *ep; ++ep) in unsetenv() 172 if (!strncmp (*ep, name, len) && (*ep)[len] == '=') in unsetenv() [all …]
|
/openbsd/sys/dev/usb/ |
H A D | umidi.c | 347 ep->buffer = usbd_alloc_buffer(ep->xfer, ep->packetsize); in alloc_pipe() 472 memset(ep->jacks, 0, sizeof(ep->jacks)); in alloc_all_endpoints_fixed_ep() 497 memset(ep->jacks, 0, sizeof(ep->jacks)); in alloc_all_endpoints_fixed_ep() 1081 usbd_setup_xfer(ep->xfer, ep->pipe, in start_input_transfer() 1083 ep->buffer, ep->packetsize, in start_input_transfer() 1098 usbd_setup_xfer(ep->xfer, ep->pipe, in start_output_transfer() 1100 ep->buffer, ep->used, in start_output_transfer() 1108 ep->used = ep->packetsize; in start_output_transfer() 1148 ep->buffer + ep->used)) { in out_jack_output() 1153 if (ep->used == ep->packetsize) { in out_jack_output() [all …]
|
/openbsd/lib/libc/yp/ |
H A D | ypmatch_cache.c | 74 for (ep = ypmc; ep; ep = ep->next) in ypmatch_add() 78 if (ep == NULL) { in ypmatch_add() 80 if ((ep = malloc(sizeof *ep)) == NULL) { in ypmatch_add() 86 ep->next = ypmc; in ypmatch_add() 87 ypmc = ep; in ypmatch_add() 90 free(ep->val); in ypmatch_add() 91 free(ep->key); in ypmatch_add() 92 free(ep->map); in ypmatch_add() 98 ep->map = newmap; in ypmatch_add() 119 for (ep = ypmc; ep; ep = ep->next) { in ypmatch_find() [all …]
|
/openbsd/lib/libc/db/btree/ |
H A D | bt_seq.c | 183 ep->page = h; in __bt_seqset() 184 ep->index = 0; in __bt_seqset() 205 ep->page = h; in __bt_seqset() 306 ep->page = h; in __bt_seqadv() 329 EPG *ep, save; in __bt_first() local 353 save = *ep; in __bt_first() 354 h = ep->page; in __bt_first() 358 save = *ep; in __bt_first() 382 --ep->index; in __bt_first() 398 if (ep->index == NEXTINDEX(ep->page)) { in __bt_first() [all …]
|
/openbsd/lib/libcurses/tinfo/ |
H A D | entries.c | 73 ENTRY *ep, *last; in _nc_delink_entry() local 75 for (last = 0, ep = headp; ep != 0; last = ep, ep = ep->next) { in _nc_delink_entry() 78 last->next = ep->next; in _nc_delink_entry() 80 if (ep->next != 0) { in _nc_delink_entry() 81 ep->next->last = last; in _nc_delink_entry() 83 if (ep == _nc_head) { in _nc_delink_entry() 84 _nc_head = ep->next; in _nc_delink_entry() 86 if (ep == _nc_tail) { in _nc_delink_entry() 92 return ep; in _nc_delink_entry() 99 ENTRY *ep; in _nc_free_entry() local [all …]
|
/openbsd/usr.bin/cvs/ |
H A D | entries.c | 38 CVSENTRIES *ep; in cvs_ent_open() local 55 ep = xcalloc(1, sizeof(*ep)); in cvs_ent_open() 67 TAILQ_INIT(&(ep->cef_ent)); in cvs_ent_open() 115 current_list = ep; in cvs_ent_open() 116 return (ep); in cvs_ent_open() 291 if (rename(ep->cef_bpath, ep->cef_path) == -1) in cvs_ent_close() 293 ep->cef_bpath, ep->cef_path, strerror(errno)); in cvs_ent_close() 298 free(ep->cef_path); in cvs_ent_close() 299 free(ep->cef_bpath); in cvs_ent_close() 300 free(ep->cef_lpath); in cvs_ent_close() [all …]
|
/openbsd/usr.bin/w/ |
H A D | w.c | 187 if ((ep = calloc(1, sizeof(*ep))) == NULL) in main() 189 *nextp = ep; in main() 211 ep->idle = 0; in main() 243 for (ep = ehead; ep != NULL; ep = ep->next) { in main() 254 ep->kp = kp; in main() 263 ep->kp = kp; in main() 295 for (ep = ehead; ep != NULL; ep = ep->next) { in main() 296 p = *ep->utmp.ut_host ? ep->utmp.ut_host : "-"; in main() 321 ep->utmp.ut_line : ep->utmp.ut_line + 3, in main() 324 pr_idle(ep->idle); in main() [all …]
|
/openbsd/usr.sbin/crunchgen/ |
H A D | crunched_main.c | 52 struct stub *ep; in crunched_main2() local 57 for (ep = entry_points; ep->name != NULL; ep++) in crunched_main2() 58 if (!strcmp(progname, ep->name)) in crunched_main2() 61 if (ep->name) in crunched_main2() 62 return ep->f(argc, argv, envp); in crunched_main2() 88 struct stub *ep; in crunched_usage() local 93 for (ep = entry_points; ep->name != NULL; ep++) { in crunched_usage() 94 len = strlen(ep->name) + 1; in crunched_usage() 101 fprintf(stderr, " %s", ep->name); in crunched_usage()
|