Home
last modified time | relevance | path

Searched refs:file_len (Results 1 – 9 of 9) 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/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/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()
90 void* data = sys_mmap(NULL, file_len, PROT_READ, MAP_PRIVATE, fd, offset); in Map()
96 content_.Set(data, file_len - offset); in Map()
/external/openssh/
Dprogressmeter.c129 int file_len; in refresh_progress_meter() local
169 file_len = win_size - 36; in refresh_progress_meter()
170 if (file_len > 0) { in refresh_progress_meter()
172 snmprintf(buf+1, sizeof(buf)-1, &file_len, "%-*s", in refresh_progress_meter()
173 file_len, file); in refresh_progress_meter()
/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/llvm-project/llvm/utils/llvm-lit/
DCMakeLists.txt2 list(LENGTH LLVM_LIT_CONFIG_FILES file_len)
3 math(EXPR file_last "${file_len} - 1")
/external/tensorflow/tensorflow/core/platform/hadoop/
Dhadoop_file_system_test.cc314 const size_t file_len = in TEST_F() local
317 char* p = new char[file_len]; in TEST_F()
318 for (size_t i = 0; i < file_len; ++i) { in TEST_F()
321 string file_write_content(p, file_len); in TEST_F()
/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/vm_tools/p9/src/server/
Dtests.rs264 let file_len = if file_path.exists() { in write() localVariable
292 let idx = if flags & P9_APPEND == 0 { 0 } else { file_len }; in write()