| /openbsd/src/usr.bin/mandoc/ |
| D | eqn.c | 307 struct eqn_node *ep; in eqn_alloc() local 309 ep = mandoc_calloc(1, sizeof(*ep)); in eqn_alloc() 310 ep->gsize = EQN_DEFSIZE; in eqn_alloc() 311 return ep; in eqn_alloc() 315 eqn_reset(struct eqn_node *ep) in eqn_reset() argument 317 free(ep->data); in eqn_reset() 318 ep->data = ep->start = ep->end = NULL; in eqn_reset() 319 ep->sz = ep->toksz = 0; in eqn_reset() 323 eqn_read(struct eqn_node *ep, const char *p) in eqn_read() argument 327 if (ep->data == NULL) { in eqn_read() [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/config/v850/ |
| D | lib1funcs.asm | 271 mov ep,r1 273 mov sp,ep 274 sst.w r29,0[ep] 275 sst.w r28,4[ep] 276 sst.w r27,8[ep] 277 sst.w r26,12[ep] 278 sst.w r25,16[ep] 279 sst.w r24,20[ep] 280 sst.w r23,24[ep] 281 sst.w r22,28[ep] [all …]
|
| /openbsd/src/sbin/restore/ |
| D | symtab.c | 78 struct entry *ep; in lookupino() local 82 for (ep = entry[inum % entrytblsize]; ep != NULL; ep = ep->e_next) in lookupino() 83 if (ep->e_ino == inum) in lookupino() 84 return (ep); in lookupino() 139 struct entry *ep; in lookupname() local 144 for (ep = lookupino(ROOTINO); ep != NULL; ep = ep->e_entries) { in lookupname() 151 for ( ; ep != NULL; ep = ep->e_sibling) in lookupname() 152 if (strcmp(ep->e_name, buf) == 0) in lookupname() 154 if (ep == NULL) in lookupname() 157 return (ep); in lookupname() [all …]
|
| D | restore.c | 69 struct entry *ep; in addfile() local 86 ep = lookupino(ino); in addfile() 87 if (ep != NULL) { in addfile() 88 if (strcmp(name, myname(ep)) == 0) { in addfile() 89 ep->e_flags |= NEW; in addfile() 94 ep = addentry(name, ino, type); in addfile() 96 newnode(ep); in addfile() 97 ep->e_flags |= NEW; in addfile() 109 struct entry *ep; in deletefile() local 113 ep = lookupname(name); in deletefile() [all …]
|
| D | utilities.c | 57 struct entry *ep; in pathcheck() local 67 ep = lookupname(name); in pathcheck() 68 if (ep == NULL) { in pathcheck() 70 ep = addentry(name, pathsearch(name)->d_ino, NODE); in pathcheck() 71 newnode(ep); in pathcheck() 73 ep->e_flags |= NEW|KEEP; in pathcheck() 82 mktempname(struct entry *ep) in mktempname() argument 86 if (ep->e_flags & TMPNAME) in mktempname() 87 badentry(ep, "mktempname: called with TMPNAME"); in mktempname() 88 ep->e_flags |= TMPNAME; in mktempname() [all …]
|
| /openbsd/src/usr.bin/vi/common/ |
| D | log.c | 83 log_init(SCR *sp, EXF *ep) in log_init() argument 93 ep->l_lp = NULL; in log_init() 94 ep->l_len = 0; in log_init() 95 ep->l_cursor.lno = 1; /* XXX Any valid recno. */ in log_init() 96 ep->l_cursor.cno = 0; in log_init() 97 ep->l_high = ep->l_cur = 1; in log_init() 99 ep->log = dbopen(NULL, O_CREAT | O_NONBLOCK | O_RDWR, in log_init() 101 if (ep->log == NULL) { in log_init() 103 F_SET(ep, F_NOLOG); in log_init() 117 log_end(SCR *sp, EXF *ep) in log_end() argument [all …]
|
| D | line.c | 78 EXF *ep; in db_get() local 91 if ((ep = sp->ep) == NULL) { in db_get() 129 if (lno == ep->c_lno) { in db_get() 134 *lenp = ep->c_len; in db_get() 136 *pp = ep->c_lp; in db_get() 139 ep->c_lno = OOBLNO; in db_get() 145 switch (ep->db->get(ep->db, &key, &data, 0)) { in db_get() 159 ep->c_lno = lno; in db_get() 160 ep->c_len = data.size; in db_get() 161 ep->c_lp = data.data; in db_get() [all …]
|
| D | exf.c | 121 EXF *ep; in file_init() local 155 CALLOC_RET(sp, ep, 1, sizeof(EXF)); in file_init() 156 ep->c_lno = ep->c_nlines = OOBLNO; in file_init() 157 ep->rcv_fd = ep->fcntl_fd = -1; in file_init() 158 F_SET(ep, F_FIRSTMODIFY); in file_init() 165 free(ep); in file_init() 182 free(ep); in file_init() 239 F_SET(ep, F_DEVSET); in file_init() 240 ep->mdev = sb.st_dev; in file_init() 241 ep->minode = sb.st_ino; in file_init() [all …]
|
| /openbsd/src/games/hack/ |
| D | hack.engrave.c | 88 struct engr *ep = head_engr; in engr_at() local 90 while(ep) { in engr_at() 91 if(x == ep->engr_x && y == ep->engr_y) in engr_at() 92 return(ep); in engr_at() 93 ep = ep->nxt_engr; in engr_at() 101 struct engr *ep = engr_at(x,y); in sengr_at() local 105 if(ep && ep->engr_time <= moves) { in sengr_at() 106 t = ep->engr_txt; in sengr_at() 129 struct engr *ep = engr_at(x,y); in wipe_engr_at() local 133 if(ep){ in wipe_engr_at() [all …]
|
| /openbsd/src/usr.bin/spell/ |
| D | spellprog.c | 243 char *ep, *cp, *dp; in main() local 306 for (ep = word; (*ep = ch = getchar()) != '\n'; ep++) { in main() 307 if (ep - word == sizeof(word) - 1) { in main() 308 *ep = '\0'; in main() 319 for (cp = word, dp = original; cp < ep; ) in main() 323 for (cp = word; cp < ep; cp++) in main() 326 if (trypref(ep, ".", 0)) in main() 329 for (cp = original + 1, dp = word + 1; dp < ep; dp++, cp++) in main() 332 if (trypref(ep, ".", 0) || suffix(ep, 0)) in main() 365 suffix(char *ep, int lev) in suffix() argument [all …]
|
| /openbsd/src/gnu/gcc/gcc/config/v850/ |
| D | lib1funcs.asm | 272 mov ep,r1 274 mov sp,ep 275 sst.w r29,0[ep] 276 sst.w r28,4[ep] 277 sst.w r27,8[ep] 278 sst.w r26,12[ep] 279 sst.w r25,16[ep] 280 sst.w r24,20[ep] 281 sst.w r23,24[ep] 282 sst.w r22,28[ep] [all …]
|
| /openbsd/src/usr.sbin/smtpd/ |
| D | envelope.c | 111 envelope_load_buffer(struct envelope *ep, const char *ibuf, size_t buflen) in envelope_load_buffer() argument 140 memset(ep, 0, sizeof *ep); in envelope_load_buffer() 141 ret = envelope_ascii_load(ep, &d); in envelope_load_buffer() 143 ep->version = SMTPD_ENVELOPE_VERSION; in envelope_load_buffer() 151 envelope_dump_buffer(const struct envelope *ep, char *dest, size_t len) in envelope_dump_buffer() argument 155 envelope_ascii_dump(ep, &dest, &len, "version"); in envelope_dump_buffer() 156 envelope_ascii_dump(ep, &dest, &len, "dispatcher"); in envelope_dump_buffer() 157 envelope_ascii_dump(ep, &dest, &len, "tag"); in envelope_dump_buffer() 158 envelope_ascii_dump(ep, &dest, &len, "type"); in envelope_dump_buffer() 159 envelope_ascii_dump(ep, &dest, &len, "smtpname"); in envelope_dump_buffer() [all …]
|
| /openbsd/src/usr.bin/sndiod/ |
| D | midi.c | 90 struct midi *ep; in midi_new() local 92 for (i = 0, ep = midi_ep;; i++, ep++) { in midi_new() 95 if (ep->ops == NULL) in midi_new() 98 ep->ops = ops; in midi_new() 99 ep->arg = arg; 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() 104 ep->last_st = 0; in midi_new() [all …]
|
| /openbsd/src/usr.bin/rs/ |
| D | rs.c | 95 #define INCR(ep) do { \ argument 96 if (++ep >= endelem) \ 97 ep = getptrs(ep); \ 124 struct entry *ep; in getfile() local 150 ep = getptrs(NULL); in getfile() 154 ep->w = mbsavis(&ep->s, curline); in getfile() 155 if (maxwidth < ep->w) in getfile() 156 maxwidth = ep->w; in getfile() 157 INCR(ep); /* prepare for next entry */ in getfile() 167 ep->s = ""; /* empty column */ in getfile() [all …]
|
| /openbsd/src/regress/lib/libc/hsearch/ |
| D | hsearchtest.c | 61 ENTRY e, *ep, *ep2; in main() local 78 ep = hsearch(e, ENTER); in main() 79 TEST(ep != NULL); in main() 80 TEST(strcmp(ep->key, ch) == 0); in main() 81 TEST((long)ep->data == i); in main() 90 ep = hsearch(e, FIND); in main() 91 TEST(ep != NULL); in main() 92 TEST(strcmp(ep->key, ch) == 0); in main() 93 TEST((long)ep->data == i); in main() 99 ep = hsearch(e, FIND); in main() [all …]
|
| /openbsd/src/usr.sbin/tcpdump/ |
| 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() 133 print_neighbors2(bp, ep, len); in dvmrp_print() 138 print_prune(bp, ep, len); in dvmrp_print() 143 print_graft(bp, ep, len); in dvmrp_print() 148 print_graft_ack(bp, ep, len); in dvmrp_print() [all …]
|
| /openbsd/src/sys/dev/usb/ |
| D | umidi.c | 334 alloc_pipe(struct umidi_endpoint *ep) in alloc_pipe() argument 336 struct umidi_softc *sc = ep->sc; in alloc_pipe() 339 DPRINTF(("%s: alloc_pipe %p\n", sc->sc_dev.dv_xname, ep)); in alloc_pipe() 340 SIMPLEQ_INIT(&ep->intrq); in alloc_pipe() 341 ep->pending = 0; in alloc_pipe() 342 ep->busy = 0; in alloc_pipe() 343 ep->used = 0; in alloc_pipe() 344 ep->xfer = usbd_alloc_xfer(sc->sc_udev); in alloc_pipe() 345 if (ep->xfer == NULL) in alloc_pipe() 347 ep->buffer = usbd_alloc_buffer(ep->xfer, ep->packetsize); in alloc_pipe() [all …]
|
| /openbsd/src/gnu/lib/libiberty/src/ |
| 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() 102 if (__environ == NULL || *ep == NULL) 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() 155 memcpy (&(*ep)[namelen + 1], value, vallen); in setenv() 167 char **ep; in unsetenv() local [all …]
|
| /openbsd/src/lib/libc/yp/ |
| D | ypmatch_cache.c | 56 struct ypmatch_ent *ep; in ypmatch_add() local 74 for (ep = ypmc; ep; ep = ep->next) in ypmatch_add() 75 if (ep->expire_t < t) 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() [all …]
|
| /openbsd/src/lib/libc/db/btree/ |
| D | bt_seq.c | 143 __bt_seqset(BTREE *t, EPG *ep, DBT *key, int flags) in __bt_seqset() argument 164 return (__bt_first(t, key, ep, &exact)); in __bt_seqset() 183 ep->page = h; in __bt_seqset() 184 ep->index = 0; in __bt_seqset() 205 ep->page = h; in __bt_seqset() 206 ep->index = NEXTINDEX(h) - 1; in __bt_seqset() 227 __bt_seqadv(BTREE *t, EPG *ep, int flags) in __bt_seqadv() argument 250 return (__bt_first(t, &c->key, ep, &exact)); in __bt_seqadv() 288 ep->page = h; in __bt_seqadv() 289 ep->index = c->pg.index; in __bt_seqadv() [all …]
|
| /openbsd/src/lib/libcurses/tinfo/ |
| 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() 76 if (&(ep->tterm) == tterm) { 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() [all …]
|
| /openbsd/src/usr.bin/cvs/ |
| D | entries.c | 38 CVSENTRIES *ep; in cvs_ent_open() local 55 ep = xcalloc(1, sizeof(*ep)); in cvs_ent_open() 56 ep->cef_path = xstrdup(buf); in cvs_ent_open() 61 ep->cef_bpath = xstrdup(buf); in cvs_ent_open() 65 ep->cef_lpath = xstrdup(buf); in cvs_ent_open() 67 TAILQ_INIT(&(ep->cef_ent)); in cvs_ent_open() 69 if ((fp = fopen(ep->cef_path, "r")) != NULL) { in cvs_ent_open() 78 TAILQ_INSERT_TAIL(&(ep->cef_ent), line, entries_list); in cvs_ent_open() 84 if ((fp = fopen(ep->cef_lpath, "r")) != NULL) { in cvs_ent_open() 90 ep->cef_lpath, buf); in cvs_ent_open() [all …]
|
| /openbsd/src/usr.bin/w/ |
| D | w.c | 92 } *ep, *ehead = NULL, **nextp = &ehead; variable 187 if ((ep = calloc(1, sizeof(*ep))) == NULL) in main() 189 *nextp = ep; in main() 190 nextp = &(ep->next); in main() 191 memcpy(&(ep->utmp), &utmp, sizeof(utmp)); in main() 192 if (!(stp = ttystat(ep->utmp.ut_line))) in main() 194 ep->tdev = stp->st_rdev; in main() 200 if (ep->tdev == 0) { in main() 207 (void) sysctl(mib, 2, &ep->tdev, &size, NULL, 0); in main() 210 if ((ep->idle = now - stp->st_atime) < 0) in main() [all …]
|
| /openbsd/src/usr.sbin/crunchgen/ |
| 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()
|
| /openbsd/src/games/gomoku/ |
| D | pickmove.c | 220 struct elist *ep, *nep; in scanframes() local 334 for (ep = sp->s_empty; ep; ep = nep) { in scanframes() 335 cbp = ep->e_combo; in scanframes() 343 nep = ep->e_next; in scanframes() 344 free(ep); in scanframes() 348 for (ep = sp->s_nempty; ep; ep = nep) { in scanframes() 349 cbp = ep->e_combo; in scanframes() 357 nep = ep->e_next; in scanframes() 358 free(ep); in scanframes() 536 struct elist *ep, *nep; in addframes() local [all …]
|