search for: is_mapped_test

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

2001 Aug 09
2
Solaris X86 Wine
...#include <sys/stat.h> #include <sys/mman.h> #include <errno.h> #include <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_...