/external/strace/tests/ |
umovestr.c | 35 const size_t page_len = sysconf(_SC_PAGESIZE); local 38 if (tail_len >= page_len) 41 void *p = mmap(NULL, page_len * 2, PROT_READ | PROT_WRITE, 43 if (p == MAP_FAILED || mprotect(p + page_len, page_len, PROT_NONE)) 46 memset(p, 0, page_len); 47 char *addr = p + page_len - tail_len;
|
xet_robust_list.c | 42 const size_t page_len = sysconf(_SC_PAGESIZE); local 46 void *p = mmap(NULL, page_len * 4, PROT_READ | PROT_WRITE, 49 mprotect(p + page_len, page_len, PROT_NONE) || 50 mprotect(p + page_len * 3, page_len, PROT_NONE)) 53 void **p_head = p + page_len - sizeof(void *); 54 size_t *p_len = p + page_len * 3 - sizeof(size_t);
|
umovestr2.c | 36 const size_t page_len = sysconf(_SC_PAGESIZE); local 37 const size_t work_len = page_len * 2; 40 void *p = mmap(NULL, page_len * 3, PROT_READ | PROT_WRITE, 42 if (p == MAP_FAILED || mprotect(p + work_len, page_len, PROT_NONE))
|
sendfile64.c | 69 const size_t page_len = sysconf(_SC_PAGESIZE); local 70 if (!syscall(__NR_sendfile64, 0, 1, NULL, page_len) || 74 (unsigned long) page_len); 76 void *p = mmap(NULL, page_len * 2, PROT_READ | PROT_WRITE, 78 if (MAP_FAILED == p || munmap(p + page_len, page_len)) 81 if (!syscall(__NR_sendfile64, 0, 1, p + page_len, page_len)) 84 (unsigned long) p + page_len, (unsigned long) page_len); [all...] |
time.c | 44 const size_t page_len = sysconf(_SC_PAGESIZE); local 46 void *p = mmap(NULL, page_len * 2, PROT_READ | PROT_WRITE, 48 if (p == MAP_FAILED || mprotect(p + page_len, page_len, PROT_NONE)) 51 time_t *p_t = p + page_len - sizeof(time_t);
|
sendfile.c | 69 const size_t page_len = sysconf(_SC_PAGESIZE); local 70 if (!syscall(__NR_sendfile, 0, 1, NULL, page_len) || 74 (unsigned long) page_len); 76 void *p = mmap(NULL, page_len * 2, PROT_READ | PROT_WRITE, 78 if (MAP_FAILED == p || munmap(p + page_len, page_len)) 81 if (!syscall(__NR_sendfile, 0, 1, p + page_len, page_len)) 84 (unsigned long) p + page_len, (unsigned long) page_len); [all...] |