/freebsd-9.3-release/contrib/sendmail/libsm/ |
H A D | rpool.c | 11 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 D | t-rpool.c | 11 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 D | fopen.c | 94 ** 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 D | syslogio.c | 18 # include <sm/rpool.h> 40 ** rpool -- ignored 47 sm_syslogopen(fp, info, flags, rpool) 51 const void *rpool;
|
H A D | strio.c | 22 #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 D | ldap.c | 503 ** rpool -- memory pool for storage 522 sm_ldap_add_recurse(top, item, type, rpool) 526 SM_RPOOL_T *rpool; 547 *top = sm_rpool_malloc_x(rpool, sizeof **top); 567 (*top)->lrl_data = sm_rpool_malloc_x(rpool, 613 newe = sm_rpool_malloc_x(rpool, sizeof *newe); 622 newe->lr_search = sm_rpool_strdup_x(rpool, item); 635 sm_ldap_results(lmap, msgid, flags, delim, rpool, result, 641 SM_RPOOL_T *rpool; 718 rpool); [all...] |
H A D | stdio.c | 50 ** 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 D | smstdio.c | 41 ** rpool -- ignored 50 sm_stdioopen(fp, info, flags, rpool) 54 const void *rpool;
|
/freebsd-9.3-release/sys/contrib/pf/net/ |
H A D | pf_lb.c | 247 if (r->rpool.cur != NULL) 248 xdst = &r->rpool.cur->addr; 409 switch (r->rpool.opts & PF_POOL_TYPEMASK) { 430 struct pf_pool *rpool = &r->rpool; local 431 struct pf_addr *raddr = &rpool->cur->addr.v.a.addr; 432 struct pf_addr *rmask = &rpool->cur->addr.v.a.mask; 433 struct pf_pooladdr *acur = rpool->cur; 436 if (*sn == NULL && r->rpool.opts & PF_POOL_STICKYADDR && 437 (r->rpool [all...] |
/freebsd-9.3-release/contrib/sendmail/include/sm/ |
H A D | rpool.h | 9 * $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 D | ldap.h | 16 # include <sm/rpool.h>
|
/freebsd-9.3-release/contrib/sendmail/src/ |
H A D | sasl.c | 40 ** 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 D | envelope.c | 61 ** rpool -- either NULL, or a pointer to a resource pool 73 newenvelope(e, parent, rpool) 76 SM_RPOOL_T *rpool; 96 clearenvelope(e, true, rpool); 116 e->e_sessid = sm_rpool_strdup_x(rpool, 128 e->e_quarmsg = sm_rpool_strdup_x(rpool, 642 ** rpool -- either NULL, or a pointer to a resource pool 655 clearenvelope(e, fullclear, rpool) 658 SM_RPOOL_T *rpool; 704 *p = sm_rpool_strdup_x(rpool, * [all...] |
H A D | udb.c | 556 ** rpool -- resource pool from which to allocate result 560 ** database. Storage allocated from rpool. 568 udbsender(sender, rpool) 570 SM_RPOOL_T *rpool; 572 return udbmatch(sender, "mailname", rpool); 580 ** rpool -- resource pool from which to allocate result 584 ** database. Storage allocated from rpool. 592 udbmatch(user, field, rpool) 595 SM_RPOOL_T *rpool; 664 p = sm_rpool_malloc_x(rpool, inf [all...] |
H A D | sfsasl.c | 91 ** rpool -- ignored 101 sasl_open(fp, info, flags, rpool) 105 const void *rpool; 482 ** rpool -- ignored 492 tls_open(fp, info, flags, rpool) 496 const void *rpool;
|
H A D | util.c | 53 ** 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 D | usersmtp.c | 40 #define ENHSCN_RPOOL(e, d, rpool) \ 41 ((e) == NULL ? (d) : sm_rpool_strdup_x(rpool, e)) 316 ** rpool -- resource pool from which result is allocated. 323 str_union(s1, s2, rpool) 325 SM_RPOOL_T *rpool; 345 res = (char *) sm_rpool_malloc(rpool, rl + 2); 673 ** it can't be in an rpool unless we use the same memory 674 ** management mechanism (with same rpool!) for Cyrus SASL. 701 ** rpool -- resource pool for sai. 718 readauth(filename, safe, sai, rpool) [all...] |
H A D | bf.c | 90 ** rpool -- ignored (currently) 98 sm_bfopen(fp, info, flags, rpool) 102 const void *rpool;
|
H A D | mci.c | 480 ** rpool -- if non-NULL: allocate from that rpool. 487 mci_new(rpool) 488 SM_RPOOL_T *rpool; 492 if (rpool == NULL) 495 mci = (MCI *) sm_rpool_malloc_x(rpool, sizeof(*mci));
|
/freebsd-9.3-release/lib/libsm/ |
H A D | Makefile | 24 SRCS+= assert.c debug.c errstring.c exc.c heap.c match.c rpool.c \
|
/freebsd-9.3-release/contrib/pf/pfctl/ |
H A D | pfctl_optimize.c | 140 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 D | parse.y | 2174 r.rpool.opts = $5.pool_opts; 2176 memcpy(&r.rpool.key, $5.key, 2187 if ((r.rpool.opts & PF_POOL_TYPEMASK) == 2191 r.rpool.opts |= PF_POOL_ROUNDROBIN; 2192 if ((r.rpool.opts & PF_POOL_TYPEMASK) != 2197 if ((r.rpool.opts & PF_POOL_TYPEMASK) != 2204 if ((r.rpool.opts & PF_POOL_TYPEMASK) != 2206 yyerror("r.rpool.opts must " 3925 r.rpool.proxy_port[0] = ntohs($9->rport.a); 3931 r.rpool [all...] |
H A D | pfctl.c | 872 if (pfctl_get_pool(dev, &pr.rule.rpool, 889 pfctl_clear_pool(&pr.rule.rpool); 904 if (pfctl_get_pool(dev, &pr.rule.rpool, 960 pfctl_clear_pool(&pr.rule.rpool); 993 if (pfctl_get_pool(dev, &pr.rule.rpool, nr, 1004 pfctl_clear_pool(&pr.rule.rpool); 1227 TAILQ_INIT(&rule->rpool.list); 1228 pfctl_move_pool(&r->rpool, &rule->rpool); 1354 if (pfctl_add_pool(pf, &r->rpool, [all...] |
/freebsd-9.3-release/contrib/pf/ftp-proxy/ |
H A D | filter.c | 103 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-9.3-release/contrib/pf/tftp-proxy/ |
H A D | filter.c | 107 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;
|