Searched defs:mem (Results 1 - 20 of 20) sorted by relevance

/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/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/lib/lwres/
H A Dgetrrset.c124 void *mem = sane_malloc(len); local
125 if (mem != NULL)
126 memset(mem, 0, len);
127 return (mem);
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...]
/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/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/unit/atf-src/atf-c/detail/
H A Ddynstr.c193 atf_dynstr_init_raw(atf_dynstr_t *ad, const void *mem, size_t memlen) argument
209 memcpy(ad->m_data, mem, memlen);
/bind-9.11.3/lib/dns/
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...]
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 Djournal.c18 #include <isc/mem.h>
399 journal_read(dns_journal_t *j, void *mem, size_t nbytes) { argument
402 result = isc_stdio_read(mem, 1, nbytes, j->fp, NULL);
416 journal_write(dns_journal_t *j, void *mem, size_t nbytes) { argument
419 result = isc_stdio_write(mem, 1, nbytes, j->fp, NULL);
502 void *mem; /* Memory for temporary index image. */ local
521 mem = isc_mem_get(mctx, size);
522 if (mem == NULL) {
527 memset(mem, 0, size);
528 memmove(mem,
1012 void *mem = NULL; local
1598 void *mem = isc_mem_get(mctx, size); local
[all...]
H A Dname.c20 #include <isc/mem.h>
1329 dns_name_totextfilter_t *mem = arg; local
1330 isc_mem_put(thread_key_mctx, mem, sizeof(*mem));
1404 dns_name_totextfilter_t *mem; local
1563 mem = isc_thread_key_getspecific(totext_filter_proc_key);
1564 if (mem != NULL)
1565 totext_filter_proc = *mem;
2359 dns_name_totextfilter_t *mem; local
2370 mem
[all...]
H A Dadb.c2519 dns_adb_create(isc_mem_t *mem, dns_view_t *view, isc_timermgr_t *timermgr, argument
2526 REQUIRE(mem != NULL);
2534 adb = isc_mem_get(mem, sizeof(dns_adb_t));
2603 isc_mem_attach(mem, &adb->mctx);
2690 result = isc_mempool_create(mem, sizeof(t), &(p)); \
H A Dzone.c1413 void *mem; local
1423 mem = isc_mem_allocate(mctx, size);
1424 if (mem != NULL) {
1425 tmp = mem;
1426 tmp2 = mem;
1427 base = mem;
1438 *argv = mem;
/bind-9.11.3/bin/named/
H A Dlwresd.c26 #include <isc/mem.h>
78 ns__lwresd_memfree(void *arg, void *mem, size_t size) { argument
79 isc_mem_put(arg, mem, size);
H A Dxfrout.c14 #include <isc/mem.h>
124 char mem[2000]; local
144 isc_buffer_init(&buf, mem, sizeof(mem));
1152 void *mem; local
1200 mem = isc_mem_get(mctx, len);
1201 if (mem == NULL) {
1205 isc_buffer_init(&xfr->buf, mem, len);
1212 mem = isc_mem_get(mctx, len);
1213 if (mem
[all...]
/bind-9.11.3/lib/isc/
H A Dmem.c22 #include <isc/mem.h>
175 ISC_LINK(isc__mempool_t) link; /*%< next pool in this mem context */
289 isc___mempool_put(isc_mempool_t *mpctx, void *mem FLARG);
713 check_overrun(void *mem, size_t size, size_t new_size) { argument
716 cp = (unsigned char *)mem;
728 mem_putunlocked(isc__mem_t *ctx, void *mem, size_t size) { argument
736 memset(mem, 0xde, size); /* Mnemonic for "dead". */
738 (ctx->memfree)(ctx->arg, mem);
748 check_overrun(mem, size, new_size);
750 memset(mem,
804 mem_put(isc__mem_t *ctx, void *mem, size_t size) argument
[all...]
/bind-9.11.3/bin/nsupdate/
H A Dnsupdate.c29 #include <isc/mem.h>
393 mem_free(void *arg, void *mem, size_t size) { argument
394 isc_mem_put(arg, mem, size);
/bind-9.11.3/bin/dig/
H A Ddighost.c402 mem_free(void *arg, void *mem, size_t size) { argument
403 isc_mem_put(arg, mem, size);

Completed in 98 milliseconds