summaryrefslogtreecommitdiff
path: root/vm/alloc/TEST/HeapBitmapTest/include/cutils/ashmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/alloc/TEST/HeapBitmapTest/include/cutils/ashmem.h')
-rw-r--r--vm/alloc/TEST/HeapBitmapTest/include/cutils/ashmem.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/vm/alloc/TEST/HeapBitmapTest/include/cutils/ashmem.h b/vm/alloc/TEST/HeapBitmapTest/include/cutils/ashmem.h
new file mode 100644
index 0000000..8680c77
--- /dev/null
+++ b/vm/alloc/TEST/HeapBitmapTest/include/cutils/ashmem.h
@@ -0,0 +1,14 @@
+#ifndef ASHMEM_H_
+#define ASHMEM_H_
+
+#include <fcntl.h>
+
+#define ASHMEM_NAME_LEN 128
+
+inline int
+ashmem_create_region(const char *name, size_t len)
+{
+ return open("/dev/zero", O_RDWR);
+}
+
+#endif