mirror of
https://github.com/MariaDB/server.git
synced 2025-12-01 17:39:21 +03:00
Separate out the common malloc into newbrt/memory.c, and put the os-specific stuff into windows and linux subdirs. Things are broken. Addresses #1343.
git-svn-id: file:///svn/toku/tokudb.1032b+1343@8559 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
committed by
Yoni Fogel
parent
0adc9f9bd8
commit
017d4f8cc3
23
linux/os_malloc.c
Normal file
23
linux/os_malloc.c
Normal file
@@ -0,0 +1,23 @@
|
||||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#ident "Copyright (c) 2007, 2008 Tokutek Inc. All rights reserved."
|
||||
|
||||
#include "toku_portability.h"
|
||||
#include <malloc.h>
|
||||
|
||||
void *
|
||||
os_malloc(size_t size)
|
||||
{
|
||||
return malloc(size);
|
||||
}
|
||||
|
||||
void *
|
||||
os_realloc(void *p, size_t size)
|
||||
{
|
||||
return realloc(p, size);
|
||||
}
|
||||
|
||||
void
|
||||
os_free(void* p)
|
||||
{
|
||||
free(p);
|
||||
}
|
||||
Reference in New Issue
Block a user