m_mem_p.h

00001 /* 
00002    EyeDB Object Database Management System
00003    Copyright (C) 1994-2008 SYSRA
00004    
00005    EyeDB is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009    
00010    EyeDB is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014    
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with this library; if not, write to the Free Software
00017    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA 
00018 */
00019 
00020 /*
00021    Author: Eric Viara <viara@sysra.com>
00022 */
00023 
00024 #include <sys/types.h>
00025 #include <iostream>
00026 
00027 extern m_Map *m_mmap(caddr_t addr, size_t len, int prot, int flags,
00028                      int fildes, off_t off, caddr_t *p, const char *file,
00029                      off_t startns, off_t endns);
00030 
00031 extern int m_munmap(m_Map *map, caddr_t addr, size_t len);
00032 
00033 extern u_int m_data_margin_set(u_int data_margin);
00034 
00035 extern void m_init(void);
00036 extern void m_access(m_Map *map);
00037 extern void m_lock(m_Map *m);
00038 extern void m_unlock(m_Map *m);
00039 extern void m_gtrig_set(m_Map *m, void (*gtrig)(void *client_data), void *client_data);
00040   
00041 extern void *m_malloc(size_t len);
00042 extern void *m_calloc(size_t nelem, size_t elsize);
00043 extern void *m_realloc(void *ptr, size_t size);
00044 extern void m_free(void *ptr);
00045 
00046 extern void m_abort(void);
00047 extern void m_abort_msg(const char *fmt, ...);
00048 extern void m_mmaps_garbage(void);
00049 extern void m_maptrace(std::ostream &);
00050 
00051 extern size_t m_get_totalsize();
00052 extern size_t m_get_maxsize();
00053 extern void m_set_maxsize(size_t);

Generated on Mon Dec 22 18:15:58 2008 for eyedb by  doxygen 1.5.3