Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/mlock/
Dmlock04.c48 int fd, file_len = 40960; variable
62 buf = mmap(NULL, file_len, PROT_WRITE, MAP_SHARED, fd, 0); in main()
67 if (mlock(buf, file_len) == -1) in main()
70 tst_resm(TINFO, "locked %d bytes from %p", file_len, buf); in main()
72 if (munlock(buf, file_len) == -1) in main()
75 if (munmap(buf, file_len) == -1) in main()
94 if (ftruncate(fd, file_len) == -1) in setup()
/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/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/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/syslinux/com32/lua/src/
Dsyslinux.c186 size_t kernel_len, file_len; in sl_boot_linux() local
290 size_t file_len; in sl_loadfile() local
292 if (loadfile(filename, &file_data, &file_len)) { in sl_loadfile()
299 file->size = file_len; in sl_loadfile()
359 size_t file_len = 0; in sl_initramfs_add_file() local
361 return initramfs_add_file(initramfs, file_data, file_len, file_len, in sl_initramfs_add_file()
/external/libchrome/base/files/
Dmemory_mapped_file_posix.cc33 int64_t file_len = file_.GetLength(); in MapFileRegionToMemory() local
34 if (file_len == -1) { in MapFileRegionToMemory()
38 map_size = static_cast<size_t>(file_len); in MapFileRegionToMemory()
/external/syslinux/com32/gfxboot/
Dgfxboot.c167 unsigned find_file(unsigned char *buf, unsigned len, unsigned *gfx_file_start, unsigned *file_len, …
495 unsigned find_file(unsigned char *buf, unsigned len, unsigned *gfx_file_start, unsigned *file_len, … in find_file() argument
507 *file_len = *(unsigned short *) (buf + i + 24) + (*(unsigned short *) (buf + i + 22) << 16); in find_file()
514 i += *file_len; in find_file()
536 unsigned code_start, code_size, file_start, file_len, u; in gfx_init() local
555 if(!(code_start = find_file(archive, archive_size, &file_start, &file_len, &code_size))) { in gfx_init()
567 file_start, file_len in gfx_init()
/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/syslinux/gpxe/src/arch/i386/interface/syslinux/
Dcomboot_call.c559 int file_len = strlen_user ( file_u, 0 ); in int22() local
561 char file[file_len + 1]; in int22()
564 copy_from_user ( file, file_u, 0, file_len + 1 ); in int22()
/external/vulkan-validation-layers/windowsRuntimeInstaller/
Dconfigure_runtime.c452 size_t file_len = strlen(filename + borders[4] + 1); in read_version_from_filename() local
453 if(file_len - 4 < SDK_VERSION_BUFFER_SIZE) { in read_version_from_filename()
454 version->extended[file_len - 4] = '\0'; in read_version_from_filename()
/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);