]> pd.if.org Git - pdclib.old/blobdiff - platform/gandr/functions/_PDCLIB/_PDCLIB_allocpages.c
Initial stab at gandr platform
[pdclib.old] / platform / gandr / functions / _PDCLIB / _PDCLIB_allocpages.c
diff --git a/platform/gandr/functions/_PDCLIB/_PDCLIB_allocpages.c b/platform/gandr/functions/_PDCLIB/_PDCLIB_allocpages.c
new file mode 100644 (file)
index 0000000..bdcd525
--- /dev/null
@@ -0,0 +1,31 @@
+/* $Id$ */
+
+/* _PDCLIB_allocpages( int const )
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+/* This is a stub implementation of _PDCLIB_allocpages
+*/
+
+#include <stdint.h>
+#include <stddef.h>
+#include <_PDCLIB_glue.h>
+#include <errno.h>
+
+void * _PDCLIB_allocpages( size_t n )
+{
+    errno = ENOTSUP;
+    return NULL;
+}
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+    return TEST_RESULTS;
+}
+
+#endif