/external/chromium_org/third_party/ots/test/ |
D | perf.cc | 41 uint8_t *data = new uint8_t[st.st_size]; in main() 42 if (::read(fd, data, st.st_size) != st.st_size) { in main() 51 uint8_t *result = new uint8_t[st.st_size + kPadLen]; in main() 54 if (st.st_size < 1024 * 1024) { in main() 57 if (st.st_size < 1024 * 100) { in main() 64 ots::MemoryStream output(result, st.st_size + kPadLen); in main() 65 bool r = ots::Process(&output, data, st.st_size); in main() 77 us, argv[1], static_cast<long long>(st.st_size), in main() 78 (us ? st.st_size / us : 0)); in main()
|
D | ot-sanitise.cc | 52 uint8_t *data = new uint8_t[st.st_size]; in main() 53 if (::read(fd, data, st.st_size) != st.st_size) { in main() 63 const bool result = ots::Process(&output, data, st.st_size); in main()
|
D | idempotent.cc | 58 *file_size = st.st_size; in ReadFile() 59 *data = new uint8_t[st.st_size]; in ReadFile() 60 if (read(fd, *data, st.st_size) != st.st_size) { in ReadFile()
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/memfs/ |
D | mem_fs_node.cc | 53 size_t size = stat_.st_size; in Read() 75 if (new_size > stat_.st_size) { in Write() 105 } else if (new_length < stat_.st_size) { in Resize() 120 if (new_length > stat_.st_size) in Resize() 121 memset(data_ + stat_.st_size, 0, new_length - stat_.st_size); in Resize() 122 stat_.st_size = new_length; in Resize()
|
/external/elfutils/0.153/libdwfl/ |
D | dwfl_module_addrsym.c | 125 if (sym.st_value + sym.st_size > min_label) in dwfl_module_addrsym() 126 min_label = sym.st_value + sym.st_size; in dwfl_module_addrsym() 128 if (sym.st_size == 0 || addr - sym.st_value < sym.st_size) in dwfl_module_addrsym() 137 if (sym.st_size != 0) in dwfl_module_addrsym() 159 else if (sym.st_size != 0 in dwfl_module_addrsym() 161 && closest_sym->st_size > sym.st_size in dwfl_module_addrsym()
|
/external/kernel-headers/original/uapi/asm-x86/asm/ |
D | stat.h | 17 unsigned long st_size; member 56 long long st_size; member 92 __kernel_long_t st_size; member 125 unsigned long st_size; member 130 unsigned int st_size; member
|
/external/elfutils/0.153/lib/ |
D | crc32_file.c | 67 size_t mapsize = st.st_size; in crc32_file() 82 if (st.st_size <= (off_t) mapsize) in crc32_file() 84 *resp = crc32 (crc, mapped, st.st_size); in crc32_file() 90 st.st_size -= mapsize; in crc32_file()
|
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/re2c/examples/ |
D | basemmap.c | 17 buf = mmap(NULL, statbuf.st_size, PROT_READ, MAP_SHARED|MAP_NORESERVE, in main() 20 uchar *cur, *lim = &buf[statbuf.st_size]; in main() 24 munmap(buf, statbuf.st_size); in main()
|
/external/sepolicy/tools/sepolicy-analyze/ |
D | utils.c | 42 map = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in load_policy() 52 pf->len = sb.st_size; in load_policy() 56 munmap(map, sb.st_size); in load_policy() 63 munmap(map, sb.st_size); in load_policy()
|
/external/kernel-headers/original/uapi/asm-arm/asm/ |
D | stat.h | 12 unsigned long st_size; member 38 unsigned long st_size; member 71 long long st_size; member
|
/external/libpcap/tests/ |
D | filtertest.c | 85 cp = malloc((u_int)buf.st_size + 1); in read_infile() 87 error("malloc(%d) for %s: %s", (u_int)buf.st_size + 1, in read_infile() 89 cc = read(fd, cp, (u_int)buf.st_size); in read_infile() 92 if (cc != buf.st_size) in read_infile() 93 error("short read %s (%d != %d)", fname, cc, (int)buf.st_size); in read_infile()
|
D | valgrindtest.c | 118 cp = malloc((u_int)buf.st_size + 1); in read_infile() 120 error("malloc(%d) for %s: %s", (u_int)buf.st_size + 1, in read_infile() 122 cc = read(fd, cp, (u_int)buf.st_size); in read_infile() 125 if (cc != buf.st_size) in read_infile() 126 error("short read %s (%d != %d)", fname, cc, (int)buf.st_size); in read_infile()
|
/external/chromium_org/third_party/google_appengine_cloudstorage/cloudstorage/ |
D | common.py | 102 st_size, argument 126 self.st_size = None 133 self.st_size = long(st_size) 149 st_size=self.st_size,
|
/external/chromium_org/third_party/android_crazy_linker/src/src/ |
D | crazy_linker_zip.cpp | 111 if (stat_buf.st_size > kMaxZipFileLength) { in FindStartOffsetOfFileInZipFile() 113 __FUNCTION__, stat_buf.st_size, zip_file); in FindStartOffsetOfFileInZipFile() 118 void* mem = fd.Map(NULL, stat_buf.st_size, PROT_READ, MAP_PRIVATE, 0); in FindStartOffsetOfFileInZipFile() 124 ScopedMMap scoped_mmap(mem, stat_buf.st_size); in FindStartOffsetOfFileInZipFile() 130 for (off = stat_buf.st_size - sizeof(kEndOfCentralDirectoryMarker); in FindStartOffsetOfFileInZipFile()
|
D | crazy_linker_elf_symbols.cpp | 71 elf_addr < sym->st_value + sym->st_size) { in LookupByAddress() 94 if (elf_addr >= sym->st_value && elf_addr < sym->st_value + sym->st_size) { in LookupNearestByAddress() 105 diff = elf_addr - sym->st_value - sym->st_size; in LookupNearestByAddress() 118 *sym_size = nearest_sym->st_size; in LookupNearestByAddress()
|
/external/kernel-headers/original/uapi/asm-mips/asm/ |
D | stat.h | 28 off_t st_size; member 66 long long st_size; member 107 off_t st_size; member
|
/external/elfutils/0.153/libelf/ |
D | elf_readall.c | 120 if (sizeof (size_t) >= sizeof (st.st_size) 121 || st.st_size <= ~((size_t) 0)) 122 elf->maximum_size = (size_t) st.st_size;
|
/external/qemu/android/utils/ |
D | timezone.c | 188 if ( st.st_size != scan->localtime_st.st_size ) { in compare_timezone_to_localtime() 189 … D( " size mistmatch (%zd != %zd)\n", (size_t)st.st_size, (size_t)scan->localtime_st.st_size ); in compare_timezone_to_localtime() 207 for (nn = 0; nn < st.st_size; nn++) { in compare_timezone_to_localtime() 221 result = (nn == st.st_size); in compare_timezone_to_localtime()
|
/external/chromium_org/third_party/webrtc/modules/media_file/source/ |
D | media_file_utility.cc | 2258 time_in_ms = ((file_size.st_size - 44) / in FileDurationMs() 2266 time_in_ms = (file_size.st_size)/denominator; in FileDurationMs() 2273 time_in_ms = (file_size.st_size)/denominator; in FileDurationMs() 2321 time_in_ms = ((file_size.st_size)*160)/95; in FileDurationMs() 2325 time_in_ms = ((file_size.st_size)*160)/103; in FileDurationMs() 2329 time_in_ms = ((file_size.st_size)*160)/118; in FileDurationMs() 2333 time_in_ms = ((file_size.st_size)*160)/134; in FileDurationMs() 2337 time_in_ms = ((file_size.st_size)*160)/148; in FileDurationMs() 2341 time_in_ms = ((file_size.st_size)*160)/159; in FileDurationMs() 2345 time_in_ms = ((file_size.st_size)*160)/204; in FileDurationMs() [all …]
|
/external/e2fsprogs/util/ |
D | copy_sparse.c | 126 numblocks = (fileinfo.st_size + (bs-1)) / bs; in copy_sparse_file() 129 (long long) fileinfo.st_size, numblocks); in copy_sparse_file() 189 offset = fileinfo.st_size; in copy_sparse_file() 194 if (fileinfo.st_size != offset) { in copy_sparse_file()
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
D | util.c | 95 if (st.st_size == 0) /* /proc? do it slowly... */ in copyfile() 106 addr = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fromfd, 0); in copyfile() 110 if (write(tofd, addr, st.st_size) == st.st_size) in copyfile() 113 munmap(addr, st.st_size); in copyfile()
|
/external/kernel-headers/original/uapi/asm-generic/ |
D | stat.h | 32 long st_size; /* Size of file, in bytes. */ member 57 long long st_size; /* Size of file, in bytes. */ member
|
/external/chromium_org/third_party/libxml/src/ |
D | testSchemas.c | 92 base = mmap(NULL, info.st_size, PROT_READ, in main() 97 ctxt = xmlSchemaNewMemParserCtxt((char *)base,info.st_size); in main() 105 munmap((char *) base, info.st_size); in main()
|
D | testRelax.c | 96 base = mmap(NULL, info.st_size, PROT_READ, in main() 101 ctxt = xmlRelaxNGNewMemParserCtxt((char *)base,info.st_size); in main() 109 munmap((char *) base, info.st_size); in main()
|
/external/qemu/distrib/libselinux/src/ |
D | android.c | 92 if (sb_base.st_size != sb_override.st_size) { in set_policy_index() 98 map_base = mmap(NULL, sb_base.st_size, PROT_READ, MAP_PRIVATE, fd_base, 0); in set_policy_index() 105 map_override = mmap(NULL, sb_override.st_size, PROT_READ, MAP_PRIVATE, fd_override, 0); in set_policy_index() 107 munmap(map_base, sb_base.st_size); in set_policy_index() 113 if (memcmp(map_base, map_override, sb_base.st_size) == 0) in set_policy_index() 119 munmap(map_base, sb_base.st_size); in set_policy_index() 120 munmap(map_override, sb_override.st_size); in set_policy_index() 823 map = mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in get_selabel_handle() 830 SHA_hash(map, sb.st_size, fc_digest); in get_selabel_handle() 831 munmap(map, sb.st_size); in get_selabel_handle() [all …]
|