/external/strace/tests/ |
H A D | mmap.c | 41 const intmax_t pagesize = sysconf(_SC_PAGESIZE); local 42 const unsigned long length = pagesize * 3; 48 offset = 0xcafedeadbeef000 & -pagesize; 49 addr = (void *) (uintmax_t) (0xfacefeed000 & -pagesize); 51 offset = 0xdeadbeef000 & -pagesize; 52 addr = (void *) (unsigned int) (0xfaced000 & -pagesize);
|
H A D | pc.c | 40 const unsigned long pagesize = sysconf(_SC_PAGESIZE); local 63 const unsigned long mask = ~(pagesize - 1); 65 unsigned long size = pagesize << 1; 98 (void) sendfile(1, 0, NULL, pagesize);
|
/external/toybox/toys/other/ |
H A D | mkswap.c | 25 int fd = xopen(*toys.optargs, O_RDWR), pagesize = sysconf(_SC_PAGE_SIZE); local 27 unsigned int pages = (len/pagesize)-1, *swap = (unsigned int *)toybuf; 39 xlseek(fd, pagesize-10, SEEK_SET); 48 pages*(unsigned long)(pagesize/1024),
|
/external/valgrind/none/tests/ |
H A D | map_unmap.c | 44 static unsigned int pagesize; variable 47 #define LEN (PAGES*pagesize) 67 off = (random() % LEN) & ~(pagesize-1); 70 /* printf("unmapping off=%d\n", off/pagesize); */ 71 munmap((char *)p + off, pagesize); 72 off += 619*pagesize; 90 pagesize = getpagesize();
|
/external/elfutils/lib/ |
H A D | crc32_file.c | 55 const size_t pagesize = sysconf (_SC_PAGE_SIZE); local 56 mapsize = ((mapsize / 2) + pagesize - 1) & -pagesize; 57 while (mapsize >= pagesize
|
/external/valgrind/memcheck/tests/ |
H A D | descr_belowsp.c | 82 const int pagesize = getpagesize(); local 84 const int pagesize = 4096; // let's say ? 86 return pagesize; 91 const int pagesize = guess_pagesize(); local 95 (void*) VG_ROUNDUP(lowest_j, pagesize)); 97 (void*) VG_ROUNDUP(lowest_j, pagesize)-1); 99 (void*) VG_ROUNDDN(lowest_j, pagesize));
|
H A D | leak-segv-jmp.c | 287 long pagesize; local 288 #define RNDPAGEDOWN(a) ((long)a & ~(pagesize-1)) 319 pagesize = sysconf(_SC_PAGE_SIZE); 320 if (pagesize == -1) 323 my_mprotect_none((void*) RNDPAGEDOWN(&b10[4000]), 2 * pagesize);
|
/external/autotest/client/tests/rmaptest/src/ |
H A D | rmap-test.c | 27 int pagesize; variable 74 p[page * pagesize]++; 85 msync(p, vmasize * pagesize, MS_ASYNC); 104 p = vma_addresses[rand_vma] + rand_page * pagesize; 188 pagesize = getpagesize(); 194 file_size *= pagesize; 198 ((long long)nvmas * vmasize * pagesize) / 1024); 221 p = mmap(0, vmasize * pagesize, PROT_READ|PROT_WRITE, 228 offset += vmasize * pagesize + pagesize; [all...] |
/external/libselinux/src/ |
H A D | sestatus.c | 259 long pagesize; local 266 pagesize = sysconf(_SC_PAGESIZE); 267 if (pagesize < 0) 275 selinux_status = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd, 0); 325 long pagesize; local 340 pagesize = sysconf(_SC_PAGESIZE); 342 if (pagesize > 0) 343 munmap(selinux_status, pagesize);
|
/external/selinux/libselinux/src/ |
H A D | sestatus.c | 259 long pagesize; local 266 pagesize = sysconf(_SC_PAGESIZE); 267 if (pagesize < 0) 275 selinux_status = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd, 0); 325 long pagesize; local 340 pagesize = sysconf(_SC_PAGESIZE); 342 if (pagesize > 0) 343 munmap(selinux_status, pagesize);
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
H A D | stack-overflow-sigbus.cc | 49 const long pagesize = sysconf(_SC_PAGESIZE); local 57 p = mmap((void *)(addr - 4 * pagesize), pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_cvs/searchcvs/www/projectName/ |
H A D | searchcvs.php | 7 $pagesize = 25; //results per page variable 11 $offset = ($page - 1) * $pagesize; 71 $sql = "SELECT SQL_CALC_FOUND_ROWS `cvsname`, `revision`, `date`, `author`, `message`, `keyword_subs`, `bugid`, `revision` AS `orev`, `fid` AS `ofid`, $branch AS `branch`$ec FROM `cvsfiles` NATURAL JOIN `commits` NATURAL LEFT JOIN `bugs` $where GROUP BY `fid`, `revision`, `bugid` $having $order LIMIT $offset, $pagesize"; 78 $title = "<span>$rows results total</span>Showing results " . ($offset + 1) . "-" . ($offset + $pagesize > $rows ? $rows : $offset + $pagesize) . " for " . ($_GET["q"] == "" ? "last $days days of commits" : "$et" . sanitize($_GET["q"], "text")); 84 dopager($rows, $page, $pagesize); 103 dopager($rows, $page, $pagesize); 227 function dopager($rows, $page, $pagesize) 230 $endpage = ($page + 5 > $rows/$pagesize ? ceil($rows/$pagesize) [all...] |
/external/harfbuzz_ng/src/ |
H A D | hb-blob.cc | 390 uintptr_t pagesize = -1, mask, length; local 394 pagesize = (uintptr_t) sysconf (_SC_PAGE_SIZE); 396 pagesize = (uintptr_t) sysconf (_SC_PAGESIZE); 398 pagesize = (uintptr_t) getpagesize (); 401 if ((uintptr_t) -1L == pagesize) { 402 DEBUG_MSG_FUNC (BLOB, blob, "failed to get pagesize: %s", strerror (errno)); 405 DEBUG_MSG_FUNC (BLOB, blob, "pagesize is %lu", (unsigned long) pagesize); 407 mask = ~(pagesize-1); 409 length = (const char *) (((uintptr_t) blob->data + blob->length + pagesize [all...] |
/external/elfutils/libdwfl/ |
H A D | elf-from-memory.c | 58 GElf_Xword pagesize, 229 /* Sanity check the segment load aligns with the pagesize. */ 230 if (((vaddr - offset) & (pagesize - 1)) != 0) 233 GElf_Off segment_end = ((offset + filesz + pagesize - 1) 234 & -pagesize); 239 if (!found_base && (offset & -pagesize) == 0) 241 loadbase = ehdr_vma - (vaddr & -pagesize); 309 GElf_Off start = offset & -pagesize; 310 GElf_Off end = (offset + filesz + pagesize - 1) & -pagesize; 57 elf_from_remote_memory(GElf_Addr ehdr_vma, GElf_Xword pagesize, GElf_Addr *loadbasep, ssize_t (*read_memory) (void *arg, void *data, GElf_Addr address, size_t minread, size_t maxread), void *arg) argument [all...] |
/external/harfbuzz_ng/test/api/ |
H A D | test-blob.c | 119 uintptr_t pagesize = -1; local 122 pagesize = (uintptr_t) sysconf (_SC_PAGE_SIZE); 124 pagesize = (uintptr_t) sysconf (_SC_PAGESIZE); 126 pagesize = (uintptr_t) getpagesize (); 129 g_assert (pagesize != (uintptr_t) -1); 131 return pagesize; 175 uintptr_t pagesize = get_pagesize (); local 177 data = mmap (NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); 180 mprotect ((char *) data, pagesize, PROT_READ);
|
/external/openfst/src/lib/ |
H A D | mapped-file.cc | 69 int pagesize = getpagesize(); local 70 off_t offset = pos % pagesize;
|
/external/fio/os/ |
H A D | os-android.h | 182 long pagesize, pages; local 184 pagesize = sysconf(_SC_PAGESIZE); 186 if (pages == -1 || pagesize == -1) 189 return (unsigned long long) pages * (unsigned long long) pagesize;
|
H A D | os-linux.h | 143 long pagesize, pages; local 145 pagesize = sysconf(_SC_PAGESIZE); 147 if (pages == -1 || pagesize == -1) 150 return (unsigned long long) pages * (unsigned long long) pagesize;
|
H A D | os-windows.h | 155 long pagesize, pages; local 157 pagesize = sysconf(_SC_PAGESIZE); 159 if (pages == -1 || pagesize == -1) 162 return (unsigned long long) pages * (unsigned long long) pagesize;
|
/external/lldb/tools/debugserver/source/MacOSX/ |
H A D | MachVMMemory.cpp | 130 //tsamp->pages_stolen = (256 * 1024 * 1024ULL) / tsamp->pagesize; 301 vm_size_t pagesize = PageSize (task); 302 rsize = pages_resident * pagesize; 303 dirty_size = pages_dirtied * pagesize; 348 vm_size_t pagesize = PageSize (task); local 362 fw_private += info.private_pages_resident * pagesize; 399 rprvt += info.private_pages_resident * pagesize; 400 rprvt += info.shared_pages_resident * pagesize; 416 rprvt += info.private_pages_resident * pagesize; 424 rprvt += info.private_pages_resident * pagesize; [all...] |
H A D | MachTask.cpp | 422 static vm_size_t pagesize; local 427 pagesize = PageSize(); 430 profile_data_stream << "wired:" << vm_stats.wire_count * pagesize << ';'; 431 profile_data_stream << "active:" << vm_stats.active_count * pagesize << ';'; 432 profile_data_stream << "inactive:" << vm_stats.inactive_count * pagesize << ';'; 434 profile_data_stream << "used:" << total_used_count * pagesize << ';'; local 435 profile_data_stream << "free:" << vm_stats.free_count * pagesize << ';';
|
/external/e2fsprogs/misc/ |
H A D | e4defrag.c | 417 long pagesize; local 424 pagesize = sysconf(_SC_PAGESIZE); 425 if (pagesize < 0) 431 /* Round the offset down to the nearest multiple of pagesize */ 432 offset = (offset / pagesize) * pagesize; 440 *page_num = (length + pagesize - 1) / pagesize; 467 long pagesize = sysconf(_SC_PAGESIZE); local 475 if (pagesize < [all...] |
/external/kernel-headers/original/uapi/asm-arm/asm/ |
H A D | setup.h | 34 __u32 pagesize; member in struct:tag_core
|
/external/strace/ |
H A D | mem.c | 40 static unsigned long pagesize; local 42 if (!pagesize) 43 pagesize = sysconf(_SC_PAGESIZE); 44 return pagesize;
|
/external/libchrome/base/files/ |
H A D | file_util_posix.cc | 173 size_t pagesize = static_cast<size_t>(sysconf_result); local 174 CHECK_GE(sizeof(pagesize), sizeof(sysconf_result)); 175 void* mapping = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, fd.get(), 0); 177 if (mprotect(mapping, pagesize, PROT_READ | PROT_EXEC) == 0) 179 munmap(mapping, pagesize);
|