Searched defs:File (Results 1 - 25 of 61) sorted by relevance

123

/vbox/src/VBox/Runtime/generic/
H A DRTFileReadAllByHandle-generic.cpp35 RTDECL(int) RTFileReadAllByHandle(RTFILE File, void **ppvFile, size_t *pcbFile) argument
37 return RTFileReadAllByHandleEx(File, 0, RTFOFF_MAX, 0, ppvFile, pcbFile);
H A DRTFileReadAllEx-generic.cpp42 RTFILE File; local
43 int rc = RTFileOpen(&File, pszFilename, RTFILE_O_READ | RTFILE_O_OPEN | (fFlags & RTFILE_RDALL_O_DENY_MASK));
46 rc = RTFileReadAllByHandleEx(File, off, cbMax, fFlags, ppvFile, pcbFile);
47 RTFileClose(File);
H A DRTFileReadAllByHandleEx-generic.cpp40 RTDECL(int) RTFileReadAllByHandleEx(RTFILE File, RTFOFF off, RTFOFF cbMax, uint32_t fFlags, void **ppvFile, size_t *pcbFile) argument
48 int rc = RTFileSeek(File, 0, RTFILE_SEEK_CURRENT, (uint64_t *)&offOrg);
55 rc = RTFileSeek(File, 0,RTFILE_SEEK_END, (uint64_t *)&cbFile);
76 rc = RTFileSeek(File, off, RTFILE_SEEK_BEGIN, NULL);
80 rc = RTFileRead(File, pvFile, cbAllocMem, NULL);
101 RTFileSeek(File, offOrg, RTFILE_SEEK_BEGIN, NULL);
/vbox/src/VBox/Runtime/testcase/
H A DtstFileLock.cpp3 * IPRT Testcase - File Locks.
53 RTFILE File; local
54 int rc = RTFileOpen(&File, "tstLock.tst", RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
55 RTPrintf("File open: rc=%Rrc\n", rc);
64 rc = RTFileOpen(&File, "tstLock.tst", RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_NONE);
65 RTPrintf("File create: rc=%Rrc\n", rc);
75 rc = RTFileSetSize(File, fRun ? 2048 : 20480);
76 RTPrintf("File size: rc=%Rrc\n", rc);
80 rc = RTFileRead(File, &buf, sizeof(buf), NULL);
84 rc = RTFileWrite(File, achTest
[all...]
H A DtstFile.cpp3 * IPRT Testcase - File I/O.
44 RTFILE File; local
45 int rc = RTFileOpen(&File, "tstFile#1.tst", RTFILE_O_READWRITE | RTFILE_O_CREATE_REPLACE | RTFILE_O_DENY_NONE);
53 rc = RTFileGetMaxSizeEx(File, &cbMax);
64 else if (RTFileGetMaxSize(File) != cbMax)
66 RTPrintf("tstFile: RTFileGetMaxSize failed; returns %RTfoff instead of %RTfoff\n", RTFileGetMaxSize(File), cbMax);
73 rc = RTFileSetSize(File, _2G + _1M);
82 rc = RTFileGetSize(File, &cb);
99 uint64_t offFile = RTFileTell(File);
110 rc = RTFileWrite(File,
[all...]
H A DtstRTFileAio.cpp3 * IPRT Testcase - File Async I/O.
54 void tstFileAioTestReadWriteBasic(RTFILE File, bool fWrite, void *pvTestBuf, argument
88 RTTESTI_CHECK_RC_RETV(RTFileAioCtxAssociateWithFile(hAioContext, File), VINF_SUCCESS);
109 rc = RTFileAioReqPrepareWrite(paReqs[i], File, off, papvBuf[i],
112 rc = RTFileAioReqPrepareRead(paReqs[i], File, off, papvBuf[i],
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/PyUtility/
H A DPyUtility.c28 CHAR8 *File; local
39 &File,
48 File,
57 PyErr_SetString(PyExc_Exception, "File creation failure");
73 PyErr_SetString(PyExc_Exception, "File write failure");
81 // PyErr_SetString(PyExc_Exception, "File flush failure");
/vbox/src/VBox/Runtime/include/internal/
H A Drand.h154 } File; member in union:RTRANDINT::__anon16658
/vbox/src/VBox/Runtime/r3/os2/
H A Dfilelock-os2.cpp3 * IPRT - File Locking, OS/2.
52 RTR3DECL(int) RTFileLock(RTFILE File, unsigned fLock, int64_t offLock, uint64_t cbLock) argument
85 if (fcntl(RTFileToNative(File), (fLock & RTFILE_LOCK_WAIT) ? F_SETLKW : F_SETLK, &fl) >= 0)
97 RTR3DECL(int) RTFileChangeLock(RTFILE File, unsigned fLock, int64_t offLock, uint64_t cbLock) argument
110 int rc = RTFileLock(File, fLock, offLock, cbLock);
122 rc = RTFileUnlock(File, offLock, cbLock);
127 rc = RTFileLock(File, fLock, offLock, cbLock);
133 rc = RTFileLock(File, fLockOld, offLock, cbLock);
141 RTR3DECL(int) RTFileUnlock(RTFILE File, int64_t offLock, uint64_t cbLock) argument
165 if (fcntl(RTFileToNative(File), F_SETL
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/Common/
H A DMyAlloc.c18 File for memory allocation tracking functions.
50 UINT8 File[],
67 // File := Set to __FILE__ by macro expansion.
83 if (File == NULL || Line == 0) {
85 "\nMyCheck(Final=%u, File=%s, Line=%u)"
88 File,
95 if (strlen ((CHAR8 *)File) == 0) {
97 "\nMyCheck(Final=%u, File=%s, Line=%u)"
100 File,
120 "\nMyCheck(Final=%u, File
48 MyCheck( BOOLEAN Final, UINT8 File[], UINTN Line ) argument
165 MyAlloc( UINTN Size, UINT8 File[], UINTN Line ) argument
277 MyRealloc( VOID *Ptr, UINTN Size, UINT8 File[], UINTN Line ) argument
385 MyFree( VOID *Ptr, UINT8 File[], UINTN Line ) argument
[all...]
H A DMyAlloc.h59 UINT8 *File; member in struct:MyAllocStruct
63 // Cksum := (UINTN)This + (UINTN)Next + Line + Size + (UINTN)File +
72 // File := Pointer to __FILE__ string stored immediately following
90 UINT8 File[],
109 // File := Set to __FILE__ by macro expansion.
122 UINT8 File[],
131 // for the File[] string, requested Size and alignment overhead. If
140 // File := Set to __FILE__ by macro expansion.
154 UINT8 File[],
173 // File
[all...]
H A DFvLib.c233 OUT EFI_FFS_FILE_HEADER **File
244 File Return pointer. In the case of an error, contents are undefined.
267 if (FileName == NULL || File == NULL) {
271 // File Guid String Name
294 *File = CurrentFile;
305 // File not found in this FV.
307 *File = NULL;
315 OUT EFI_FFS_FILE_HEADER **File
323 File type EFI_FV_FILETYPE_ALL means any file type is valid.
329 File Retur
485 GetSectionByType( IN EFI_FFS_FILE_HEADER *File, IN EFI_SECTION_TYPE SectionType, IN UINTN Instance, OUT EFI_FILE_SECTION_POINTER *Section ) argument
[all...]
/vbox/src/VBox/HostDrivers/VBoxUSB/solaris/
H A DUSBLib-solaris.cpp82 RTFILE File; local
83 int rc = RTFileOpen(&File, VBOXUSB_DEVICE_NAME, RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
89 g_hFile = File;
107 RTFileClose(File);
116 RTFileClose(File);
138 RTFILE File = g_hFile;
140 if (File == NIL_RTFILE)
143 int rc = RTFileClose(File);
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/
H A DBmLib.c63 EFI_FILE_HANDLE File; local
65 File = NULL;
68 // File the file system interface to the device
82 &File
88 return EFI_ERROR (Status) ? NULL : File;
285 @param FHand File Handle.
/vbox/src/VBox/Devices/EFI/Firmware/OvmfPkg/Library/NvVarsFileLib/
H A DFsAccess.c2 File System Access for NvVarsFileLib
91 @param[in] File - The file to inspect
99 IN EFI_FILE_HANDLE File,
109 FileInfo = FileHandleGetInfo (File);
129 @param[in] File - The file to inspect
137 IN EFI_FILE_HANDLE File
146 FileInfo = FileHandleGetInfo (File);
172 Status = FileHandleSetInfo (File, FileInfo);
183 @param[in] File - The file to read
232 EFI_FILE_HANDLE File; local
98 NvVarsFileReadCheckup( IN EFI_FILE_HANDLE File, OUT BOOLEAN *Exists, OUT UINTN *Size ) argument
406 EFI_FILE_HANDLE File; local
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/interface/efi/
H A Defi_download.c116 * @v File Token that can be used to abort the download
125 IPXE_DOWNLOAD_FILE *File ) {
145 *File = file;
155 * @v File Token obtained from Start
161 IPXE_DOWNLOAD_FILE File,
163 struct efi_download_file *file = File;
160 efi_download_abort( IPXE_DOWNLOAD_PROTOCOL *This __unused, IPXE_DOWNLOAD_FILE File, EFI_STATUS Status ) argument
/vbox/src/VBox/Additions/common/VBoxGuestLib/
H A DVBoxGuestR3Lib.cpp248 int File = xf86open(pszDeviceName, XF86_O_RDWR);
249 if (File == -1)
251 g_File = File;
256 RTFILE File;
257 int rc = RTFileOpen(&File, pszDeviceName, RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
260 g_File = File;
320 RTFILE File = g_File; local
322 AssertReturnVoid(File != NIL_RTFILE);
323 APIRET rc = DosClose((uintptr_t)File);
337 RTFILE File local
[all...]
/vbox/include/VBox/GuestHost/
H A DDragAndDrop.h58 File, enumerator in enum:DnDURIObject::Type
/vbox/src/VBox/Devices/EFI/Firmware/OvmfPkg/Sec/
H A DSecMain.c221 EFI_FFS_FILE_HEADER *File; local
243 File = (EFI_FFS_FILE_HEADER*)(UINTN) CurrentAddress;
244 Size = *(UINT32*) File->Size & 0xffffff;
245 if (Size < (sizeof (*File) + sizeof (EFI_COMMON_SECTION_HEADER))) {
248 DEBUG ((EFI_D_INFO, "File->Type: 0x%x\n", File->Type));
258 if (File->Type != FileType) {
259 DEBUG ((EFI_D_INFO, "File->Type (0x%x) != FileType (0x%x)\n", File->Type, FileType));
264 (VOID*) (File
449 EFI_FFS_FILE_HEADER *File; local
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/SecurityPkg/Library/DxeDeferImageLoadLib/
H A DDxeDeferImageLoadLib.c35 @param[in] File This is a pointer to the device path of the file
43 IN CONST EFI_DEVICE_PATH_PROTOCOL *File
52 // First check to see if File is from a Firmware Volume
55 TempDevicePath = (EFI_DEVICE_PATH_PROTOCOL *)File;
76 // Next check to see if File is from a Block I/O device
79 TempDevicePath = (EFI_DEVICE_PATH_PROTOCOL *)File;
113 // File is not in a Firmware Volume or on a Block I/O device, so check to see if
114 // the device path supports the Simple File System Protocol.
117 TempDevicePath = (EFI_DEVICE_PATH_PROTOCOL *)File;
125 // Simple File Syste
733 DxeDeferImageLoadHandler( IN UINT32 AuthenticationStatus, IN CONST EFI_DEVICE_PATH_PROTOCOL *File, IN VOID *FileBuffer, IN UINTN FileSize ) argument
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/SecurityPkg/Library/DxeTpmMeasureBootLib/
H A DDxeTpmMeasureBootLib.c255 @param[in] FilePath File path is corresponding to the input image.
642 and other exception operations. The File parameter allows for possible logging
645 If File is NULL, then EFI_INVALID_PARAMETER is returned.
647 If the file specified by File with an authentication status specified by
650 If the file specified by File with an authentication status specified by
654 If the file specified by File with an authentication status specified by
662 @param[in] File This is a pointer to the device path of the file that is
664 @param[in] FileBuffer File buffer matches the input file device path.
665 @param[in] FileSize Size of File buffer matches the input file device path.
667 @retval EFI_SUCCESS The file specified by File di
682 DxeTpmMeasureBootHandler( IN OUT UINT32 AuthenticationStatus, IN CONST EFI_DEVICE_PATH_PROTOCOL *File, IN VOID *FileBuffer OPTIONAL, IN UINTN FileSize OPTIONAL ) argument
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/AppPkg/Applications/Sockets/TftpServer/
H A DTftpServer.h150 // File management parameters
152 EFI_HANDLE File; ///< NULL while file is closed member in struct:_TSDT_CONNECTION_CONTEXT
158 UINT8 FileData[ 64 * TFTP_MAX_BLOCK_SIZE ]; ///< File data to send
/vbox/src/VBox/Devices/Network/
H A DPcap.cpp183 * @param File The file handle.
186 int PcapFileHdr(RTFILE File, uint64_t StartNanoTS) argument
188 int rc1 = RTFileWrite(File, &s_Hdr, sizeof(s_Hdr), NULL);
189 int rc2 = PcapFileFrame(File, StartNanoTS, s_szDummyData, 60, sizeof(s_szDummyData));
199 * @param File The file handle.
205 int PcapFileFrame(RTFILE File, uint64_t StartNanoTS, const void *pvFrame, size_t cbFrame, size_t cbMax) argument
209 int rc1 = RTFileWrite(File, &Hdr, sizeof(Hdr), NULL);
210 int rc2 = RTFileWrite(File, pvFrame, Hdr.incl_len, NULL);
220 * @param File The file handle.
228 int PcapFileGsoFrame(RTFILE File, uint64_ argument
[all...]
/vbox/src/VBox/ExtPacks/VBoxDTrace/onnv/cmd/dtrace/test/tst/common/java_api/src/
H A DTestBean.java77 "Program$File",
81 static File file;
92 getXMLEncoder(File file)
107 getXMLDecoder(File file)
113 getXMLDecoder(File file, ExceptionListener exceptionListener)
513 public static Program.File
514 getProgram$File()
531 return Program.File.class.cast(p);
588 performSerializationTest(File file, String classname)
624 performBeanTest(File fil
[all...]
/vbox/src/VBox/Storage/testcase/
H A DVDIoBackend.cpp63 } File; member in union:VDIOSTORAGE::__anon16797
137 rc = RTFileOpen(&pIoStorage->u.File.hFile, pszName,
142 rc = RTAioMgrFileCreate(pIoBackend->hAioMgr, pIoStorage->u.File.hFile,
144 &pIoStorage->u.File.hAioMgrFile);
146 RTFileClose(pIoStorage->u.File.hFile);
176 RTAioMgrFileRelease(pIoStorage->u.File.hAioMgrFile);
177 RTFileClose(pIoStorage->u.File.hFile);
220 rc = RTAioMgrFileRead(pIoStorage->u.File.hAioMgrFile, off, pSgBuf, cbTransfer, pvUser);
223 rc = RTAioMgrFileWrite(pIoStorage->u.File.hAioMgrFile, off, pSgBuf, cbTransfer, pvUser);
226 rc = RTAioMgrFileFlush(pIoStorage->u.File
[all...]

Completed in 115 milliseconds

123