|
|
1.1 root 1: #ifndef lint
2: static char sccsid[] = "@(#)valloc.c 4.3 (Berkeley) 7/1/83";
3: #endif
4:
5: char *malloc();
6:
7: char *
8: valloc(i)
9: int i;
10: {
11: int valsiz = getpagesize(), j;
12: char *cp = malloc(i + (valsiz-1));
13:
14: j = ((int)cp + (valsiz-1)) &~ (valsiz-1);
15: return ((char *)j);
16: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.