Changeset 23973 in vbox for trunk/src/VBox/Devices/Serial
- Timestamp:
- Oct 22, 2009 12:34:22 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 53801
- Location:
- trunk/src/VBox/Devices/Serial
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r23160 r23973 1211 1211 /** 1212 1212 * Construct a char driver instance. 1213 * 1213 * 1214 1214 * @copydoc FNPDMDRVCONSTRUCT 1215 1215 */ … … 1288 1288 #else 1289 1289 1290 rc = RTFileOpen(&pThis->DeviceFile, pThis->pszDevicePath, RTFILE_O_ OPEN | RTFILE_O_READWRITE);1290 rc = RTFileOpen(&pThis->DeviceFile, pThis->pszDevicePath, RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE); 1291 1291 # ifdef RT_OS_DARWIN 1292 1292 if (RT_SUCCESS(rc)) 1293 rc = RTFileOpen(&pThis->DeviceFileR, pThis->pszDevicePath, RTFILE_O_ OPEN | RTFILE_O_READ);1293 rc = RTFileOpen(&pThis->DeviceFileR, pThis->pszDevicePath, RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_NONE); 1294 1294 # endif 1295 1295 … … 1495 1495 NULL, 1496 1496 /* pfnDetach */ 1497 NULL, 1497 NULL, 1498 1498 /* pfnPowerOff */ 1499 NULL, 1499 NULL, 1500 1500 /* pfnSoftReset */ 1501 1501 NULL, -
trunk/src/VBox/Devices/Serial/DrvRawFile.cpp
r22653 r23973 150 150 * Open the raw file. 151 151 */ 152 rc = RTFileOpen(&pThis->OutputFile, pThis->pszLocation, RTFILE_O_ CREATE_REPLACE | RTFILE_O_WRITE | RTFILE_O_DENY_NONE);152 rc = RTFileOpen(&pThis->OutputFile, pThis->pszLocation, RTFILE_O_WRITE | RTFILE_O_CREATE_REPLACE | RTFILE_O_DENY_NONE); 153 153 if (RT_FAILURE(rc)) 154 154 { … … 180 180 181 181 if (pThis->OutputFile != NIL_RTFILE) 182 { 182 { 183 183 RTFileClose(pThis->OutputFile); 184 184 pThis->OutputFile = NIL_RTFILE; … … 200 200 201 201 if (pThis->OutputFile != NIL_RTFILE) 202 { 202 { 203 203 RTFileClose(pThis->OutputFile); 204 204 pThis->OutputFile = NIL_RTFILE;
Note:
See TracChangeset
for help on using the changeset viewer.