}
/* Map a shared memory buffer of at least nelem counters. */
-void *allocate_anonymous_shared(size_t bufsz)
+void *anonymous_shared_allocate(size_t bufsz)
{
void *buf;
size_t pagesz = getpagesize();
/**
* Allocate anonymous shared memory of the given size
*/
-void *allocate_anonymous_shared(size_t bufsz);
+void *anonymous_shared_allocate(size_t bufsz);
/*
run a command as a child process, with a timeout.
}
s->shm_size = 4096;
s->shm_pointer =
- (uint8_t *)allocate_anonymous_shared(s->shm_size);
+ (uint8_t *)anonymous_shared_allocate(s->shm_size);
if (s->shm_pointer == NULL) {
talloc_free(s);
return false;