Changeset 26761 in vbox
- Timestamp:
- Feb 24, 2010 6:57:58 PM (15 years ago)
- Location:
- trunk/src/VBox/Runtime/r3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp
r26344 r26761 335 335 336 336 337 RTR3DECL(int) RTFileOpenBitBucket(PRTFILE phFile, uint32_t fAccess) 338 { 339 AssertReturn( fAccess == RTFILE_O_READ 340 || fAccess == RTFILE_O_WRITE 341 || fAccess == RTFILE_O_READWRITE, 342 VERR_INVALID_PARAMETER); 343 return RTFileOpen(phFile, "/dev/null", fAccess | RTFILE_O_DENY_NONE | RTFILE_O_OPEN); 344 } 345 346 337 347 RTR3DECL(int) RTFileClose(RTFILE File) 338 348 { -
trunk/src/VBox/Runtime/r3/win/fileio-win.cpp
r25642 r26761 356 356 357 357 358 RTR3DECL(int) RTFileOpenBitBucket(PRTFILE phFile, uint32_t fAccess) 359 { 360 AssertReturn( fAccess == RTFILE_O_READ 361 || fAccess == RTFILE_O_WRITE 362 || fAccess == RTFILE_O_READWRITE, 363 VERR_INVALID_PARAMETER); 364 return RTFileOpen(phFile, "NUL", fAccess | RTFILE_O_DENY_NONE | RTFILE_O_OPEN); 365 } 366 367 358 368 RTR3DECL(int) RTFileClose(RTFILE File) 359 369 {
Note:
See TracChangeset
for help on using the changeset viewer.