Home
last modified time | relevance | path

Searched refs:st_size (Results 1 – 25 of 273) sorted by relevance

1234567891011

/external/chromium_org/third_party/ots/test/
Dperf.cc41 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()
Dot-sanitise.cc52 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()
Didempotent.cc58 *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/
Dmem_fs_node.cc53 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/
Ddwfl_module_addrsym.c125 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/
Dstat.h17 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/
Dcrc32_file.c67 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/
Dbasemmap.c17 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/
Dutils.c42 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/
Dstat.h12 unsigned long st_size; member
38 unsigned long st_size; member
71 long long st_size; member
/external/libpcap/tests/
Dfiltertest.c85 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()
Dvalgrindtest.c118 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/
Dcommon.py102 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/
Dcrazy_linker_zip.cpp111 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()
Dcrazy_linker_elf_symbols.cpp71 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/
Dstat.h28 off_t st_size; member
66 long long st_size; member
107 off_t st_size; member
/external/elfutils/0.153/libelf/
Delf_readall.c120 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/
Dtimezone.c188 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/
Dmedia_file_utility.cc2258 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/
Dcopy_sparse.c126 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/
Dutil.c95 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/
Dstat.h32 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/
DtestSchemas.c92 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()
DtestRelax.c96 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/
Dandroid.c92 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 …]

1234567891011