search for: asmap

Displaying 1 result from an estimated 1 matches for "asmap".

Did you mean: asap
2001 Aug 09
2
Solaris X86 Wine
...e <unistd.h> #include <fcntl.h> #include <assert.h> #include <alloca.h> #include <stdio.h> #include <string.h> #include <signal.h> #include <procfs.h> static int is_mapped_test (uintptr_t vaddr, size_t size, const prmap_t *asmap, int n) { int i = 0, j = n; while (i < j) { int m = (i + j) / 2; const prmap_t *o = &asmap[m]; if ((uintptr_t) o->pr_vaddr >= vaddr + size) j = m; else if ((uintptr_t) o->pr_vaddr + o->pr_size <= vaddr) i = m + 1; else return 1;...