00001 /** \file os.h 00002 * \brief Low-level OS interface. 00003 */ 00004 #ifndef tm_OS_H 00005 #define tm_OS_H 00006 00007 /*! If true, use mmap() and munmap(). */ 00008 #define tm_USE_MMAP 1 00009 /*! If true, use sbrk(). */ 00010 #define tm_USE_SBRK 0 00011 00012 #if tm_USE_MMAP 00013 #undef tm_USE_SBRK 00014 #define tm_USE_SBRK 0 00015 #endif 00016 00017 void *_tm_os_alloc_aligned(size_t size); 00018 void _tm_os_free_aligned(void *ptr, size_t size); 00019 00020 #endif