Home
last modified time | relevance | path

Searched refs:hFile (Results 1 – 25 of 31) sorted by relevance

12

/external/zlib/src/contrib/minizip/
Diowin32.c77 static voidpf win32_build_iowin(HANDLE hFile) in win32_build_iowin() argument
81 if ((hFile != NULL) && (hFile != INVALID_HANDLE_VALUE)) in win32_build_iowin()
84 w32fiow.hf = hFile; in win32_build_iowin()
89 CloseHandle(hFile); in win32_build_iowin()
100 HANDLE hFile = NULL; in win32_open64_file_func() local
107hFile = CreateFile2((LPCTSTR)filename, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open64_file_func()
113 hFile = CreateFile2(filenameW, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open64_file_func()
118hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, d… in win32_open64_file_func()
121 return win32_build_iowin(hFile); in win32_open64_file_func()
129 HANDLE hFile = NULL; in win32_open64_file_funcA() local
[all …]
Dminiunz.c89 HANDLE hFile; local
92 hFile = CreateFileA(filename,GENERIC_READ | GENERIC_WRITE,
94 GetFileTime(hFile,&ftCreate,&ftLastAcc,&ftLastWrite);
97 SetFileTime(hFile,&ftm,&ftLastAcc,&ftm);
98 CloseHandle(hFile);
/external/fio/engines/
Dwindowsaio.c15 typedef BOOL (WINAPI *CANCELIOEX)(HANDLE hFile, LPOVERLAPPED lpOverlapped);
92 HANDLE hFile; in fio_windowsaio_init() local
94 hFile = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0); in fio_windowsaio_init()
95 if (hFile == INVALID_HANDLE_VALUE) { in fio_windowsaio_init()
102 wd->iocp = hFile; in fio_windowsaio_init()
110 CloseHandle(hFile); in fio_windowsaio_init()
118 ctx->iocp = hFile; in fio_windowsaio_init()
201 f->hFile = CreateFile(f->file_name, access, sharemode, in fio_windowsaio_open_file()
204 if (f->hFile == INVALID_HANDLE_VALUE) { in fio_windowsaio_open_file()
216 if (CreateIoCompletionPort(f->hFile, wd->iocp, 0, 0) == NULL) { in fio_windowsaio_open_file()
[all …]
/external/fio/os/
Dos-windows.h124 HANDLE hFile; in blockdev_size() local
128 if (f->hFile == NULL) { in blockdev_size()
129 hFile = CreateFile(f->file_name, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, in blockdev_size()
132 hFile = f->hFile; in blockdev_size()
135 …if (DeviceIoControl(hFile, IOCTL_DISK_GET_LENGTH_INFO, NULL, 0, &info, sizeof(info), &outBytes, NU… in blockdev_size()
142 if (hFile != INVALID_HANDLE_VALUE && f->hFile == NULL) in blockdev_size()
143 CloseHandle(hFile); in blockdev_size()
/external/python/cpython3/PC/bdist_wininst/
Dextract.c64 HANDLE hFile, hFileMapping; in map_new_file() local
71 hFile = CreateFile(filename, in map_new_file()
76 if (hFile == INVALID_HANDLE_VALUE) { in map_new_file()
81 hFile = CreateFile(filename, in map_new_file()
104 if (hFile == INVALID_HANDLE_VALUE) { in map_new_file()
114 SetFileTime(hFile, &ft, &ft, &ft); in map_new_file()
120 CloseHandle(hFile); in map_new_file()
124 hFileMapping = CreateFileMapping(hFile, in map_new_file()
127 CloseHandle(hFile); in map_new_file()
Dinstall.c1019 HANDLE hFile, hFileMapping; in MapExistingFile() local
1023 hFile = CreateFile(pathname, in MapExistingFile()
1027 if (hFile == INVALID_HANDLE_VALUE) in MapExistingFile()
1029 nSizeLow = GetFileSize(hFile, &nSizeHigh); in MapExistingFile()
1030 hFileMapping = CreateFileMapping(hFile, in MapExistingFile()
1032 CloseHandle(hFile); in MapExistingFile()
/external/python/cpython2/PC/bdist_wininst/
Dextract.c65 HANDLE hFile, hFileMapping; in map_new_file() local
72 hFile = CreateFile(filename, in map_new_file()
77 if (hFile == INVALID_HANDLE_VALUE) { in map_new_file()
82 hFile = CreateFile(filename, in map_new_file()
105 if (hFile == INVALID_HANDLE_VALUE) { in map_new_file()
115 SetFileTime(hFile, &ft, &ft, &ft); in map_new_file()
121 CloseHandle(hFile); in map_new_file()
125 hFileMapping = CreateFileMapping(hFile, in map_new_file()
128 CloseHandle(hFile); in map_new_file()
Dinstall.c975 HANDLE hFile, hFileMapping; in MapExistingFile() local
979 hFile = CreateFile(pathname, in MapExistingFile()
983 if (hFile == INVALID_HANDLE_VALUE) in MapExistingFile()
985 nSizeLow = GetFileSize(hFile, &nSizeHigh); in MapExistingFile()
986 hFileMapping = CreateFileMapping(hFile, in MapExistingFile()
988 CloseHandle(hFile); in MapExistingFile()
/external/lz4/programs/
Dutil.h287 HANDLE hFile; in UTIL_prepareFileList() local
298 hFile=FindFirstFileA(path, &cFile); in UTIL_prepareFileList()
299 if (hFile == INVALID_HANDLE_VALUE) { in UTIL_prepareFileList()
308 if (!path) { FindClose(hFile); return 0; } in UTIL_prepareFileList()
319 if (*bufStart == NULL) { free(path); FindClose(hFile); return 0; } in UTIL_prepareFileList()
326 if (*bufStart == NULL) { free(path); FindClose(hFile); return 0; } in UTIL_prepareFileList()
335 } while (FindNextFileA(hFile, &cFile)); in UTIL_prepareFileList()
337 FindClose(hFile); in UTIL_prepareFileList()
/external/zlib/src/contrib/untgz/
Duntgz.c213 HANDLE hFile; in setfiletime() local
234 hFile = CreateFile(fname, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, in setfiletime()
237 if (hFile == INVALID_HANDLE_VALUE) in setfiletime()
239 result = SetFileTime(hFile, NULL, NULL, &modft) ? 0 : -1; in setfiletime()
240 CloseHandle(hFile); in setfiletime()
/external/ImageMagick/coders/
Demf.c317 hFile; in ReadEnhMetaFile() local
405 hFile=CreateFile(path,GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL, in ReadEnhMetaFile()
407 if (hFile == INVALID_HANDLE_VALUE) in ReadEnhMetaFile()
409 dwSize=GetFileSize(hFile,NULL); in ReadEnhMetaFile()
411 ReadFile(hFile,pBits,dwSize,&dwSize,NULL); in ReadEnhMetaFile()
412 CloseHandle(hFile); in ReadEnhMetaFile()
/external/pdfium/core/fxcrt/
Dcfx_fileaccess_windows.cpp42 WINBASEAPI BOOL WINAPI GetFileSizeEx(HANDLE hFile, PLARGE_INTEGER lpFileSize);
43 WINBASEAPI BOOL WINAPI SetFilePointerEx(HANDLE hFile,
/external/python/cpython2/Modules/_io/
Dfileio.c831 HANDLE hFile; in fileio_truncate() local
852 hFile = (HANDLE)_get_osfhandle(fd); in fileio_truncate()
853 ret = hFile == (HANDLE)-1; /* testing for INVALID_HANDLE value */ in fileio_truncate()
855 ret = SetEndOfFile(hFile) == 0; in fileio_truncate()
/external/google-breakpad/src/client/windows/crash_generation/
Dminidump_generator.h104 HANDLE hFile,
/external/mesa3d/src/gallium/auxiliary/util/
Ddbghelp.h28 HANDLE hFile; member
528 HANDLE hFile; member
546 HANDLE hFile; member
726 …DWORD64 IMAGEAPI SymLoadModule64(HANDLE hProcess,HANDLE hFile,PSTR ImageName,PSTR ModuleName,DWORD…
730 …DWORD64 IMAGEAPI SymLoadModuleEx(HANDLE hProcess,HANDLE hFile,PSTR ImageName,PSTR ModuleName,DWORD…
735 …DWORD IMAGEAPI SymLoadModule(HANDLE hProcess,HANDLE hFile,PSTR ImageName,PSTR ModuleName,DWORD Bas…
1257 …BOOL WINAPI MiniDumpWriteDump(HANDLE hProcess,DWORD ProcessId,HANDLE hFile,MINIDUMP_TYPE DumpType,…
/external/llvm/utils/KillTheDoctor/
DKillTheDoctor.cpp448 ::CloseHandle(DebugEvent.u.CreateProcessInfo.hFile); in main()
475 FileScopedHandle DLLFile(DebugEvent.u.LoadDll.hFile); in main()
/external/fio/
Dfile.h79 HANDLE hFile; member
/external/swiftshader/third_party/LLVM/utils/KillTheDoctor/
DKillTheDoctor.cpp487 ::CloseHandle(DebugEvent.u.CreateProcessInfo.hFile); in main()
514 FileScopedHandle DLLFile(DebugEvent.u.LoadDll.hFile); in main()
/external/tensorflow/tensorflow/core/platform/windows/
Dwindows_file_system.cc142 WindowsWritableFile(const string& fname, HANDLE hFile) in WindowsWritableFile() argument
143 : filename_(fname), hfile_(hFile) {} in WindowsWritableFile()
/external/python/cpython3/Modules/
Dposixmodule.c1537 HANDLE hFile, hFile2; in win32_xstat_impl() local
1543 hFile = CreateFileW( in win32_xstat_impl()
1557 if (hFile == INVALID_HANDLE_VALUE) { in win32_xstat_impl()
1578 if (!GetFileInformationByHandle(hFile, &info)) { in win32_xstat_impl()
1579 CloseHandle(hFile); in win32_xstat_impl()
1583 if (!win32_get_reparse_tag(hFile, &reparse_tag)) in win32_xstat_impl()
1588 if (!CloseHandle(hFile)) in win32_xstat_impl()
1610 CloseHandle(hFile); in win32_xstat_impl()
3674 HANDLE hFile; in os__getfinalpathname_impl() local
3685 hFile = CreateFileW( in os__getfinalpathname_impl()
[all …]
/external/google-breakpad/src/client/windows/handler/
Dexception_handler.h303 HANDLE hFile,
/external/fio/os/windows/
Dposix.c594 HANDLE hFile = (HANDLE)_get_osfhandle(fildes); in fsync() local
595 if (!FlushFileBuffers(hFile)) { in fsync()
/external/mdnsresponder/mDNSWindows/mdnsNSP/
DmdnsNSP.c1847 HostsFile * hFile; in InHostsTable() local
1851 err = HostsFileOpen( &hFile, hFileName ); in InHostsTable()
1854 while ( HostsFileNext( hFile, &node ) == 0 ) in InHostsTable()
1867 HostsFileClose( hFile ); in InHostsTable()
/external/python/cpython2/Objects/
Dfileobject.c870 HANDLE hFile; in file_truncate() local
883 hFile = (HANDLE)_get_osfhandle(fileno(f->f_fp)); in file_truncate()
884 ret = hFile == (HANDLE)-1; in file_truncate()
886 ret = SetEndOfFile(hFile) == 0; in file_truncate()
/external/python/cpython2/Modules/
Dposixmodule.c2962 HANDLE hFile; in posix_utime() local
2970 hFile = CreateFileW(wpath, FILE_WRITE_ATTRIBUTES, 0, in posix_utime() local
2974 if (hFile == INVALID_HANDLE_VALUE) in posix_utime()
2986 hFile = CreateFileA(apath, FILE_WRITE_ATTRIBUTES, 0, in posix_utime() local
2990 if (hFile == INVALID_HANDLE_VALUE) { in posix_utime()
3022 if (!SetFileTime(hFile, NULL, &atime, &mtime)) { in posix_utime()
3033 CloseHandle(hFile); in posix_utime()

12