Searched refs:mem (Results 1 - 25 of 268) sorted by relevance

1234567891011

/bind-9.11.3/util/
H A Dmodels.c10 * Provide a simple memory management model for lib/isc/mem.c
20 void *isc__mem_get(void *mem, unsigned int size FLARG) { argument
21 if (!mem) __coverity_panic__();
28 void isc__mem_put(void *mem, void *ptr, unsigned int size FLARG) { argument
29 if (!mem) __coverity_panic__();
33 void isc__mem_putanddetach(void *mem, void *ptr, unsigned int size FLARG) { argument
34 if (!mem) __coverity_panic__();
38 void *isc__mem_allocate(void *mem, unsigned int size FLARG) { argument
39 if (!mem) __coverity_panic__();
48 void * isc__mem_reallocate(void *mem, voi argument
65 isc__mem_free(void *mem, void *ptr FLARG) argument
72 isc__mem_strdup(void *mem, char *s FLARG) argument
90 isc__mempool_put(void *mem, void *ptr FLARG) argument
[all...]
/bind-9.11.3/bin/tests/
H A Dlwresconf_test.c15 #include <isc/mem.h>
41 mem_free(void *arg, void *mem, size_t size) { argument
42 isc_mem_put(arg, mem, size);
52 isc_mem_t *mem; local
61 mem = NULL;
62 result = isc_mem_create(0, 0, &mem);
68 ret = lwres_context_create(&ctx, mem, mem_alloc, mem_free, 0);
85 isc_mem_stats(mem, stdout);
86 isc_mem_destroy(&mem);
H A Dlwres_test.c17 #include <isc/mem.h>
231 mem_free(void *arg, void *mem, size_t size) { argument
232 isc_mem_put(arg, mem, size);
240 isc_mem_t *mem; local
248 mem = NULL;
249 result = isc_mem_create(0, 0, &mem);
255 ret = lwres_context_create(&ctx, mem, mem_alloc, mem_free, 0);
291 isc_mem_stats(mem, stdout);
292 isc_mem_destroy(&mem);
/bind-9.11.3/lib/isc/include/isc/
H A Dpool.h32 #include <isc/mem.h>
H A Drandom.h17 #include <isc/mem.h>
/bind-9.11.3/lib/dns/
H A Dpeer.c15 #include <isc/mem.h>
52 dns_peerlist_new(isc_mem_t *mem, dns_peerlist_t **list) { argument
57 l = isc_mem_get(mem, sizeof(*l));
62 l->mem = mem;
124 isc_mem_put(l->mem, l, sizeof(*l));
194 dns_peer_new(isc_mem_t *mem, isc_netaddr_t *addr, dns_peer_t **peerptr) { argument
209 return (dns_peer_newprefix(mem, addr, prefixlen, peerptr));
213 dns_peer_newprefix(isc_mem_t *mem, isc_netaddr_t *addr, unsigned int prefixlen, argument
220 peer = isc_mem_get(mem, sizeo
283 isc_mem_t *mem; local
[all...]
H A Ddiff.c19 #include <isc/mem.h>
595 char *mem = NULL; local
601 mem = isc_mem_get(diff->mctx, size);
602 if (mem == NULL)
624 isc_buffer_init(&buf, mem, size);
629 isc_mem_put(diff->mctx, mem, size);
631 mem = isc_mem_get(diff->mctx, size);
632 if (mem == NULL) {
666 if (mem != NULL)
667 isc_mem_put(diff->mctx, mem, siz
[all...]
/bind-9.11.3/lib/lwres/
H A Dcontext.c51 location mem.
242 /*% Frees len bytes of space starting at location mem. */
244 lwres_context_freemem(lwres_context_t *ctx, void *mem, size_t len) { argument
245 REQUIRE(mem != NULL);
248 CTXFREE(mem, len);
261 void *mem; local
265 mem = malloc(len);
266 if (mem == NULL)
269 memset(mem, 0xe5, len);
271 return (mem);
275 lwres_free(void *arg, void *mem, size_t len) argument
[all...]
H A Dgetrrset.c124 void *mem = sane_malloc(len); local
125 if (mem != NULL)
126 memset(mem, 0, len);
127 return (mem);
/bind-9.11.3/lib/lwres/include/lwres/
H A Dcontext.h30 typedef void (*lwres_free_t)(void *arg, void *mem, size_t length);
101 lwres_context_freemem(lwres_context_t *ctx, void *mem, size_t len);
/bind-9.11.3/conftools/perllib/dnsconf/
H A DDNSConf.i31 isc_mem_t *mem;
57 if (ctx.mem != NULL) {
62 if (isc_mem_create(0, 0, &ctx.mem) != ISC_R_SUCCESS)
65 if (isc_log_create(ctx.mem, &ctx.log, &ctx.logcfg) != ISC_R_SUCCESS)
105 isc_mem_destroy(&ctx.mem);
147 if (dns_c_parse_namedconf(filename, ctx.mem, &conf->confctx, NULL)
169 if (dns_c_ctx_new(ctx.mem, &cfg->confctx) != ISC_R_SUCCESS)
/bind-9.11.3/unit/atf-src/atf-c++/detail/
H A Dauto_array_test.cpp66 void* mem = ::operator new(size); local
67 std::cout << "Allocated 'test_array' object " << mem << "\n"; local
68 return mem;
71 void operator delete(void* mem ATF_DEFS_ATTRIBUTE_UNUSED)
76 void operator delete[](void* mem) argument
78 std::cout << "Releasing 'test_array' object " << mem << "\n"; local
82 ::operator delete(mem);
/bind-9.11.3/unit/atf-src/tools/
H A Dauto_array_test.cpp67 void* mem = ::operator new(size); local
68 std::cout << "Allocated 'test_array' object " << mem << "\n"; local
69 return mem;
72 void operator delete(void* mem ATF_DEFS_ATTRIBUTE_UNUSED)
77 void operator delete[](void* mem) argument
79 std::cout << "Releasing 'test_array' object " << mem << "\n"; local
83 ::operator delete(mem);
/bind-9.11.3/lib/isc/tests/
H A Disctest.h19 #include <isc/mem.h>
H A Dheap_test.c19 #include <isc/mem.h>
H A Dradix_test.c11 #include <isc/mem.h>
/bind-9.11.3/bin/tests/system/dyndb/driver/
H A Dutil.h10 #include <isc/mem.h>
/bind-9.11.3/lib/dns/include/dns/
H A Dpeer.h47 isc_mem_t *mem; member in struct:dns_peerlist
56 isc_mem_t *mem; member in struct:dns_peer
94 dns_peerlist_new(isc_mem_t *mem, dns_peerlist_t **list);
121 dns_peer_new(isc_mem_t *mem, isc_netaddr_t *ipaddr, dns_peer_t **peer);
124 dns_peer_newprefix(isc_mem_t *mem, isc_netaddr_t *ipaddr,
/bind-9.11.3/lib/isc/
H A Dlib.c20 #include <isc/mem.h>
H A Devent.c19 #include <isc/mem.h>
/bind-9.11.3/bin/named/include/named/
H A Dlwresd.h112 ns__lwresd_memfree(void *arg, void *mem, size_t size);
H A Dinterfacemgr.h43 #include <isc/mem.h>
/bind-9.11.3/bin/pkcs11/
H A Dpkcs11-tokens.c25 #include <isc/mem.h>
/bind-9.11.3/lib/dns/tests/
H A Ddnstest.h17 #include <isc/mem.h>
/bind-9.11.3/bin/tools/
H A Dnamed-journalprint.c15 #include <isc/mem.h>

Completed in 41 milliseconds

1234567891011