/* _PDCLIB_freepages( void *, size_t ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ /* This is an example implementation of _PDCLIB_allocpages() (declared in _PDCLIB_config.h), fit for use with POSIX kernels. */ #ifndef REGTEST #include #include #include #include <_PDCLIB_glue.h> void _PDCLIB_freepages( void * p, size_t n ) { munmap( p, n * _PDCLIB_MALLOC_PAGESIZE ); } #endif #ifdef TEST #include <_PDCLIB_test.h> int main( void ) { return TEST_RESULTS; } #endif