]> pd.if.org Git - pdclib/blob - platform/gandr/functions/_PDCLIB/_PDCLIB_freepages.c
82eb816f0702421800242c42882c5500fb04ab58
[pdclib] / platform / gandr / functions / _PDCLIB / _PDCLIB_freepages.c
1 /* _PDCLIB_allocpages( int const )
2
3    This file is part of the Public Domain C Library (PDCLib).
4    Permission is granted to use, modify, and / or redistribute at will.
5 */
6
7 /* This is a stub implementation of _PDCLIB_allocpages
8 */
9
10 #include <stdint.h>
11 #include <stddef.h>
12 #include "_PDCLIB_glue.h"
13 #include <errno.h>
14 #include <gd_bal.h>
15
16 void _PDCLIB_freepages( void * p, size_t n )
17 {
18     int rv = 0;
19     if((rv = gd_free_pages( p, n ))) {
20         perror("_PDCLIB_freepages");
21         abort();
22     }
23 }
24
25 #ifdef TEST
26 #include "_PDCLIB_test.h"
27
28 int main( void )
29 {
30     return TEST_RESULTS;
31 }
32
33 #endif