Lines Matching refs:ptr
63 void *shm; /* ptr to memory segment (apr_shm_t *) */
182 static apr_status_t restore_slotmem(void *ptr, const char *name, apr_size_t size,
201 rv = apr_file_read(fp, ptr, &nbytes);
214 apr_md5(digest2, ptr, nbytes);
271 char *ptr;
279 ptr = (char *)mem->base;
284 retval = func((void *) ptr, data, pool);
288 ptr += mem->desc.size;
301 char *ptr;
363 ptr = (char *)apr_shm_baseaddr_get(shm);
364 memcpy(&desc, ptr, sizeof(desc));
372 ptr += AP_SLOTMEM_OFFSET;
391 ptr = (char *)apr_shm_baseaddr_get(shm);
395 memcpy(ptr, &desc, sizeof(desc));
396 ptr += AP_SLOTMEM_OFFSET;
397 memset(ptr, 0, dsize);
403 rv = restore_slotmem(ptr, fname, dsize, pool);
411 memset(ptr, 0, dsize);
422 res->num_free = (unsigned int *)ptr;
426 res->persist = (void *)ptr;
427 ptr += AP_UNSIGNEDINT_OFFSET;
428 res->base = (void *)ptr;
432 res->inuse = ptr + basesize;
449 char *ptr;
496 ptr = (char *)apr_shm_baseaddr_get(shm);
497 memcpy(&desc, ptr, sizeof(desc));
498 ptr += AP_SLOTMEM_OFFSET;
506 res->num_free = (unsigned int *)ptr;
507 res->persist = (void *)ptr;
508 ptr += AP_UNSIGNEDINT_OFFSET;
509 res->base = (void *)ptr;
512 res->inuse = ptr + (desc.size * desc.num);
534 char *ptr;
543 ptr = (char *)slot->base + slot->desc.size * id;
544 if (!ptr) {
547 *mem = (void *)ptr;
554 void *ptr;
569 ret = slotmem_dptr(slot, id, &ptr);
574 memcpy(dest, ptr, dest_len); /* bounds check? */
581 void *ptr;
596 ret = slotmem_dptr(slot, id, &ptr);
601 memcpy(ptr, src, src_len); /* bounds check? */