Home
last modified time | relevance | path

Searched refs:pend (Results 1 – 25 of 39) sorted by relevance

12

/src/contrib/unbound/testcode/
H A Dfake_event.c167 delete_fake_pending(struct fake_pending* pend) in delete_fake_pending() argument
169 if(!pend) in delete_fake_pending()
171 free(pend->zone); in delete_fake_pending()
172 sldns_buffer_free(pend->buffer); in delete_fake_pending()
173 free(pend->pkt); in delete_fake_pending()
174 free(pend); in delete_fake_pending()
212 struct entry** entry, struct fake_pending **pend) in pending_matches_current() argument
228 *pend = p; in pending_matches_current()
244 struct fake_pending* pend) in pending_find_match() argument
251 &pend->addr, pend->addrlen) == 0) && in pending_find_match()
[all …]
/src/contrib/unbound/services/
H A Doutside_network.c86 static int randomize_and_send_udp(struct pending* pend, sldns_buffer* packet,
213 pick_outgoing_tcp(struct pending_tcp* pend, struct waiting_tcp* w, int s) in pick_outgoing_tcp() argument
217 pend->pi = NULL; in pick_outgoing_tcp()
237 pend->pi = pi; in pick_outgoing_tcp()
618 outnet_tcp_take_query_setup(int s, struct pending_tcp* pend,
625 pend->c->tcp_write_pkt = w->pkt;
626 pend->c->tcp_write_pkt_len = w->pkt_len;
627 pend->c->tcp_write_and_read = 1;
628 pend->c->tcp_write_byte_count = 0;
629 pend->c->tcp_is_reading = 0;
[all …]
/src/crypto/krb5/src/util/support/
H A Dpath.c69 const char *pathstart, *sep, *pend, *bstart; in k5_path_split() local
87 pend = sep; in k5_path_split()
88 while (pend > pathstart && IS_SEPARATOR(pend[-1])) in k5_path_split()
89 pend--; in k5_path_split()
91 if (pend == pathstart) in k5_path_split()
92 pend = sep + 1; in k5_path_split()
95 pend = pathstart; in k5_path_split()
99 parent = malloc(pend - path + 1); in k5_path_split()
102 memcpy(parent, path, pend - path); in k5_path_split()
103 parent[pend - path] = '\0'; in k5_path_split()
/src/contrib/mandoc/
H A Dmanpath.c40 manconf_parse(struct manconf *conf, const char *file, char *pend, char *pbeg) in manconf_parse() argument
47 if (pend != NULL && *pend != '\0') { in manconf_parse()
49 manpath_parseline(&conf->manpath, pend, 'M'); in manconf_parse()
51 pbeg = pend = NULL; in manconf_parse()
54 pbeg = pend = NULL; in manconf_parse()
57 pend = pbeg + 1; in manconf_parse()
59 } else if ((pend = strstr(pbeg, "::")) != NULL) { in manconf_parse()
61 *pend = '\0'; in manconf_parse()
62 pend += 2; in manconf_parse()
65 pend = NULL; in manconf_parse()
[all …]
H A Dmandoc_xr.c68 const char *pend; in mandoc_xr_add() local
90 pend = xr->hashkey + tsz; in mandoc_xr_add()
91 hv = ohash_interval(xr->hashkey, &pend); in mandoc_xr_add()
H A Dhtml.c469 print_encode(struct html *h, const char *p, const char *pend, int norecurse) in print_encode() argument
479 if (pend == NULL) in print_encode()
480 pend = strchr(p, '\0'); in print_encode()
485 while (p < pend) { in print_encode()
492 for (sz = strcspn(p, rejs); sz-- && p < pend; p++) in print_encode()
496 (p >= pend || *p == ' ' || *p == ASCII_NBRSP)) { in print_encode()
499 while (p < pend && (*p == ' ' || *p == ASCII_NBRSP)) in print_encode()
504 if (p >= pend) in print_encode()
/src/contrib/ntp/libntp/
H A Dxsbprintf.c34 char * const pend, /* buffer end (I) */ in xvsbprintf() argument
41 if (pbuf && (pend - pbuf > 0)) { in xvsbprintf()
42 size_t blen = (size_t)(pend - pbuf); in xvsbprintf()
61 char * const pend, /* buffer end (I) */ in xsbprintf() argument
70 rc = xvsbprintf(ppbuf, pend, pfmt, va); in xsbprintf()
/src/tools/tools/pirtool/
H A Dpirtool.c141 unsigned char *p, *pend; in find_pir_table() local
151 pend = base + PIR_SIZE; in find_pir_table()
152 for (p = base; p < pend; p += 16) { in find_pir_table()
168 pend = p + pir->size; in find_pir_table()
170 while (p < pend) in find_pir_table()
205 pir_entry_t *p, *pend; in dump_pir_table() local
247 p = pend = &pir->entry[0]; in dump_pir_table()
248 pend += num_slots; in dump_pir_table()
250 for (i = 0; p < pend; i++, p++) { in dump_pir_table()
/src/bin/pax/
H A Dpat_rep.c214 pt->pend = NULL; in pat_add()
304 if (!dflag && ((pt->pend != NULL) || (arcn->type == PAX_DIR))) { in pat_sel()
318 if (pt->pend != NULL) in pat_sel()
319 *pt->pend = '\0'; in pat_sel()
323 if (pt->pend != NULL) in pat_sel()
324 *pt->pend = '/'; in pat_sel()
325 pt->pend = NULL; in pat_sel()
332 if (pt->pend != NULL) { in pat_sel()
333 *pt->pend = '/'; in pat_sel()
334 pt->pend = NULL; in pat_sel()
[all …]
/src/lib/libusb/
H A Dlibusb10_desc.c101 struct libusb20_endpoint *pend; in libusb_get_config_descriptor() local
135 pend = pinf->endpoints; in libusb_get_config_descriptor()
137 nextra += N_ALIGN(pend->extra.len); in libusb_get_config_descriptor()
138 pend++; in libusb_get_config_descriptor()
148 pend = pinf->endpoints; in libusb_get_config_descriptor()
150 nextra += N_ALIGN(pend->extra.len); in libusb_get_config_descriptor()
151 pend++; in libusb_get_config_descriptor()
238 pend = &pinf->endpoints[k]; in libusb_get_config_descriptor()
240 endd->bLength = pend->desc.bLength; in libusb_get_config_descriptor()
241 endd->bDescriptorType = pend->desc.bDescriptorType; in libusb_get_config_descriptor()
[all …]
/src/lib/libdpv/
H A Ddprompt.c59 static char *pend = NULL; variable
298 if (pend == NULL && (pend = msg_pending) == NULL) { in dprompt_init()
299 if ((pend = getenv(ENV_MSG_PENDING)) != NULL) in dprompt_init()
300 pend_size = strlen(pend); in dprompt_init()
303 if ((pend = malloc(pend_size + 1)) == NULL) in dprompt_init()
306 snprintf(pend, pend_size + 1, DPV_PENDING_DEFAULT); in dprompt_init()
311 *(pend + pbar_size) = '\0'; in dprompt_init()
568 pend_lsize, "", pend, pend_rsize, ""); in dprompt_add_files()
761 free(pend); in dprompt_free()
762 pend = NULL; in dprompt_free()
/src/sys/dev/uart/
H A Duart_tty.c323 int c, err = 0, pend, sig, xc; in uart_tty_intr() local
328 pend = atomic_readandclear_32(&sc->sc_ttypend); in uart_tty_intr()
329 if (!(pend & SER_INT_MASK)) in uart_tty_intr()
335 if (pend & SER_INT_RXREADY) { in uart_tty_intr()
355 if (pend & SER_INT_BREAK) in uart_tty_intr()
358 if (pend & SER_INT_SIGCHG) { in uart_tty_intr()
359 sig = pend & SER_INT_SIGMASK; in uart_tty_intr()
366 if (pend & SER_INT_TXIDLE) in uart_tty_intr()
/src/contrib/ncurses/ncurses/tinfo/
H A Dcomp_parse.c114 char *pend, *qend; in check_collisions() local
128 for (pstart = n1; (pend = strchr(pstart, '|')); pstart = pend + 1) { in check_collisions()
130 if ((pend - pstart == qend - qstart) in check_collisions()
131 && memcmp(pstart, qstart, (size_t) (pend - pstart)) == 0) { in check_collisions()
134 (int) (pend - pstart), pstart); in check_collisions()
171 char *pstart, *qstart, *pend, *qend; in remove_collision() local
181 for (pstart = n1; (pend = name_ending(pstart)); pstart = next_name(pend)) { in remove_collision()
183 if ((pend - pstart == qend - qstart) in remove_collision()
184 && memcmp(pstart, qstart, (size_t) (pend - pstart)) == 0) { in remove_collision()
/src/sys/compat/linux/
H A Dlinux_mmap.c257 vm_pindex_t pstart, pend; in linux_madvise_dontneed() local
293 pend = OFF_TO_IDX(entry->offset) + in linux_madvise_dontneed()
296 pend -= atop(entry->end - end); in linux_madvise_dontneed()
316 vm_object_page_remove(object, pstart, pend, 0); in linux_madvise_dontneed()
333 vm_object_madvise(object, pstart, pend, MADV_DONTNEED); in linux_madvise_dontneed()
/src/usr.bin/find/
H A Dprintf.c164 const char *path, *pend; in do_printf() local
198 pend = strrchr(path, '/'); in do_printf()
199 if (pend == NULL) in do_printf()
202 fwrite(path, pend - path, 1, fout); in do_printf()
/src/stand/libsa/
H A Dzalloc.c287 void *pend = (char *)mp->mp_Base + mp->mp_Size; in zextendPool() local
295 if (base > pend) { in zextendPool()
296 mp->mp_Size += (char *)base - (char *)pend; in zextendPool()
297 mp->mp_Used += (char *)base - (char *)pend; in zextendPool()
/src/contrib/less/
H A Dlessecho.c68 static long lstrtol(char *s, char **pend, int radix) in lstrtol() argument
124 if (pend != NULL) in lstrtol()
129 *pend = s; in lstrtol()
/src/contrib/llvm-project/llvm/lib/Support/
H A Dregcomp.c203 sopno pend[NPAREN]; /* -> ) ([0] unused) */ member
338 p->pend[i] = 0; in llvm_regcomp()
461 p->pend[subno] = HERE(); in p_ere_exp()
462 assert(p->pend[subno] != 0); in p_ere_exp()
517 if (p->pend[backrefnum] == 0) { in p_ere_exp()
529 assert(OP(p->strip[p->pend[backrefnum]]) == ORPAREN); in p_ere_exp()
530 (void) dupl(p, p->pbegin[backrefnum]+1, p->pend[backrefnum]); in p_ere_exp()
702 p->pend[subno] = HERE(); in p_simp_re()
703 assert(p->pend[subno] != 0); in p_simp_re()
723 if (p->pend[i] != 0) { in p_simp_re()
[all …]
/src/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_taskq.c356 uint32_t pend; in taskq_cancel_id() local
364 rc = taskqueue_cancel(tq->tq_queue, &ent->tqent_task, &pend); in taskq_cancel_id()
369 &ent->tqent_timeout_task, &pend); in taskq_cancel_id()
375 if (pend) { in taskq_cancel_id()
391 return (pend ? 0 : ENOENT); in taskq_cancel_id()
/src/lib/libc/regex/
H A Dregcomp.c95 sopno pend[NPAREN]; /* -> ) ([0] unused) */ member
267 p->pend[i] = 0; in regcomp_internal()
421 p->pend[subno] = HERE(); in p_ere_exp()
422 assert(p->pend[subno] != 0); in p_ere_exp()
506 if (p->pend[i] != 0) { in p_ere_exp()
511 assert(OP(p->strip[p->pend[i]]) == ORPAREN); in p_ere_exp()
512 (void) dupl(p, p->pbegin[i]+1, p->pend[i]); in p_ere_exp()
903 p->pend[subno] = HERE(); in p_simp_re()
904 assert(p->pend[subno] != 0); in p_simp_re()
926 if (p->pend[i] != 0) { in p_simp_re()
[all …]
/src/contrib/nvi/regex/
H A Dregcomp.c72 sopno pend[NPAREN]; /* -> ) ([0] unused) */ member
231 p->pend[i] = 0; in regcomp()
361 p->pend[subno] = HERE(); in p_ere_exp()
362 assert(p->pend[subno] != 0); in p_ere_exp()
575 p->pend[subno] = HERE(); in p_simp_re()
576 assert(p->pend[subno] != 0); in p_simp_re()
596 if (p->pend[i] != 0) { in p_simp_re()
601 assert(p->strip[p->pend[i]] == ORPAREN); in p_simp_re()
602 (void) dupl(p, p->pbegin[i]+1, p->pend[i]); in p_simp_re()
1418 if (p->pend[i] >= pos) { in doinsert()
[all …]
/src/sys/arm/allwinner/
H A Da31_dmac.c321 uint64_t pend, mask; in a31dmac_intr() local
335 pend = pend0 | ((uint64_t)pend1 << 32); in a31dmac_intr()
337 while ((bit = ffsll(pend & DMA_PKG_IRQ_MASK)) != 0) { in a31dmac_intr()
339 pend &= ~mask; in a31dmac_intr()
/src/crypto/openssl/crypto/evp/
H A Dbio_enc.c305 int pend; in enc_ctrl() local
341 pend = ctx->buf_len - ctx->buf_off; in enc_ctrl()
348 if (i < 0 || (ctx->buf_len - ctx->buf_off) == pend) in enc_ctrl()
/src/contrib/llvm-project/libunwind/src/
H A DAddressSpace.hpp227 const uint8_t *pend = (uint8_t *)end; in getULEB128() local
233 if (p == pend) in getULEB128()
252 const uint8_t *pend = (uint8_t *)end; in getSLEB128() local
257 if (p == pend) in getSLEB128()
/src/sys/fs/cd9660/
H A Dcd9660_rrip.c460 ISO_SUSP_HEADER *pend; in cd9660_rrip_loop() local
483 pend = (ISO_SUSP_HEADER *)((char *)isodir + isonum_711(isodir->length)); in cd9660_rrip_loop()
491 while (pend >= phead + 1) { in cd9660_rrip_loop()
533 pend = (ISO_SUSP_HEADER *) ((char *)phead + ana->iso_ce_len); in cd9660_rrip_loop()

12