mprotect.c

dsI/fluffos-2.7-ds2.018/mprotect.c · 259 B

From the archive dsI.zip

Download the archive   « Back to the archive contents

(char *)(((int) p + PAGESIZE-1) & ~(PAGESIZE-1));

int *ad;
int *al;
int size;

void *alignedmalloc(int size){
  void *tmp;
  ad[size] = tmp = malloc(size+PAGESIZE-1);
  al[size++] = tmp = (void *)(((int) tmp + PAGESIZE-1) & ~(PAGESIZE-1));
  return tmp;
}


Site Stats

Snippets: 1791
Codebases: 571