Home
last modified time | relevance | path

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

12

/external/zlib/src/contrib/minizip/
Diowin32.c76 static voidpf win32_build_iowin(HANDLE hFile) in win32_build_iowin() argument
80 if ((hFile != NULL) && (hFile != INVALID_HANDLE_VALUE)) in win32_build_iowin()
83 w32fiow.hf = hFile; in win32_build_iowin()
88 CloseHandle(hFile); in win32_build_iowin()
99 HANDLE hFile = NULL; in win32_open64_file_func() local
106hFile = CreateFile2((LPCTSTR)filename, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open64_file_func()
112 hFile = CreateFile2(filenameW, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open64_file_func()
117hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, d… in win32_open64_file_func()
120 return win32_build_iowin(hFile); in win32_open64_file_func()
128 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/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/pdfium/core/fxcrt/
Dfxcrt_windows.cpp35 WINBASEAPI BOOL WINAPI GetFileSizeEx(HANDLE hFile, PLARGE_INTEGER lpFileSize);
36 WINBASEAPI BOOL WINAPI SetFilePointerEx(HANDLE hFile,
/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/fmtlib/test/
Dposix-mock.h62 DWORD GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh);
Dposix-mock-test.cc121 DWORD test::GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh) { in GetFileSize() argument
131 return ::GetFileSize(hFile, lpFileSizeHigh); in GetFileSize()
/external/google-breakpad/src/client/windows/crash_generation/
Dminidump_generator.h104 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/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/pdfium/xfa/fgas/crt/
Dfgas_stream.cpp315 HANDLE hFile = _fileno(file); in FileSetSize() local
316 uint32_t dwPos = ::SetFilePointer(hFile, 0, 0, FILE_CURRENT); in FileSetSize()
317 ::SetFilePointer(hFile, size, 0, FILE_BEGIN); in FileSetSize()
318 bool bRet = ::SetEndOfFile(hFile); in FileSetSize()
319 ::SetFilePointer(hFile, (int32_t)dwPos, 0, FILE_BEGIN); in FileSetSize()
/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()
/external/v8/src/base/platform/
Dplatform-win32.cc982 IN HANDLE hFile,

12