- Timestamp:
- Oct 2, 2013 1:56:36 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 89477
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox
- Property svn:mergeinfo changed
/branches/VBox-4.1/src/VBox merged: 85944-85947,85949-85950,85953,86701,86728,87009
- Property svn:mergeinfo changed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r48803 r48820 10742 10742 <li><tt>"ca"</tt>: Creates a new file, always. Overwrites an existing file.</li> 10743 10743 <li><tt>"ce"</tt>: Creates a new file if it does not exist. Fail if exist.</li> 10744 <li><tt>"oa"</tt>: Opens an existing file and places the file pointer at the 10745 end of the file, if opened with write access. Create the file if it does not exist.</li> 10744 10746 <li><tt>"oc"</tt>: Opens and existing file or create it if it does not exist.</li> 10745 10747 <li><tt>"oe"</tt>: Opens an existing file or fail if it does not exist.</li> -
trunk/src/VBox/Runtime/common/misc/RTFileModeToFlags.cpp
r47783 r48820 56 56 switch (*pszCur) 57 57 { 58 /* Opens an existing file for reading and places the 59 * file pointer at the end of the file. */ 58 /* Opens an existing file for writing and places the 59 * file pointer at the end of the file. The file is 60 * created if it does not exist. */ 60 61 case 'a': 61 62 if ((uMode & RTFILE_O_ACTION_MASK) == 0) 62 63 { 63 uMode |= RTFILE_O_OPEN 64 | RTFILE_O_ READ64 uMode |= RTFILE_O_OPEN_CREATE 65 | RTFILE_O_WRITE 65 66 | RTFILE_O_APPEND; 66 67 } … … 136 137 switch (chPrev) 137 138 { 139 case 'a': 138 140 case 'c': 139 141 case 'w': … … 143 145 break; 144 146 145 case 'a':146 147 case 'r': 147 148 /* Also open / create file with write access. */ … … 216 217 217 218 /* 218 * Handle openmode.219 * Handle access mode. 219 220 */ 220 221 while ( pszCur … … 306 307 else if (!RTStrCmp(pszCur, "oc")) 307 308 uMode |= RTFILE_O_OPEN_CREATE; 309 /* Open existing file and place the file pointer at 310 * the end of the file, if opened with write access. 311 * Create the file if does not exist. */ 312 else if (!RTStrCmp(pszCur, "oa")) 313 uMode |= RTFILE_O_OPEN_CREATE | RTFILE_O_APPEND; 308 314 /* Open existing, fail if does not exist. */ 309 315 else if (!RTStrCmp(pszCur, "oe"))
Note:
See TracChangeset
for help on using the changeset viewer.