/external/ltp/testcases/kernel/syscalls/mlock/ |
H A D | 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/google-breakpad/src/common/linux/ |
H A D | 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/libchrome/base/files/ |
H A D | memory_mapped_file_posix.cc | 33 int64_t file_len = file_.GetLength(); local 34 if (file_len < 0) { 38 map_size = static_cast<size_t>(file_len); 81 auto file_len = file_.GetLength(); local 82 if (file_len < 0) { 86 file_.SetLength(std::max(file_len, region.offset + region.size));
|
/external/icu/icu4c/source/test/perf/ubrkperf/ |
H A D | ubrkperf.h | 27 ICUBreakFunction(const char *locale, const char *mode, const UChar *file, int32_t file_len) : argument 30 m_fileLen_(file_len), 63 ICUIsBound(const char *locale, const char *mode, const UChar *file, int32_t file_len) : argument 64 ICUBreakFunction(locale, mode, file, file_len) 90 ICUForward(const char *locale, const char *mode, const UChar *file, int32_t file_len) : argument 91 ICUBreakFunction(locale, mode, file, file_len)
|
/external/syslinux/com32/lua/src/ |
H A D | syslinux.c | 186 size_t kernel_len, file_len; local 290 size_t file_len; local 292 if (loadfile(filename, &file_data, &file_len)) { 299 file->size = file_len; 359 size_t file_len = 0; local 361 return initramfs_add_file(initramfs, file_data, file_len, file_len,
|
/external/syslinux/com32/gfxboot/ |
H A D | gfxboot.c | 167 unsigned find_file(unsigned char *buf, unsigned len, unsigned *gfx_file_start, unsigned *file_len, unsigned *code_size); 495 unsigned find_file(unsigned char *buf, unsigned len, unsigned *gfx_file_start, unsigned *file_len, unsigned *code_size) argument 507 *file_len = *(unsigned short *) (buf + i + 24) + (*(unsigned short *) (buf + i + 22) << 16); 514 i += *file_len; 536 unsigned code_start, code_size, file_start, file_len, u; local 555 if(!(code_start = find_file(archive, archive_size, &file_start, &file_len, &code_size))) { 564 "file_start = 0x%x, file_len = 0x%x\n", 567 file_start, file_len
|
/external/wpa_supplicant_8/hostapd/src/utils/ |
H A D | pcsc_funcs.c | 267 int *ps_do, int *file_len) 273 if (file_len) 274 *file_len = -1; 328 if ((len == 1 || len == 2) && file_len) { 330 *file_len = (int) pos[0]; 332 *file_len = WPA_GET_BE16(pos); 334 *file_len); 266 scard_parse_fsp_templ(unsigned char *buf, size_t buf_len, int *ps_do, int *file_len) argument
|
/external/wpa_supplicant_8/src/utils/ |
H A D | pcsc_funcs.c | 267 int *ps_do, int *file_len) 273 if (file_len) 274 *file_len = -1; 328 if ((len == 1 || len == 2) && file_len) { 330 *file_len = (int) pos[0]; 332 *file_len = WPA_GET_BE16(pos); 334 *file_len); 266 scard_parse_fsp_templ(unsigned char *buf, size_t buf_len, int *ps_do, int *file_len) argument
|
/external/wpa_supplicant_8/wpa_supplicant/src/utils/ |
H A D | pcsc_funcs.c | 267 int *ps_do, int *file_len) 273 if (file_len) 274 *file_len = -1; 328 if ((len == 1 || len == 2) && file_len) { 330 *file_len = (int) pos[0]; 332 *file_len = WPA_GET_BE16(pos); 334 *file_len); 266 scard_parse_fsp_templ(unsigned char *buf, size_t buf_len, int *ps_do, int *file_len) argument
|
/external/syslinux/gpxe/src/arch/i386/interface/syslinux/ |
H A D | comboot_call.c | 559 int file_len = strlen_user ( file_u, 0 ); local 561 char file[file_len + 1]; 564 copy_from_user ( file, file_u, 0, file_len + 1 );
|
/external/vulkan-validation-layers/windowsRuntimeInstaller/ |
H A D | configure_runtime.c | 491 size_t file_len = strlen(filename + borders[4] + 1); local 492 if(file_len - 4 < SDK_VERSION_BUFFER_SIZE) { 493 version->extended[file_len - 4] = '\0';
|
/external/libmtp/src/ |
H A D | ptp.c | 3875 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);
|