mirror of
https://github.com/daeken/Zookeeper.git
synced 2025-04-02 10:52:54 -04:00
21 lines
318 B
C++
21 lines
318 B
C++
#include "NightBeliever.hpp"
|
|
|
|
int liballoc_lock() {
|
|
//pthread_mutex_lock( &mutex );
|
|
return 0;
|
|
}
|
|
|
|
int liballoc_unlock() {
|
|
//pthread_mutex_unlock( &mutex );
|
|
return 0;
|
|
}
|
|
|
|
void* liballoc_alloc(int pages) {
|
|
return map((void *) 0, pages);
|
|
}
|
|
|
|
int liballoc_free( void* ptr, int pages )
|
|
{
|
|
unmap(ptr, pages);
|
|
return 0;
|
|
}
|