summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/lib/valloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cvs/lib/valloc.c')
-rw-r--r--contrib/cvs/lib/valloc.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/contrib/cvs/lib/valloc.c b/contrib/cvs/lib/valloc.c
deleted file mode 100644
index 17fb14b..0000000
--- a/contrib/cvs/lib/valloc.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* valloc -- return memory aligned to the page size. */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include "system.h"
-
-#ifndef HAVE_GETPAGESIZE
-# include "getpagesize.h"
-#endif
-
-void *
-valloc (bytes)
- size_t bytes;
-{
- long pagesize;
- char *ret;
-
- pagesize = getpagesize ();
- ret = (char *) malloc (bytes + pagesize - 1);
- if (ret)
- ret = (char *) ((long) (ret + pagesize - 1) &~ (pagesize - 1));
- return ret;
-}
OpenPOWER on IntegriCloud