int MM_permission(mode_t mode, uid_t owner, gid_t group) { if (mm_global != NULL) return -1; return mm_permission(mm_global, mode, owner, group); }
STUB(MM_calloc(number, size), NULL) API_EXPORT(char *) ap_MM_strdup(const char *str) STUB(MM_strdup(str), NULL) API_EXPORT(size_t) ap_MM_sizeof(void *ptr) STUB(MM_sizeof(ptr), 0) API_EXPORT(size_t) ap_MM_maxsize(void) STUB(MM_maxsize(), 0) API_EXPORT(size_t) ap_MM_available(void) STUB(MM_available(), 0) API_EXPORT(char *) ap_MM_error(void) STUB(MM_error(), NULL) API_EXPORT(AP_MM *) ap_mm_create(size_t size, char *file) STUB(mm_create(size, file), NULL) API_EXPORT(int) ap_mm_permission(AP_MM *mm, mode_t mode, uid_t owner, gid_t group) STUB(mm_permission(mm, mode, owner, group), -1) API_EXPORT(void) ap_mm_destroy(AP_MM *mm) STUB_STMT(mm_destroy(mm)) API_EXPORT(int) ap_mm_lock(AP_MM *mm, ap_mm_lock_mode mode) STUB(mm_lock(mm, mode), FALSE) API_EXPORT(int) ap_mm_unlock(AP_MM *mm) STUB(mm_unlock(mm), FALSE) API_EXPORT(void *) ap_mm_malloc(AP_MM *mm, size_t size) STUB(mm_malloc(mm, size), NULL) API_EXPORT(void *) ap_mm_realloc(AP_MM *mm, void *ptr, size_t size) STUB(mm_realloc(mm, ptr, size), NULL) API_EXPORT(void) ap_mm_free(AP_MM *mm, void *ptr) STUB_STMT(mm_free(mm, ptr)) API_EXPORT(void *) ap_mm_calloc(AP_MM *mm, size_t number, size_t size) STUB(mm_calloc(mm, number, size), NULL) API_EXPORT(char *) ap_mm_strdup(AP_MM *mm, const char *str)