Searched defs:hFile (Results 1 - 25 of 112) sorted by relevance

12345

/vbox/src/VBox/Runtime/r3/win/
H A DrtFileNativeSetAttributes-win.cpp47 int rtFileNativeSetAttributes(HANDLE hFile, ULONG fAttributes) argument
62 NTSTATUS Status = NtSetInformationFile(hFile,
/vbox/src/VBox/Runtime/testcase/
H A DtstRTFileAppend-1.cpp46 RTFILE hFile = NIL_RTFILE; local
47 int rc = RTFileOpen(&hFile,
59 RTTESTI_CHECK_RC(rc = RTFileSeek(hFile, off, RTFILE_SEEK_CURRENT, &offActual), VINF_SUCCESS);
62 RTTESTI_CHECK_RC(RTFileWrite(hFile, "0123456789", 10, NULL), VINF_SUCCESS);
66 RTTESTI_CHECK_RC(rc = RTFileSeek(hFile, off, RTFILE_SEEK_CURRENT, &offActual), VINF_SUCCESS);
72 rc = RTFileRead(hFile, szBuf, 1, &cb);
77 RTTESTI_CHECK_RC(rc = RTFileSeek(hFile, off, RTFILE_SEEK_BEGIN, &offActual), VINF_SUCCESS);
80 RTTESTI_CHECK_RC(RTFileClose(hFile), VINF_SUCCESS);
88 rc = RTFileOpen(&hFile,
99 RTTESTI_CHECK_RC(rc = RTFileSeek(hFile, of
[all...]
H A DtstFileAppendWin-1.cpp70 HANDLE hFile; local
83 hFile = CreateFile("tstFileAppendWin-1.tst",
90 if (hFile == INVALID_HANDLE_VALUE)
94 if (!SetFilePointerEx(hFile, off, &off, FILE_CURRENT))
99 if (!WriteFile(hFile, "0123456789", 10, &cb, NULL))
103 if (!SetFilePointerEx(hFile, off, &off, FILE_CURRENT))
111 if (ReadFile(hFile, szBuf, 1, &cb, NULL))
115 if (!SetFilePointerEx(hFile, off, &off, FILE_BEGIN))
120 CloseHandle(hFile);
126 hFile
[all...]
H A DtstRTFileGetSize-1.cpp44 RTFILE hFile; local
45 rc = RTFileOpen(&hFile, pszFilename, RTFILE_O_READ | RTFILE_O_DENY_NONE | RTFILE_O_OPEN);
55 RTTESTI_CHECK_RC_RETV(RTFileOpen(&hFile, pszFilename, RTFILE_O_READ | RTFILE_O_DENY_NONE | RTFILE_O_OPEN), VINF_SUCCESS);
59 RTTESTI_CHECK_RC(rc = RTFileGetSize(hFile, &cbFile), VINF_SUCCESS);
66 RTFileClose(hFile);
H A DtstRTFilesystem.cpp119 RTFILE hFile; local
121 rc = RTFileOpen(&hFile, argv[1], RTFILE_O_OPEN | RTFILE_O_DENY_NONE | RTFILE_O_READ);
128 rc = RTVfsFileFromRTFile(hFile, 0, false, &hVfsFile);
/vbox/src/VBox/Runtime/common/checksum/
H A Dmanifest-file.cpp48 RTFILE hFile; local
50 int rc = RTFileOpen(&hFile, pszFilename, fFlags);
54 rc = RTVfsIoStrmFromRTFile(hFile, fFlags, true /*fLeaveOpen*/, &hVfsIos);
60 RTFileClose(hFile);
68 RTFILE hFile; local
70 int rc = RTFileOpen(&hFile, pszFilename, fFlags);
74 rc = RTVfsIoStrmFromRTFile(hFile, fFlags, true /*fLeaveOpen*/, &hVfsIos);
80 RTFileClose(hFile);
H A DRTSha1Digest.cpp115 RTFILE hFile; local
116 int rc = RTFileOpen(&hFile, pszFile, RTFILE_O_OPEN | RTFILE_O_READ | RTFILE_O_DENY_WRITE);
125 rc = RTFileGetSize(hFile, &cbFile);
128 RTFileClose(hFile);
153 rc = RTFileRead(hFile, pvBuf, cbBuf, &cbRead);
168 RTFileClose(hFile);
H A DRTSha256Digest.cpp118 RTFILE hFile; local
119 int rc = RTFileOpen(&hFile, pszFile, RTFILE_O_OPEN | RTFILE_O_READ | RTFILE_O_DENY_WRITE);
128 rc = RTFileGetSize(hFile, &cbFile);
131 RTFileClose(hFile);
152 rc = RTFileRead(hFile, pvBuf, cbBuf, &cbRead);
167 RTFileClose(hFile);
/vbox/include/iprt/
H A Dtar.h112 * @param hFile The file handle to close.
114 RTR3DECL(int) RTTarFileClose(RTTARFILE hFile); variable
122 * @param hFile Handle to the file.
129 RTR3DECL(int) RTTarFileReadAt(RTTARFILE hFile, uint64_t off, void *pvBuf, size_t cbToRead, size_t *pcbRead);
137 * @param hFile Handle to the file.
144 RTR3DECL(int) RTTarFileWriteAt(RTTARFILE hFile, uint64_t off, const void *pvBuf, size_t cbToWrite, size_t *pcbWritten);
151 * @param hFile Handle to the file.
154 RTR3DECL(int) RTTarFileGetSize(RTTARFILE hFile, uint64_t *pcbSize);
161 * @param hFile Handle to the file.
164 RTR3DECL(int) RTTarFileSetSize(RTTARFILE hFile, uint64_
[all...]
/vbox/src/VBox/Runtime/r3/posix/
H A DRTFileQueryFsSizes-posix.cpp45 RTR3DECL(int) RTFileQueryFsSizes(RTFILE hFile, PRTFOFF pcbTotal, RTFOFF *pcbFree, argument
50 if (fstatvfs(RTFileToNative(hFile), &StatVFS))
H A Dfilelock-posix.cpp51 RTR3DECL(int) RTFileLock(RTFILE hFile, unsigned fLock, int64_t offLock, uint64_t cbLock) argument
84 if (fcntl(RTFileToNative(hFile), (fLock & RTFILE_LOCK_WAIT) ? F_SETLKW : F_SETLK, &fl) >= 0)
96 RTR3DECL(int) RTFileChangeLock(RTFILE hFile, unsigned fLock, int64_t offLock, uint64_t cbLock) argument
99 return RTFileLock(hFile, fLock, offLock, cbLock);
103 RTR3DECL(int) RTFileUnlock(RTFILE hFile, int64_t offLock, uint64_t cbLock) argument
127 if (fcntl(RTFileToNative(hFile), F_SETLK, &fl) >= 0)
H A Dfileio2-posix.cpp70 RTR3DECL(int) RTFileQueryInfo(RTFILE hFile, PRTFSOBJINFO pObjInfo, RTFSOBJATTRADD enmAdditionalAttribs) argument
75 AssertReturn(hFile != NIL_RTFILE, VERR_INVALID_PARAMETER);
88 if (fstat(RTFileToNative(hFile), &Stat))
91 Log(("RTFileQueryInfo(%RTfile,,%d): returns %Rrc\n", hFile, enmAdditionalAttribs, rc));
128 LogFlow(("RTFileQueryInfo(%RTfile,,%d): returns VINF_SUCCESS\n", hFile, enmAdditionalAttribs));
133 RTR3DECL(int) RTFileSetTimes(RTFILE hFile, PCRTTIMESPEC pAccessTime, PCRTTIMESPEC pModificationTime, argument
155 int rc = RTFileQueryInfo(hFile, &ObjInfo, RTFSOBJATTRADD_UNIX);
162 if (futimens(RTFileToNative(hFile), aTimespecs))
165 Log(("RTFileSetTimes(%RTfile,%p,%p,,): returns %Rrc\n", hFile, pAccessTime, pModificationTime, rc));
182 int rc = RTFileQueryInfo(hFile,
[all...]
/vbox/src/VBox/Runtime/include/internal/
H A Drand.h153 intptr_t hFile; member in struct:RTRANDINT::__anon16658::RTRandFile
/vbox/src/VBox/Runtime/r3/darwin/
H A Dfilelock-darwin.cpp52 RTR3DECL(int) RTFileLock(RTFILE hFile, unsigned fLock, int64_t offLock, uint64_t cbLock) argument
85 if (fcntl(RTFileToNative(hFile), (fLock & RTFILE_LOCK_WAIT) ? F_SETLKW : F_SETLK, &fl) >= 0)
104 if (!flock(RTFileToNative(hFile), f))
119 RTR3DECL(int) RTFileChangeLock(RTFILE hFile, unsigned fLock, int64_t offLock, uint64_t cbLock) argument
122 return RTFileLock(hFile, fLock, offLock, cbLock);
126 RTR3DECL(int) RTFileUnlock(RTFILE hFile, int64_t offLock, uint64_t cbLock) argument
150 if (fcntl(RTFileToNative(hFile), F_SETLK, &fl) >= 0)
157 if (!flock(RTFileToNative(hFile), LOCK_UN))
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
H A Dbigfile2.c59 HANDLE hFile; local
92 hFile = CreateFile(TEST_FILE_NAME, GENERIC_READ, 0, NULL,
94 if (hFile == INVALID_HANDLE_VALUE) {
99 li.LowPart = SetFilePointer(hFile, li.LowPart, &li.HighPart, FILE_BEGIN);
105 if (ReadFile(hFile, buf, sizeof(buf), &nbytes, NULL) == 0) {
114 if (CloseHandle(hFile) == 0) {
H A Dbigfile3.c58 HANDLE hFile; local
66 hFile = CreateFile(TEST_FILE_NAME, GENERIC_WRITE, 0, NULL,
68 if (hFile == INVALID_HANDLE_VALUE) {
73 li.LowPart = SetFilePointer(hFile, li.LowPart, &li.HighPart, FILE_BEGIN);
80 if (WriteFile(hFile, buf, sizeof(buf), &nbytes, NULL) == 0) {
85 if (CloseHandle(hFile) == 0) {
/vbox/src/VBox/VMM/testcase/
H A DtstSSM-2.cpp38 RTFILE hFile; local
39 rc = RTFileOpen(&hFile, pszOutputFilename, RTFILE_O_DENY_NONE | RTFILE_O_WRITE | RTFILE_O_CREATE);
54 rc = RTFileWrite(hFile, &u8, sizeof(u8), &cbWritten);
61 RTFileClose(hFile);
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/w16gui/
H A Dpopfile.c98 static long PopFileLength (int hFile) argument
100 long lCurrentPos = _llseek (hFile, 0L, 1) ;
101 long lFileLength = _llseek (hFile, 0L, 2) ;
103 _llseek (hFile, lCurrentPos, 0) ;
112 int hFile ; local
115 if (-1 == (hFile = _lopen (lpstrFileName, OF_READ | OF_SHARE_DENY_WRITE)))
118 if ((lLength = PopFileLength (hFile)) >= 32000)
120 _lclose (hFile) ;
126 _lclose (hFile) ;
131 _lread (hFile, lpstrBuffe
145 int hFile ; local
[all...]
/vbox/src/bldprogs/
H A Dpreload.cpp37 HANDLE hFile = CreateFile(pszImage, local
44 if (hFile == INVALID_HANDLE_VALUE)
51 DWORD cbLow = GetFileSize(hFile, &cbHigh);
58 HANDLE hMap = CreateFileMapping(hFile,
66 CloseHandle(hFile);
/vbox/src/VBox/Additions/common/VBoxGuestLib/
H A DVBoxGuestR3LibDaemonize.cpp311 * @param hFile The handle for the file. NIL_RTFILE is ignored as usual.
313 VBGLR3DECL(void) VbglR3ClosePidFile(const char *pszPath, RTFILE hFile) argument
316 if (hFile != NIL_RTFILE)
319 RTFileWriteAt(hFile, 0, "-1", 2, NULL);
323 RTFileClose(hFile);
/vbox/src/VBox/Runtime/generic/
H A Dcreatetemp-generic.cpp174 RTFILE hFile; local
191 rc = RTFileOpen(&hFile, pszTemplate, fOpen);
194 RTFileClose(hFile);
/vbox/src/VBox/Runtime/r3/nt/
H A Dfs-nt.cpp54 HANDLE hFile; local
62 &hFile,
71 NTSTATUS rcNt = NtQueryVolumeInformationFile(hFile, &Ios, &FsSizeInfo, sizeof(FsSizeInfo), FileFsSizeInformation);
110 RTNtPathClose(hFile);
127 HANDLE hFile; local
135 &hFile,
148 NTSTATUS rcNt = NtQueryVolumeInformationFile(hFile, &Ios, &u, sizeof(u), FileFsVolumeInformation);
154 RTNtPathClose(hFile);
171 HANDLE hFile; local
179 &hFile,
241 HANDLE hFile; local
[all...]
/vbox/src/VBox/Installer/win/StubBld/
H A DVBoxStubBld.cpp50 HRESULT UpdateResource(HANDLE hFile, argument
61 hMap = ::CreateFileMapping(hFile, NULL, PAGE_READONLY, 0, 0, NULL);
90 HANDLE hFile = INVALID_HANDLE_VALUE; local
95 hr = GetFile(pszFilePath, &hFile, &dwFileSize);
103 hr = UpdateResource(hFile, pszFilePath, dwFileSize,
115 if (INVALID_HANDLE_VALUE != hFile)
117 ::CloseHandle(hFile);
118 hFile = INVALID_HANDLE_VALUE;
/vbox/src/VBox/Devices/Storage/
H A DDrvMediaISO.cpp55 RTFILE hFile; member in struct:DRVMEDIAISO
69 int rc = RTFileGetSize(pThis->hFile, &cbFile);
119 Assert(pThis->hFile != NIL_RTFILE);
125 int rc = RTFileReadAt(pThis->hFile, off, pvBuf, cbRead, NULL);
133 pThis->hFile, off, pvBuf, cbRead, rc, pThis->pszFilename));
199 if (pThis->hFile != NIL_RTFILE)
201 RTFileClose(pThis->hFile);
202 pThis->hFile = NIL_RTFILE;
227 pThis->hFile = NIL_RTFILE;
256 rc = RTFileOpen(&pThis->hFile, pszNam
[all...]
H A DDrvRawImage.cpp49 RTFILE hFile; member in struct:DRVRAWIMAGE
65 int rc = RTFileGetSize(pThis->hFile, &cbFile);
115 Assert(pThis->hFile != NIL_RTFILE);
121 int rc = RTFileSeek(pThis->hFile, off, RTFILE_SEEK_BEGIN, NULL);
124 rc = RTFileRead(pThis->hFile, pvBuf, cbRead, NULL);
134 pThis->hFile, pvBuf, cbRead, rc, off, pThis->pszFilename));
137 AssertMsgFailed(("RTFileSeek(%RTfile,%#llx,) -> %Rrc\n", pThis->hFile, off, rc));
149 Assert(pThis->hFile != NIL_RTFILE);
155 int rc = RTFileSeek(pThis->hFile, off, RTFILE_SEEK_BEGIN, NULL);
158 rc = RTFileWrite(pThis->hFile, pvBu
[all...]

Completed in 1385 milliseconds

12345