Home
last modified time | relevance | path

Searched refs:ep (Results 1 – 25 of 753) sorted by relevance

12345678910>>...31

/netbsd/src/external/bsd/nvi/dist/common/
Dlog4.c81 log_init(SCR *sp, EXF *ep) in log_init() argument
97 ep->l_cursor.lno = 1; /* XXX Any valid recno. */ in log_init()
98 ep->l_cursor.cno = 0; in log_init()
99 ep->l_high = ep->l_cur = 1; in log_init()
101 if ((sp->db_error = ep->env->log_cursor(ep->env, &logc, 0)) in log_init()
104 F_SET(ep, F_NOLOG); in log_init()
115 logc->get(logc, &ep->lsn_first, &data, DB_LAST))) { in log_init()
122 F_SET(ep, F_NOLOG); in log_init()
127 MEMCPY(&ep->lsn_cur, &ep->lsn_first, 1); in log_init()
128 MEMCPY(&ep->lsn_high, &ep->lsn_first, 1); in log_init()
[all …]
Dlog1.c101 log_init(SCR *sp, EXF *ep) in log_init() argument
113 ep->l_cursor.lno = 1; /* XXX Any valid recno. */ in log_init()
114 ep->l_cursor.cno = 0; in log_init()
115 ep->l_high = ep->l_cur = 1; in log_init()
117 ep->log = dbopen(NULL, O_CREAT | O_NONBLOCK | O_RDWR, in log_init()
119 if (ep->log == NULL) { in log_init()
121 F_SET(ep, F_NOLOG); in log_init()
125 ep->l_win = NULL; in log_init()
138 log_end(SCR *sp, EXF *ep) in log_end() argument
145 if (ep->log != NULL) { in log_end()
[all …]
Dlog.c102 log_init(SCR *sp, EXF *ep) in log_init() argument
114 ep->l_cursor.lno = 1; /* XXX Any valid recno. */ in log_init()
115 ep->l_cursor.cno = 0; in log_init()
116 ep->l_high = ep->l_cur = 1; in log_init()
118 if (db_create(&ep->log, 0, 0) != 0 || in log_init()
119 db_open(ep->log, NULL, DB_RECNO, in log_init()
122 F_SET(ep, F_NOLOG); in log_init()
126 ep->l_win = NULL; in log_init()
139 log_end(SCR *sp, EXF *ep) in log_end() argument
146 if (ep->log != NULL) { in log_end()
[all …]
Dvi_db1.c96 EXF *ep; in db_get() local
111 if ((ep = sp->ep) == NULL) { in db_get()
164 switch (ep->db->get(ep->db, &key, &data, 0)) { in db_get()
217 EXF *ep; in db_delete() local
223 if ((ep = sp->ep) == NULL) { in db_delete()
227 if (ep->l_win && ep->l_win != sp->wp) { in db_delete()
244 sp->db_error = ep->db->del(ep->db, &key, 0); in db_delete()
258 if (F_ISSET(ep, F_FIRSTMODIFY)) in db_delete()
260 F_SET(ep, F_MODIFIED); in db_delete()
279 EXF *ep; in db_append() local
[all …]
Dvi_db.c95 EXF *ep; in db_get() local
111 if ((ep = sp->ep) == NULL) { in db_get()
174 switch (ep->db->get(ep->db, NULL, &key, &data, 0)) { in db_get()
229 EXF *ep; in db_delete() local
235 if ((ep = sp->ep) == NULL) { in db_delete()
239 if (ep->l_win && ep->l_win != sp->wp) { in db_delete()
255 if ((sp->db_error = ep->db->del(ep->db, NULL, &key, 0)) != 0) { in db_delete()
265 if (F_ISSET(ep, F_FIRSTMODIFY)) in db_delete()
267 F_SET(ep, F_MODIFIED); in db_delete()
290 EXF *ep; in append() local
[all …]
Dexf.c131 EXF *ep; in file_init() local
173 (exfp != sp->ep || exfp->refcnt > 1)) { in file_init()
174 ep = exfp; in file_init()
175 oname = ep->rcv_path; in file_init()
187 CALLOC_RET(sp, ep, EXF *, 1, sizeof(EXF)); in file_init()
188 TAILQ_INIT(&ep->scrq); in file_init()
189 sp->c_lno = ep->c_nlines = OOBLNO; in file_init()
190 ep->fd = ep->rcv_fd = ep->fcntl_fd = -1; in file_init()
191 F_SET(ep, F_FIRSTMODIFY); in file_init()
229 time(&ep->mtime); in file_init()
[all …]
/netbsd/src/external/bsd/mdocml/dist/
Deqn.c308 struct eqn_node *ep; in eqn_alloc() local
310 ep = mandoc_calloc(1, sizeof(*ep)); in eqn_alloc()
311 ep->gsize = EQN_DEFSIZE; in eqn_alloc()
312 return ep; in eqn_alloc()
316 eqn_reset(struct eqn_node *ep) in eqn_reset() argument
318 free(ep->data); in eqn_reset()
319 ep->data = ep->start = ep->end = NULL; in eqn_reset()
320 ep->sz = ep->toksz = 0; in eqn_reset()
324 eqn_read(struct eqn_node *ep, const char *p) in eqn_read() argument
328 if (ep->data == NULL) { in eqn_read()
[all …]
/netbsd/src/sbin/restore/
Dsymtab.c86 struct entry *ep; in lookupino() local
90 for (ep = entry[inum % entrytblsize]; ep != NULL; ep = ep->e_next) in lookupino()
91 if (ep->e_ino == inum) in lookupino()
92 return (ep); in lookupino()
146 struct entry *ep; in lookupname() local
152 for (ep = lookupino(UFS_ROOTINO); ep != NULL; ep = ep->e_entries) { in lookupname()
156 for ( ; ep != NULL; ep = ep->e_sibling) in lookupname()
157 if (strcmp(ep->e_name, buf) == 0) in lookupname()
159 if (ep == NULL) in lookupname()
162 return (ep); in lookupname()
[all …]
Drestore.c77 struct entry *ep; in addfile() local
96 ep = lookupino(ino); in addfile()
97 if (ep != NULL) { in addfile()
98 if (strcmp(name, myname(ep)) == 0) { in addfile()
99 ep->e_flags |= NEW; in addfile()
104 ep = addentry(name, ino, type); in addfile()
106 newnode(ep); in addfile()
107 ep->e_flags |= NEW; in addfile()
120 struct entry *ep; in deletefile() local
124 ep = lookupname(name); in deletefile()
[all …]
Dutilities.c64 struct entry *ep; in pathcheck() local
74 ep = lookupname(name); in pathcheck()
75 if (ep == NULL) { in pathcheck()
77 ep = addentry(name, pathsearch(name)->d_ino, NODE); in pathcheck()
78 newnode(ep); in pathcheck()
80 ep->e_flags |= NEW|KEEP; in pathcheck()
89 mktempname(struct entry *ep) in mktempname() argument
93 if (ep->e_flags & TMPNAME) in mktempname()
94 badentry(ep, "mktempname: called with TMPNAME"); in mktempname()
95 ep->e_flags |= TMPNAME; in mktempname()
[all …]
/netbsd/src/games/hack/
Dhack.engrave.c94 struct engr *ep = head_engr; in engr_at() local
95 while (ep) { in engr_at()
96 if (x == ep->engr_x && y == ep->engr_y) in engr_at()
97 return (ep); in engr_at()
98 ep = ep->nxt_engr; in engr_at()
106 struct engr *ep = engr_at(x, y); in sengr_at() local
110 if (ep && ep->engr_time <= moves) { in sengr_at()
111 t = ep->engr_txt; in sengr_at()
135 struct engr *ep = engr_at(x, y); in wipe_engr_at() local
140 if (ep) { in wipe_engr_at()
[all …]
/netbsd/src/usr.bin/spell/spellprog/
Dspellprog.c316 char *ep, *cp, *dp; in main() local
379 for (ep = word; (*ep = ch = getchar()) != '\n'; ep++) { in main()
380 if (ep - word == sizeof(word) - 1) { in main()
381 *ep = '\0'; in main()
392 for (cp = word, dp = original; cp < ep; ) in main()
396 for (cp = word; cp < ep; cp++) in main()
399 if (trypref(ep, ".", 0)) in main()
402 for (cp = original + 1, dp = word + 1; dp < ep; dp++, cp++) in main()
405 if (trypref(ep, ".", 0) || suffix(ep, 0)) in main()
436 suffix(char *ep, size_t lev) in suffix() argument
[all …]
/netbsd/src/sys/netbt/
Dhci_event.c252 hci_command_status_ep ep; in hci_event_command_status() local
254 if (m->m_pkthdr.len < sizeof(ep)) in hci_event_command_status()
257 m_copydata(m, 0, sizeof(ep), &ep); in hci_event_command_status()
258 m_adj(m, sizeof(ep)); in hci_event_command_status()
260 ep.opcode = le16toh(ep.opcode); in hci_event_command_status()
264 HCI_OGF(ep.opcode), HCI_OCF(ep.opcode), in hci_event_command_status()
265 ep.status, in hci_event_command_status()
266 ep.num_cmd_pkts); in hci_event_command_status()
268 hci_num_cmds(unit, ep.num_cmd_pkts); in hci_event_command_status()
273 switch(ep.opcode) { in hci_event_command_status()
[all …]
/netbsd/src/tests/lib/libc/stdlib/
Dt_hsearch.c87 ENTRY e, *ep; in ATF_TC_BODY() local
103 ep = hsearch(e, ENTER); in ATF_TC_BODY()
105 ATF_REQUIRE(ep != NULL); in ATF_TC_BODY()
106 ATF_REQUIRE_STREQ(ep->key, ch); in ATF_TC_BODY()
107 ATF_REQUIRE_EQ((intptr_t)ep->data, i); in ATF_TC_BODY()
117 ep = hsearch(e, FIND); in ATF_TC_BODY()
119 ATF_REQUIRE(ep != NULL); in ATF_TC_BODY()
120 ATF_REQUIRE_STREQ(ep->key, ch); in ATF_TC_BODY()
121 ATF_REQUIRE_EQ((intptr_t)ep->data, i); in ATF_TC_BODY()
137 ENTRY e, *ep; in ATF_TC_BODY() local
[all …]
/netbsd/src/external/ibm-public/postfix/dist/src/util/
Dedit_file.c176 #define EDIT_FILE_ALLOC(ep, path, mode) do { \ argument
177 (ep) = (EDIT_FILE *) mymalloc(sizeof(EDIT_FILE)); \
178 (ep)->final_path = mystrdup(path); \
179 (ep)->final_mode = (mode); \
180 (ep)->tmp_path = concatenate((path), EDIT_FILE_SUFFIX, (char *) 0); \
181 (ep)->tmp_fp = 0; \
184 #define EDIT_FILE_FREE(ep) do { \ argument
185 myfree((ep)->final_path); \
186 myfree((ep)->tmp_path); \
187 myfree((void *) (ep)); \
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/
Dlra-eliminations.cc121 class lra_elim_table *ep; in print_elim_table() local
123 for (ep = reg_eliminate; ep < &reg_eliminate[NUM_ELIMINABLE_REGS]; ep++) in print_elim_table()
126 ep->can_eliminate ? "Can" : "Can't", ep->from, ep->to); in print_elim_table()
127 print_dec (ep->offset, f); in print_elim_table()
129 print_dec (ep->previous_offset, f); in print_elim_table()
145 setup_can_eliminate (class lra_elim_table *ep, bool value) in setup_can_eliminate() argument
147 ep->can_eliminate = ep->prev_can_eliminate = value; in setup_can_eliminate()
149 && ep->from == FRAME_POINTER_REGNUM && ep->to == STACK_POINTER_REGNUM) in setup_can_eliminate()
180 class lra_elim_table *ep; in setup_elimination_map() local
184 for (ep = reg_eliminate; ep < &reg_eliminate[NUM_ELIMINABLE_REGS]; ep++) in setup_elimination_map()
[all …]
/netbsd/src/usr.bin/w/
Dw.c129 static void fixhost(struct entry *ep);
136 struct entry *ep; in main() local
249 if ((ep = calloc(1, sizeof(struct entry))) == NULL) in main()
251 (void)memcpy(ep->line, utx->ut_line, sizeof(utx->ut_line)); in main()
252 ep->line[sizeof(utx->ut_line)] = '\0'; in main()
253 *nextp = ep; in main()
254 nextp = &(ep->next); in main()
259 (void)memcpy(ep->name, utx->ut_name, sizeof(utx->ut_name)); in main()
260 ep->name[sizeof(utx->ut_name)] = '\0'; in main()
262 utx->ut_ss.ss_len, ep->host, sizeof(ep->host), NULL, 0, in main()
[all …]
/netbsd/src/lib/libc/yp/
Dyp_match.c70 struct ypmatch_ent *ep; in ypmatch_add() local
79 for (ep = ypmc; ep; ep = ep->next) in ypmatch_add()
80 if (ep->expire_t < t) in ypmatch_add()
82 if (ep == NULL) { in ypmatch_add()
83 if ((ep = malloc(sizeof *ep)) == NULL) in ypmatch_add()
85 (void)memset(ep, 0, sizeof *ep); in ypmatch_add()
87 ep->next = ypmc; in ypmatch_add()
88 ypmc = ep; in ypmatch_add()
91 if (ep->key) { in ypmatch_add()
92 free(ep->key); in ypmatch_add()
[all …]
/netbsd/src/sys/netinet/
Dip_encap.c199 struct encaptab *ep, *match; in encap4_lookup() local
227 while ((ep = thmap_get(emap, &key, sizeof(key))) != NULL) { in encap4_lookup()
230 KASSERT(ep->af == AF_INET); in encap4_lookup()
232 if (ep->proto >= 0 && ep->proto != proto) { in encap4_lookup()
237 psref_acquire(&elem_psref, &ep->psref, in encap4_lookup()
239 if (ep->func) { in encap4_lookup()
241 prio = (*ep->func)(m, off, proto, ep->arg); in encap4_lookup()
248 psref_release(&elem_psref, &ep->psref, in encap4_lookup()
262 match = ep; in encap4_lookup()
265 psref_release(&elem_psref, &ep->psref, in encap4_lookup()
[all …]
/netbsd/src/lib/libtelnet/
Dencrypt.c141 Encryptions *ep = encryptions; in findencryption() local
145 while (ep->type && ep->type != type) in findencryption()
146 ++ep; in findencryption()
147 return(ep->type ? ep : 0); in findencryption()
153 Encryptions *ep = encryptions; in finddecryption() local
157 while (ep->type && ep->type != type) in finddecryption()
158 ++ep; in finddecryption()
159 return(ep->type ? ep : 0); in finddecryption()
178 Encryptions *ep = encryptions; in encrypt_init() local
194 while (ep->type) { in encrypt_init()
[all …]
/netbsd/src/external/bsd/am-utils/dist/amd/
Dreaddir.c61 static int amfs_readdir_browsable(am_node *mp, nfscookie cookie, nfsdirlist *dp, nfsentry *ep, u_in…
203 amfs_readdir_browsable(am_node *mp, nfscookie cookie, nfsdirlist *dp, nfsentry *ep, u_int count, in… in amfs_readdir_browsable() argument
234 if (count < (2 * (2 * (sizeof(*ep) + sizeof("..") + 4) + sizeof(*dp)))) in amfs_readdir_browsable()
249 dp->dl_entries = ep; in amfs_readdir_browsable()
252 ep[0].ne_fileid = mp->am_gen; in amfs_readdir_browsable()
253 ep[0].ne_name = "."; in amfs_readdir_browsable()
254 ep[0].ne_nextentry = &ep[1]; in amfs_readdir_browsable()
255 (void)memset(ep[0].ne_cookie, 0, sizeof(u_int)); in amfs_readdir_browsable()
259 ep[1].ne_fileid = mp->am_parent->am_gen; in amfs_readdir_browsable()
261 ep[1].ne_fileid = mp->am_gen; in amfs_readdir_browsable()
[all …]
/netbsd/src/external/bsd/ntp/dist/ntpd/
Dntp_io.c301 endpt * ep; member
723 for (ifi.ep = ep_list; ifi.ep != NULL; ifi.ep = ifi.ep->elink) in interface_enumerate()
732 endpt *ep in init_interface() argument
735 ZERO(*ep); in init_interface()
736 ep->fd = INVALID_SOCKET; in init_interface()
737 ep->bfd = INVALID_SOCKET; in init_interface()
738 ep->phase = sys_interphase; in init_interface()
779 endpt *ep in delete_interface() argument
783 io_completion_port_remove_interface(ep); in delete_interface()
785 free(ep); in delete_interface()
[all …]
/netbsd/src/sys/dev/usb/
Dumidi.c659 alloc_pipe(struct umidi_endpoint *ep) in alloc_pipe() argument
661 struct umidi_softc *sc = ep->sc; in alloc_pipe()
665 epd = usbd_get_endpoint_descriptor(sc->sc_iface, ep->addr); in alloc_pipe()
679 ep->buffer_size = UGETW(epd->wMaxPacketSize); in alloc_pipe()
680 ep->buffer_size -= ep->buffer_size % UMIDI_PACKET_SIZE; in alloc_pipe()
683 device_xname(sc->sc_dev), ep, ep->buffer_size)); in alloc_pipe()
684 ep->num_scheduled = 0; in alloc_pipe()
685 ep->this_schedule = 0; in alloc_pipe()
686 ep->next_schedule = 0; in alloc_pipe()
687 ep->soliciting = 0; in alloc_pipe()
[all …]
/netbsd/src/usr.bin/elf2ecoff/
Delf2ecoff.c111 struct ecoff32_exechdr ep; in main() local
295 ep.a.magic = ECOFF_OMAGIC; in main()
296 ep.a.vstamp = 2 * 256 + 10; /* compatible with version 2.10 */ in main()
297 ep.a.tsize = text.len; in main()
298 ep.a.dsize = data.len; in main()
299 ep.a.bsize = bss.len; in main()
300 ep.a.entry = ex.e_entry; in main()
301 ep.a.text_start = text.vaddr; in main()
302 ep.a.data_start = data.vaddr; in main()
303 ep.a.bss_start = bss.vaddr; in main()
[all …]
/netbsd/src/lib/libc/db/btree/
Dbt_seq.c156 __bt_seqset(BTREE *t, EPG *ep, DBT *key, int flags) in __bt_seqset() argument
177 return (__bt_first(t, key, ep, &exact)); in __bt_seqset()
199 ep->page = h; in __bt_seqset()
200 ep->index = 0; in __bt_seqset()
224 ep->page = h; in __bt_seqset()
225 ep->index = NEXTINDEX(h) - 1; in __bt_seqset()
246 __bt_seqadv(BTREE *t, EPG *ep, int flags) in __bt_seqadv() argument
288 if ((rval = __bt_first(t, &c->key, ep, &exact)) == RET_ERROR) in __bt_seqadv()
296 c->pg.pgno = ep->page->pgno; in __bt_seqadv()
297 c->pg.index = ep->index; in __bt_seqadv()
[all …]

12345678910>>...31