Searched refs:rpool (Results 1 - 25 of 34) sorted by relevance

12

/freebsd-11-stable/contrib/sendmail/libsm/
H A Drpool.c11 SM_RCSID("@(#)$Id: rpool.c,v 1.29 2013-11-22 20:51:43 ca Exp $")
15 ** For documentation, see rpool.html
20 #include <sm/rpool.h>
46 ** SM_RPOOL_ALLOCBLOCK_X -- allocate a new block for an rpool.
49 ** rpool -- rpool to which the block should be added.
60 sm_rpool_allocblock_x(rpool, size)
61 SM_RPOOL_T *rpool;
67 p->sm_pnext = rpool->sm_pools;
68 rpool
309 SM_RPOOL_T *rpool; local
[all...]
H A Dt-rpool.c11 SM_IDSTR(id, "@(#)$Id: t-rpool.c,v 1.19 2013-11-22 20:51:43 ca Exp $")
15 #include <sm/rpool.h>
36 SM_RPOOL_T *rpool; local
41 sm_test_begin(argc, argv, "test rpool");
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, rfre
[all...]
H A Dfopen.c94 ** rpool -- pointer to rpool to be used for this open
107 sm_io_open(type, timeout, info, flags, rpool)
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);
210 ** rpool -- rpool file to be associated with
221 sm_io_reopen(type, timeout, info, flags, rpool, f
[all...]
H A Dsyslogio.c18 # include <sm/rpool.h>
40 ** rpool -- ignored
47 sm_syslogopen(fp, info, flags, rpool)
51 const void *rpool;
H A Dstrio.c22 #include <sm/rpool.h>
209 ** rpool -- resource pool to use memory from (if applicable)
217 sm_stropen(fp, info, flags, rpool)
221 const void *rpool;
226 s = sm_rpool_malloc_x(rpool, sizeof(SM_STR_OBJ_T));
234 s->strio_rpool = rpool;
H A Dstdio.c50 ** rpool -- ignored
60 sm_stdopen(fp, info, flags, rpool)
64 const void *rpool;
395 ** rpool -- ignored
404 sm_stdfdopen(fp, info, flags, rpool)
408 const void *rpool;
H A Dldap.c718 ** rpool -- memory pool for storage
737 sm_ldap_add_recurse(top, item, type, rpool)
741 SM_RPOOL_T *rpool;
762 *top = sm_rpool_malloc_x(rpool, sizeof **top);
782 (*top)->lrl_data = sm_rpool_malloc_x(rpool,
828 newe = sm_rpool_malloc_x(rpool, sizeof *newe);
837 newe->lr_search = sm_rpool_strdup_x(rpool, item);
850 sm_ldap_results(lmap, msgid, flags, delim, rpool, result,
856 SM_RPOOL_T *rpool;
933 rpool);
[all...]
H A Dsmstdio.c41 ** rpool -- ignored
50 sm_stdioopen(fp, info, flags, rpool)
54 const void *rpool;
H A DMakefile.m49 define(`bldSOURCES', ` assert.c debug.c errstring.c exc.c heap.c match.c rpool.c strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c wbuf.c wsetup.c string.c stringf.c xtrap.c strto.c test.c strcasecmp.c strrevcmp.c signal.c clock.c config.c shm.c sem.c mbdb.c strexit.c cf.c ldap.c niprop.c mpeix.c memstat.c util.c inet6_ntop.c notify.c ')
18 smcheck(`t-rpool', `compile-run')
/freebsd-11-stable/contrib/sendmail/include/sm/
H A Drpool.h9 * $Id: rpool.h,v 1.17 2013-11-22 20:51:31 ca Exp $
14 ** See libsm/rpool.html for documentation.
28 ** where 'poolsize' is the value of rpool->sm_poolsize at the time
65 /* Points to SmRpoolMagic, or is NULL if rpool is freed. */
69 ** If this rpool object has no parent, then sm_parentlink
71 ** when this rpool is freed, so that it isn't freed a
146 # define sm_rpool_malloc_x(rpool, size) \
147 sm_rpool_malloc_tagged_x(rpool, size, __FILE__, __LINE__, SmHeapGroup)
155 # define sm_rpool_malloc(rpool, size) \
156 sm_rpool_malloc_tagged(rpool, siz
[all...]
H A Dldap.h16 # include <sm/rpool.h>
/freebsd-11-stable/sys/netpfil/pf/
H A Dpf_lb.c143 if (r->rpool.cur != NULL)
144 xdst = &r->rpool.cur->addr;
291 switch (r->rpool.opts & PF_POOL_TYPEMASK) {
311 struct pf_pool *rpool = &r->rpool; local
316 if (*sn == NULL && r->rpool.opts & PF_POOL_STICKYADDR &&
317 (r->rpool.opts & PF_POOL_TYPEMASK) != PF_POOL_NONE)
344 if (rpool->cur->addr.type == PF_ADDR_NOROUTE)
346 if (rpool->cur->addr.type == PF_ADDR_DYNIFTL) {
350 if (rpool
[all...]
/freebsd-11-stable/contrib/sendmail/src/
H A Dsasl.c40 ** We can't use an rpool for Cyrus-SASL memory management routines,
42 ** allocate/deallocate a buffer each time. Since rpool
154 ** rpool -- resource pool from which result is allocated.
161 intersect(s1, s2, rpool)
163 SM_RPOOL_T *rpool;
173 res = (char *) sm_rpool_malloc(rpool, rl + 1);
H A Denvelope.c59 ** rpool -- either NULL, or a pointer to a resource pool
71 newenvelope(e, parent, rpool)
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 ** rpool -- either NULL, or a pointer to a resource pool
680 clearenvelope(e, fullclear, rpool)
683 SM_RPOOL_T *rpool;
729 *p = sm_rpool_strdup_x(rpool, *
[all...]
H A Dudb.c560 ** rpool -- resource pool from which to allocate result
564 ** database. Storage allocated from rpool.
572 udbsender(sender, rpool)
574 SM_RPOOL_T *rpool;
576 return udbmatch(sender, "mailname", rpool);
584 ** rpool -- resource pool from which to allocate result
588 ** database. Storage allocated from rpool.
596 udbmatch(user, field, rpool)
599 SM_RPOOL_T *rpool;
668 p = sm_rpool_malloc_x(rpool, inf
[all...]
H A Dsfsasl.c92 ** rpool -- ignored
102 sasl_open(fp, info, flags, rpool)
106 const void *rpool;
484 ** rpool -- ignored
494 tls_open(fp, info, flags, rpool)
498 const void *rpool;
H A Dutil.c53 ** rpool -- resource pool from which to allocate result
60 addquotes(s, rpool)
62 SM_RPOOL_T *rpool;
79 q = r = sm_rpool_malloc_x(rpool, len + 3);
489 ** rpool -- resource pool from which to allocate storage,
497 copyplist(list, copycont, rpool)
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);
530 ** rpool
[all...]
H A Dusersmtp.c40 #define ENHSCN_RPOOL(e, d, rpool) \
41 ((e) == NULL ? (d) : sm_rpool_strdup_x(rpool, e))
329 ** rpool -- resource pool from which result is allocated.
336 str_union(s1, s2, rpool)
338 SM_RPOOL_T *rpool;
358 res = (char *) sm_rpool_malloc(rpool, rl + 2);
690 ** it can't be in an rpool unless we use the same memory
691 ** management mechanism (with same rpool!) for Cyrus SASL.
718 ** rpool -- resource pool for sai.
735 readauth(filename, safe, sai, rpool)
[all...]
H A Dbf.c90 ** rpool -- ignored (currently)
98 sm_bfopen(fp, info, flags, rpool)
102 const void *rpool;
/freebsd-11-stable/lib/libsm/
H A DMakefile25 SRCS+= assert.c debug.c errstring.c exc.c heap.c match.c rpool.c \
/freebsd-11-stable/sbin/pfctl/
H A Dpfctl_optimize.c140 PF_RULE_FIELD(rpool, BREAK),
293 if (TAILQ_FIRST(&r->rpool.list) != NULL) {
294 TAILQ_INIT(&por->por_rule.rpool.list);
295 pfctl_move_pool(&r->rpool, &por->por_rule.rpool);
297 bzero(&por->por_rule.rpool,
298 sizeof(por->por_rule.rpool));
328 TAILQ_INIT(&r->rpool.list);
329 pfctl_move_pool(&por->por_rule.rpool, &r->rpool);
[all...]
H A Dparse.y2345 r.rpool.opts = $5.pool_opts;
2347 memcpy(&r.rpool.key, $5.key,
2358 if ((r.rpool.opts & PF_POOL_TYPEMASK) ==
2362 r.rpool.opts |= PF_POOL_ROUNDROBIN;
2363 if ((r.rpool.opts & PF_POOL_TYPEMASK) !=
2368 if ((r.rpool.opts & PF_POOL_TYPEMASK) !=
2375 if ((r.rpool.opts & PF_POOL_TYPEMASK) !=
2377 yyerror("r.rpool.opts must "
4121 r.rpool.proxy_port[0] = ntohs($9->rport.a);
4127 r.rpool
[all...]
H A Dpfctl.c957 if (pfctl_get_pool(dev, &pr.rule.rpool,
974 pfctl_clear_pool(&pr.rule.rpool);
989 if (pfctl_get_pool(dev, &pr.rule.rpool,
1045 pfctl_clear_pool(&pr.rule.rpool);
1078 if (pfctl_get_pool(dev, &pr.rule.rpool, nr,
1089 pfctl_clear_pool(&pr.rule.rpool);
1326 TAILQ_INIT(&rule->rpool.list);
1327 pfctl_move_pool(&r->rpool, &rule->rpool);
1453 if (pfctl_add_pool(pf, &r->rpool,
[all...]
/freebsd-11-stable/contrib/pf/ftp-proxy/
H A Dfilter.c103 pfr.rule.rpool.proxy_port[0] = nat_range_low;
104 pfr.rule.rpool.proxy_port[1] = nat_range_high;
136 pfr.rule.rpool.proxy_port[0] = rdr_port;
/freebsd-11-stable/contrib/pf/tftp-proxy/
H A Dfilter.c107 pfr.rule.rpool.proxy_port[0] = nat_range_low;
108 pfr.rule.rpool.proxy_port[1] = nat_range_high;
140 pfr.rule.rpool.proxy_port[0] = rdr_port;

Completed in 237 milliseconds

12