summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/lib/valloc.c
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2013-06-15 20:29:07 +0000
committereadler <eadler@FreeBSD.org>2013-06-15 20:29:07 +0000
commitbf7c0f2705c32e44d3c3b62d60453a30dbbffe3f (patch)
treedca088b474d4fedf5e6d4ef16e823d7756d587bc /contrib/cvs/lib/valloc.c
parentb95c459e182fd072e6dac884c7eed86a220534e7 (diff)
downloadFreeBSD-src-bf7c0f2705c32e44d3c3b62d60453a30dbbffe3f.zip
FreeBSD-src-bf7c0f2705c32e44d3c3b62d60453a30dbbffe3f.tar.gz
Remove CVS from the base system.
Discussed with: many Reviewed by: peter, zi Approved by: core
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