Home
last modified time | relevance | path

Searched refs:file_len (Results 1 – 13 of 13) sorted by relevance

/external/ltp/testcases/kernel/syscalls/mlock/
Dmlock04.c49 int fd, file_len = 40960; variable
63 buf = mmap(NULL, file_len, PROT_WRITE, MAP_SHARED, fd, 0); in main()
68 if (mlock(buf, file_len) == -1) in main()
71 tst_resm(TINFO, "locked %d bytes from %p", file_len, buf); in main()
73 if (munlock(buf, file_len) == -1) in main()
76 SAFE_MUNMAP(cleanup, buf, file_len); in main()
92 SAFE_FTRUNCATE(cleanup, fd, file_len); in setup()
/external/openssh/
Dprogressmeter.c130 int file_len; in refresh_progress_meter() local
161 file_len = win_size - 35; in refresh_progress_meter()
162 if (file_len > 0) { in refresh_progress_meter()
163 len = snprintf(buf, file_len + 1, "\r%s", file); in refresh_progress_meter()
166 if (len >= file_len + 1) in refresh_progress_meter()
167 len = file_len; in refresh_progress_meter()
168 for (i = len; i < file_len; i++) in refresh_progress_meter()
170 buf[file_len] = '\0'; in refresh_progress_meter()
/external/google-breakpad/src/common/linux/
Dmemory_mapped_file.cc81 size_t file_len = static_cast<size_t>(st.st_size); in Map() local
85 if (offset >= file_len) { in Map()
92 void* data = sys_mmap(NULL, file_len, PROT_READ, MAP_PRIVATE, fd, offset); in Map()
100 NULL, file_len, PROT_READ, MAP_PRIVATE, fd, offset >> 12); in Map()
107 content_.Set(data, file_len - offset); in Map()
/external/icu/icu4c/source/test/perf/ubrkperf/
Dubrkperf.h27 ICUBreakFunction(const char *locale, const char *mode, const UChar *file, int32_t file_len) : in ICUBreakFunction() argument
30 m_fileLen_(file_len), in ICUBreakFunction()
63 ICUIsBound(const char *locale, const char *mode, const UChar *file, int32_t file_len) : in ICUIsBound() argument
64 ICUBreakFunction(locale, mode, file, file_len) in ICUIsBound()
90 ICUForward(const char *locale, const char *mode, const UChar *file, int32_t file_len) : in ICUForward() argument
91 ICUBreakFunction(locale, mode, file, file_len) in ICUForward()
/external/u-boot/tools/
Ddefault_image.c142 ulong file_len; in image_extract_subimage() local
152 image_multi_getimg(hdr, idx, &file_data, &file_len); in image_extract_subimage()
154 if ((file_len == 0) || (idx >= count)) { in image_extract_subimage()
161 file_len = image_get_size(hdr); in image_extract_subimage()
165 return imagetool_save_subimage(params->outfile, file_data, file_len); in image_extract_subimage()
Dimagetool.c71 ulong file_len) in imagetool_save_subimage() argument
83 if (write(dfd, (void *)file_data, file_len) != (ssize_t)file_len) { in imagetool_save_subimage()
Dimagetool.h197 ulong file_len);
/external/u-boot/fs/ext4/
Dext4fs.c190 loff_t file_len; in ext4fs_exists() local
193 ret = ext4fs_open(filename, &file_len); in ext4fs_exists()
226 loff_t file_len; in ext4_read_file() local
229 ret = ext4fs_open(filename, &file_len); in ext4_read_file()
236 len = file_len; in ext4_read_file()
/external/libchrome/base/files/
Dmemory_mapped_file_posix.cc38 int64_t file_len = file_.GetLength(); in MapFileRegionToMemory() local
39 if (file_len < 0) { in MapFileRegionToMemory()
43 if (!IsValueInRangeForNumericType<size_t>(file_len)) in MapFileRegionToMemory()
45 map_size = static_cast<size_t>(file_len); in MapFileRegionToMemory()
/external/u-boot/common/
Dlog.c130 int file_len = strlen(file); in log_has_file() local
137 if (file_len >= substr_len && in log_has_file()
138 !strncmp(file + file_len - substr_len, s, substr_len)) in log_has_file()
/external/u-boot/drivers/dfu/
Ddfu_mmc.c239 u64 file_len; in mmc_file_unbuffer() local
242 ret = mmc_file_op(DFU_OP_READ, dfu, dfu_file_buf, &file_len); in mmc_file_unbuffer()
245 dfu_file_buf_filled = file_len; in mmc_file_unbuffer()
/external/wpa_supplicant_8/src/utils/
Dpcsc_funcs.c267 int *ps_do, int *file_len) in scard_parse_fsp_templ() argument
273 if (file_len) in scard_parse_fsp_templ()
274 *file_len = -1; in scard_parse_fsp_templ()
328 if ((len == 1 || len == 2) && file_len) { in scard_parse_fsp_templ()
330 *file_len = (int) pos[0]; in scard_parse_fsp_templ()
332 *file_len = WPA_GET_BE16(pos); in scard_parse_fsp_templ()
334 *file_len); in scard_parse_fsp_templ()
/external/libmtp/src/
Dptp.c3875 unsigned file_len,data_len,file_name_len;
3887 file_len = ftell(f);
3891 data_len = 4 + file_name_len + file_len;
3895 fread(buf+4+file_name_len,1,file_len,f);