Searched refs:st_size (Results 1 - 25 of 263) sorted by relevance

1234567891011

/external/chromium_org/third_party/ots/test/
H A Dperf.cc41 uint8_t *data = new uint8_t[st.st_size];
42 if (::read(fd, data, st.st_size) != st.st_size) {
51 uint8_t *result = new uint8_t[st.st_size + kPadLen];
54 if (st.st_size < 1024 * 1024) {
57 if (st.st_size < 1024 * 100) {
64 ots::MemoryStream output(result, st.st_size + kPadLen);
65 bool r = ots::Process(&output, data, st.st_size);
77 us, argv[1], static_cast<long long>(st.st_size),
78 (us ? st.st_size / u
[all...]
H A Dot-sanitise.cc52 uint8_t *data = new uint8_t[st.st_size];
53 if (::read(fd, data, st.st_size) != st.st_size) {
63 const bool result = ots::Process(&output, data, st.st_size);
H A Didempotent.cc58 *file_size = st.st_size;
59 *data = new uint8_t[st.st_size];
60 if (read(fd, *data, st.st_size) != st.st_size) {
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/re2c/examples/
H A Dbasemmap.c17 buf = mmap(NULL, statbuf.st_size, PROT_READ, MAP_SHARED|MAP_NORESERVE,
20 uchar *cur, *lim = &buf[statbuf.st_size];
24 munmap(buf, statbuf.st_size);
/external/kernel-headers/original/uapi/asm-x86/asm/
H A Dstat.h17 unsigned long st_size; member in struct:stat
56 long long st_size; member in struct:stat64
92 __kernel_long_t st_size; member in struct:stat
125 unsigned long st_size; member in struct:__old_kernel_stat
130 unsigned int st_size; member in struct:__old_kernel_stat
/external/kernel-headers/original/uapi/asm-arm/asm/
H A Dstat.h12 unsigned long st_size; member in struct:__old_kernel_stat
38 unsigned long st_size; member in struct:stat
71 long long st_size; member in struct:stat64
/external/kernel-headers/original/uapi/asm-generic/
H A Dstat.h32 long st_size; /* Size of file, in bytes. */ member in struct:stat
57 long long st_size; /* Size of file, in bytes. */ member in struct:stat64
/external/elfutils/0.153/lib/
H A Dcrc32_file.c67 size_t mapsize = st.st_size;
82 if (st.st_size <= (off_t) mapsize)
84 *resp = crc32 (crc, mapped, st.st_size);
90 st.st_size -= mapsize;
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/memfs/
H A Dmem_fs_node.cc53 size_t size = stat_.st_size;
75 if (new_size > stat_.st_size) {
105 } else if (new_length < stat_.st_size) {
120 if (new_length > stat_.st_size)
121 memset(data_ + stat_.st_size, 0, new_length - stat_.st_size);
122 stat_.st_size = new_length;
/external/elfutils/0.153/libdwfl/
H A Ddwfl_module_addrsym.c95 Here we store only symbols with nonzero st_size. */
99 /* Keep track of an eligible symbol with st_size == 0 as a fallback. */
125 if (sym.st_value + sym.st_size > min_label)
126 min_label = sym.st_value + sym.st_size;
128 if (sym.st_size == 0 || addr - sym.st_value < sym.st_size)
137 if (sym.st_size != 0)
148 st_size. If no symbol with proper size includes
159 else if (sym.st_size != 0
161 && closest_sym->st_size > sy
[all...]
/external/sepolicy/tools/sepolicy-analyze/
H A Dutils.c42 map = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
52 pf->len = sb.st_size;
56 munmap(map, sb.st_size);
63 munmap(map, sb.st_size);
/external/kernel-headers/original/uapi/asm-mips/asm/
H A Dstat.h28 off_t st_size; member in struct:stat
66 long long st_size; member in struct:stat64
107 off_t st_size; member in struct:stat
/external/elfutils/0.153/libelf/
H A 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;
H A Dgelf_update_sym.c98 || unlikely (src->st_size > 0xffffffffull))
117 COPY (st_size);
H A Dgelf_update_symshndx.c124 || unlikely (src->st_size > 0xffffffffull))
143 COPY (st_size);
/external/iproute2/netem/
H A Dstats.c28 if (info.st_size > 0) {
29 limit = 2*info.st_size/sizeof(double); /* @@ approximate */
/external/skia/src/ports/
H A DSkOSFile_posix.cpp55 if (!SkTFitsIn<size_t>(status.st_size)) {
58 size_t fileSize = static_cast<size_t>(status.st_size);
/external/chromium_org/third_party/android_crazy_linker/src/src/
H A Dcrazy_linker_zip.cpp111 if (stat_buf.st_size > kMaxZipFileLength) {
113 __FUNCTION__, stat_buf.st_size, zip_file);
118 void* mem = fd.Map(NULL, stat_buf.st_size, PROT_READ, MAP_PRIVATE, 0);
124 ScopedMMap scoped_mmap(mem, stat_buf.st_size);
130 for (off = stat_buf.st_size - sizeof(kEndOfCentralDirectoryMarker);
H A Dcrazy_linker_elf_symbols.cpp71 elf_addr < sym->st_value + sym->st_size) {
94 if (elf_addr >= sym->st_value && elf_addr < sym->st_value + sym->st_size) {
105 diff = elf_addr - sym->st_value - sym->st_size;
118 *sym_size = nearest_sym->st_size;
/external/libpcap/tests/
H A Dfiltertest.c85 cp = malloc((u_int)buf.st_size + 1);
87 error("malloc(%d) for %s: %s", (u_int)buf.st_size + 1,
89 cc = read(fd, cp, (u_int)buf.st_size);
92 if (cc != buf.st_size)
93 error("short read %s (%d != %d)", fname, cc, (int)buf.st_size);
H A Dvalgrindtest.c118 cp = malloc((u_int)buf.st_size + 1);
120 error("malloc(%d) for %s: %s", (u_int)buf.st_size + 1,
122 cc = read(fd, cp, (u_int)buf.st_size);
125 if (cc != buf.st_size)
126 error("short read %s (%d != %d)", fname, cc, (int)buf.st_size);
/external/e2fsprogs/util/
H A Dcopy_sparse.c126 numblocks = (fileinfo.st_size + (bs-1)) / bs;
129 (long long) fileinfo.st_size, numblocks);
189 offset = fileinfo.st_size;
194 if (fileinfo.st_size != offset) {
/external/chromium_org/third_party/skia/src/ports/
H A DSkOSFile_posix.cpp67 if (!SkTFitsIn<size_t>(status.st_size)) {
70 size_t fileSize = static_cast<size_t>(status.st_size);
/external/chromium_org/ui/surface/
H A Dtransport_dib_posix.cc87 (!shared_memory_.Map(st.st_size))) {
91 size_ = st.st_size;
/external/chromium_org/third_party/google_appengine_cloudstorage/cloudstorage/
H A Dcommon.py102 st_size,
115 st_size: file size in bytes. long compatible.
126 self.st_size = None
133 self.st_size = long(st_size)
144 '(filename: %(filename)s, st_size: %(st_size)s, '
149 st_size=self.st_size,

Completed in 6759 milliseconds

1234567891011