Changeset 79284 in vbox
- Timestamp:
- Jun 21, 2019 8:38:29 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/RTFileModeToFlags.cpp
r76553 r79284 220 220 break; 221 221 222 case 'a': /* Append. */ 223 fMode |= RTFILE_O_WRITE | RTFILE_O_APPEND; 224 break; 225 222 226 case '+': 223 227 { … … 225 229 { 226 230 case 'w': 231 case 'a': 227 232 /* Also use read access in write mode. */ 228 233 fMode |= RTFILE_O_READ; … … 279 284 || !RTStrCmp(pszCur, "open-create")) 280 285 fMode |= RTFILE_O_OPEN_CREATE; 281 /* Open existing file and place the file pointer at 282 * the end of the file, if opened with write access.283 * Create the file if does not exist. */286 /* Open existing file and place the file pointer at the end of the file, if 287 * opened with write access. Create the file if does not exist. 288 * Note! This mode is ill conceived as the appending is a accesss mode not open disposition. */ 284 289 else if ( !RTStrCmp(pszCur, "oa") 285 290 || !RTStrCmp(pszCur, "open-append"))
Note:
See TracChangeset
for help on using the changeset viewer.