Lines Matching defs:mem
18 #include <isc/mem.h>
399 journal_read(dns_journal_t *j, void *mem, size_t nbytes) {
402 result = isc_stdio_read(mem, 1, nbytes, j->fp, NULL);
416 journal_write(dns_journal_t *j, void *mem, size_t nbytes) {
419 result = isc_stdio_write(mem, 1, nbytes, j->fp, NULL);
502 void *mem; /* Memory for temporary index image. */
521 mem = isc_mem_get(mctx, size);
522 if (mem == NULL) {
527 memset(mem, 0, size);
528 memmove(mem, &rawheader, sizeof(rawheader));
530 result = isc_stdio_write(mem, 1, (size_t) size, fp, NULL);
537 isc_mem_put(mctx, mem, size);
540 isc_mem_put(mctx, mem, size);
1012 void *mem = NULL;
1043 mem = isc_mem_get(j->mctx, size);
1044 if (mem == NULL)
1047 isc_buffer_init(&buffer, mem, size);
1086 if (mem != NULL)
1087 isc_mem_put(j->mctx, mem, size);
1598 void *mem = isc_mem_get(mctx, size);
1599 if (mem == NULL)
1603 b->base = mem;