Home
last modified time | relevance | path

Searched refs:rpool (Results 1 – 25 of 32) sorted by relevance

12

/freebsd-12.1/contrib/sendmail/libsm/
H A Drpool.c61 SM_RPOOL_T *rpool; in sm_rpool_allocblock_x()
85 SM_RPOOL_T *rpool; in sm_rpool_allocblock()
187 SM_ASSERT(rpool->sm_bigobjectsize <= rpool->sm_poolsize);
188 ptr = sm_rpool_allocblock_x(rpool, rpool->sm_poolsize);
190 rpool->sm_poolavail = rpool->sm_poolsize - size;
283 SM_ASSERT(rpool->sm_bigobjectsize <= rpool->sm_poolsize);
284 ptr = sm_rpool_allocblock(rpool, rpool->sm_poolsize);
288 rpool->sm_poolavail = rpool->sm_poolsize - size;
341 return rpool;
445 if (rpool->sm_nbigblocks > 0 || rpool->sm_npools > 1)
[all …]
H A Dt-rpool.c36 SM_RPOOL_T *rpool; local
43 rpool = sm_rpool_new_x(NULL);
44 SM_TEST(rpool != NULL);
45 att = sm_rpool_attach_x(rpool, rfree, "attachment #1");
51 a[i] = sm_rpool_malloc_x(rpool, sz);
55 att = sm_rpool_attach_x(rpool, rfree, "attachment #2");
56 (void) sm_rpool_attach_x(rpool, rfree, "attachment #3");
64 sm_rpool_free(rpool);
H A Dfopen.c107 sm_io_open(type, timeout, info, flags, rpool) in sm_io_open() argument
112 const void *rpool;
148 if ((*fp->f_open)(fp, info, flags, rpool) < 0)
160 if (rpool != NULL)
161 sm_rpool_attach_x(rpool, sm_io_fclose, fp);
221 sm_io_reopen(type, timeout, info, flags, rpool, fp) in sm_io_reopen() argument
226 const void *rpool;
288 ret = (*fp2->f_open)(fp2, info, flags, rpool);
312 if (rpool != NULL)
313 sm_rpool_attach_x(rpool, sm_io_close, fp2);
H A Dldap.c522 sm_ldap_add_recurse(top, item, type, rpool) in sm_ldap_add_recurse() argument
526 SM_RPOOL_T *rpool;
567 (*top)->lrl_data = sm_rpool_malloc_x(rpool,
641 SM_RPOOL_T *rpool;
718 rpool);
872 *result = sm_rpool_strdup_x(rpool,
888 *result = sm_rpool_malloc_x(rpool,
908 *result = sm_rpool_strdup_x(rpool,
924 tmp = sm_rpool_malloc_x(rpool,
966 rpool) == NULL)
[all …]
H A Dstdio.c60 sm_stdopen(fp, info, flags, rpool) in sm_stdopen() argument
64 const void *rpool;
404 sm_stdfdopen(fp, info, flags, rpool) in sm_stdfdopen() argument
408 const void *rpool;
H A Dstrio.c217 sm_stropen(fp, info, flags, rpool) in sm_stropen() argument
221 const void *rpool;
226 s = sm_rpool_malloc_x(rpool, sizeof(SM_STR_OBJ_T));
234 s->strio_rpool = rpool;
H A Dsyslogio.c47 sm_syslogopen(fp, info, flags, rpool)
51 const void *rpool; variable
H A Dsmstdio.c50 sm_stdioopen(fp, info, flags, rpool) in sm_stdioopen() argument
54 const void *rpool;
H A DMakefile.m418 smcheck(`t-rpool', `compile-run')
/freebsd-12.1/sys/netpfil/pf/
H A Dpf_lb.c313 struct pf_pool *rpool = &r->rpool; in pf_map_addr() local
460 &rpool->tblidx, &rpool->counter, af)) in pf_map_addr()
464 &rpool->tblidx, &rpool->counter, af)) in pf_map_addr()
471 rpool->cur = TAILQ_FIRST(&rpool->list); in pf_map_addr()
473 rpool->cur = TAILQ_NEXT(rpool->cur, entries); in pf_map_addr()
475 rpool->tblidx = -1; in pf_map_addr()
477 &rpool->tblidx, &rpool->counter, af)) { in pf_map_addr()
484 rpool->tblidx = -1; in pf_map_addr()
486 &rpool->tblidx, &rpool->counter, af)) { in pf_map_addr()
581 r->rpool.proxy_port[0], r->rpool.proxy_port[1])); in pf_get_translation()
[all …]
/freebsd-12.1/contrib/sendmail/include/sm/
H A Drpool.h146 # define sm_rpool_malloc_x(rpool, size) \ argument
147 sm_rpool_malloc_tagged_x(rpool, size, __FILE__, __LINE__, SmHeapGroup)
155 # define sm_rpool_malloc(rpool, size) \ argument
156 sm_rpool_malloc_tagged(rpool, size, __FILE__, __LINE__, SmHeapGroup)
169 extern char *sm_rpool_strdup_x __P((SM_RPOOL_T *rpool, const char *s));
171 # define sm_rpool_strdup_x(rpool, str) \ argument
172 strcpy(sm_rpool_malloc_x(rpool, strlen(str) + 1), str)
/freebsd-12.1/contrib/sendmail/src/
H A Dsasl.c161 intersect(s1, s2, rpool) in intersect() argument
163 SM_RPOOL_T *rpool;
173 res = (char *) sm_rpool_malloc(rpool, rl + 1);
H A Denvelope.c71 newenvelope(e, parent, rpool) in newenvelope() argument
74 SM_RPOOL_T *rpool;
94 clearenvelope(e, true, rpool);
114 e->e_sessid = sm_rpool_strdup_x(rpool,
126 e->e_quarmsg = sm_rpool_strdup_x(rpool,
667 clearenvelope(e, fullclear, rpool) in clearenvelope() argument
670 SM_RPOOL_T *rpool;
716 *p = sm_rpool_strdup_x(rpool, *p);
725 e->e_rpool = rpool;
726 e->e_macro.mac_rpool = rpool;
[all …]
H A Dudb.c568 udbsender(sender, rpool) in udbsender() argument
570 SM_RPOOL_T *rpool;
572 return udbmatch(sender, "mailname", rpool);
592 udbmatch(user, field, rpool) in udbmatch() argument
595 SM_RPOOL_T *rpool;
664 p = sm_rpool_malloc_x(rpool, info.size + 1);
685 p = sm_rpool_malloc_x(rpool, info.size + 1);
763 p = sm_rpool_malloc_x(rpool, i);
806 p = sm_rpool_malloc_x(rpool, i);
H A Dutil.c60 addquotes(s, rpool) in addquotes() argument
62 SM_RPOOL_T *rpool;
79 q = r = sm_rpool_malloc_x(rpool, len + 3);
497 copyplist(list, copycont, rpool) in copyplist() argument
500 SM_RPOOL_T *rpool;
510 newvp = (char **) sm_rpool_malloc_x(rpool, (vp - list) * sizeof(*vp));
516 *vp = sm_rpool_strdup_x(rpool, *vp);
537 copyqueue(addr, rpool) in copyqueue() argument
539 SM_RPOOL_T *rpool;
549 newaddr = (ADDRESS *) sm_rpool_malloc_x(rpool,
H A Dsfsasl.c102 sasl_open(fp, info, flags, rpool) in sasl_open() argument
106 const void *rpool;
493 tls_open(fp, info, flags, rpool) in tls_open() argument
497 const void *rpool;
H A Dusersmtp.c40 #define ENHSCN_RPOOL(e, d, rpool) \ argument
41 ((e) == NULL ? (d) : sm_rpool_strdup_x(rpool, e))
325 str_union(s1, s2, rpool) in str_union() argument
327 SM_RPOOL_T *rpool;
347 res = (char *) sm_rpool_malloc(rpool, rl + 2);
720 readauth(filename, safe, sai, rpool) in readauth() argument
724 SM_RPOOL_T *rpool;
808 (*sai)[lc] = sm_rpool_strdup_x(rpool, buf);
1491 removemech(rem, list, rpool) in removemech() argument
1494 SM_RPOOL_T *rpool;
[all …]
H A Dmci.c488 mci_new(rpool) in mci_new() argument
489 SM_RPOOL_T *rpool; in mci_new()
493 if (rpool == NULL)
496 mci = (MCI *) sm_rpool_malloc_x(rpool, sizeof(*mci));
H A Dqueue.c1890 SM_RPOOL_T *rpool; local
2021 rpool = sm_rpool_new_x(NULL);
2298 sm_rpool_free(rpool);
2304 rpool = sm_rpool_new_x(NULL);
2381 rpool = sm_rpool_new_x(NULL);
3564 SM_RPOOL_T *rpool; local
3655 rpool = sm_rpool_new_x(NULL);
3693 sm_rpool_free(rpool);
3714 sm_rpool_free(rpool);
3857 SM_RPOOL_T *rpool; local
[all …]
/freebsd-12.1/sbin/pfctl/
H A Dpfctl_optimize.c140 PF_RULE_FIELD(rpool, BREAK),
294 if (TAILQ_FIRST(&r->rpool.list) != NULL) { in pfctl_optimize_ruleset()
295 TAILQ_INIT(&por->por_rule.rpool.list); in pfctl_optimize_ruleset()
296 pfctl_move_pool(&r->rpool, &por->por_rule.rpool); in pfctl_optimize_ruleset()
298 bzero(&por->por_rule.rpool, in pfctl_optimize_ruleset()
299 sizeof(por->por_rule.rpool)); in pfctl_optimize_ruleset()
329 TAILQ_INIT(&r->rpool.list); in pfctl_optimize_ruleset()
330 pfctl_move_pool(&por->por_rule.rpool, &r->rpool); in pfctl_optimize_ruleset()
919 if (TAILQ_EMPTY(&por->por_rule.rpool.list)) in load_feedback_profile()
920 memset(&por->por_rule.rpool, 0, in load_feedback_profile()
[all …]
H A Dparse.y4133 r.rpool.proxy_port[1] =
4140 r.rpool.proxy_port[1] =
4144 r.rpool.proxy_port[1] =
4148 r.rpool.proxy_port[0] =
4150 r.rpool.proxy_port[1] =
4153 r.rpool.proxy_port[1] =
4160 r.rpool.opts = $10.type;
4194 r.rpool.opts |= $10.opts;
4211 r.rpool.proxy_port[0] = 0;
4212 r.rpool.proxy_port[1] = 0;
[all …]
H A Dpfctl.c959 if (pfctl_get_pool(dev, &pr.rule.rpool, in pfctl_show_rules()
976 pfctl_clear_pool(&pr.rule.rpool); in pfctl_show_rules()
991 if (pfctl_get_pool(dev, &pr.rule.rpool, in pfctl_show_rules()
1047 pfctl_clear_pool(&pr.rule.rpool); in pfctl_show_rules()
1080 if (pfctl_get_pool(dev, &pr.rule.rpool, nr, in pfctl_show_nat()
1091 pfctl_clear_pool(&pr.rule.rpool); in pfctl_show_nat()
1328 TAILQ_INIT(&rule->rpool.list); in pfctl_add_rule()
1329 pfctl_move_pool(&r->rpool, &rule->rpool); in pfctl_add_rule()
1455 if (pfctl_add_pool(pf, &r->rpool, r->af)) in pfctl_load_rule()
1473 pfctl_clear_pool(&r->rpool); in pfctl_load_rule()
/freebsd-12.1/contrib/pf/ftp-proxy/
H A Dfilter.c103 pfr.rule.rpool.proxy_port[0] = nat_range_low; in add_nat()
104 pfr.rule.rpool.proxy_port[1] = nat_range_high; in add_nat()
136 pfr.rule.rpool.proxy_port[0] = rdr_port; in add_rdr()
/freebsd-12.1/contrib/pf/tftp-proxy/
H A Dfilter.c107 pfr.rule.rpool.proxy_port[0] = nat_range_low; in add_nat()
108 pfr.rule.rpool.proxy_port[1] = nat_range_high; in add_nat()
140 pfr.rule.rpool.proxy_port[0] = rdr_port; in add_rdr()
/freebsd-12.1/lib/libsm/
H A DMakefile25 SRCS+= assert.c debug.c errstring.c exc.c heap.c match.c rpool.c \

12