/external/google-breakpad/src/common/linux/ |
memory_mapped_file.cc | 81 size_t file_len = static_cast<size_t>(st.st_size); local 85 if (offset >= file_len) { 92 void* data = sys_mmap(NULL, file_len, PROT_READ, MAP_PRIVATE, fd, offset); 100 NULL, file_len, PROT_READ, MAP_PRIVATE, fd, offset >> 12); 107 content_.Set(data, file_len - offset);
|
/external/ltp/testcases/kernel/syscalls/mlock/ |
mlock04.c | 49 int fd, file_len = 40960; variable 63 buf = mmap(NULL, file_len, PROT_WRITE, MAP_SHARED, fd, 0); 68 if (mlock(buf, file_len) == -1) 71 tst_resm(TINFO, "locked %d bytes from %p", file_len, buf); 73 if (munlock(buf, file_len) == -1) 76 SAFE_MUNMAP(cleanup, buf, file_len); 92 SAFE_FTRUNCATE(cleanup, fd, file_len);
|
/external/libchrome/base/files/ |
memory_mapped_file_posix.cc | 38 int64_t file_len = file_.GetLength(); local 39 if (file_len < 0) { 43 if (!IsValueInRangeForNumericType<size_t>(file_len)) 45 map_size = static_cast<size_t>(file_len);
|
/external/u-boot/tools/ |
default_image.c | 142 ulong file_len; local 152 image_multi_getimg(hdr, idx, &file_data, &file_len); 154 if ((file_len == 0) || (idx >= count)) { 161 file_len = image_get_size(hdr); 165 return imagetool_save_subimage(params->outfile, file_data, file_len);
|
/external/u-boot/common/ |
log.c | 130 int file_len = strlen(file); local 137 if (file_len >= substr_len && 138 !strncmp(file + file_len - substr_len, s, substr_len))
|
/external/u-boot/drivers/dfu/ |
dfu_mmc.c | 239 u64 file_len; local 242 ret = mmc_file_op(DFU_OP_READ, dfu, dfu_file_buf, &file_len); 245 dfu_file_buf_filled = file_len;
|
/external/u-boot/fs/ext4/ |
ext4fs.c | 190 loff_t file_len; local 193 ret = ext4fs_open(filename, &file_len); 226 loff_t file_len; local 229 ret = ext4fs_open(filename, &file_len); 236 len = file_len;
|
/external/openssh/ |
progressmeter.c | 130 int file_len; local 161 file_len = win_size - 35; 162 if (file_len > 0) { 163 len = snprintf(buf, file_len + 1, "\r%s", file); 166 if (len >= file_len + 1) 167 len = file_len; 168 for (i = len; i < file_len; i++) 170 buf[file_len] = '\0';
|