Changeset 94277 in vbox
- Timestamp:
- Mar 17, 2022 1:32:55 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/file.h
r93115 r94277 542 542 * 543 543 * @returns iprt status code. 544 * @retval VINF_NOT_SUPPORTED if it is a special file that does not support 545 * flushing. This is reported as a informational status since in most 546 * cases this is entirely harmless (e.g. tty) and simplifies the usage. 544 547 * @param File Handle to the file. 545 548 */ -
trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp
r93115 r94277 833 833 834 834 835 RTR3DECL(int) RTFileFlush(RTFILE hFile) 836 { 837 if (fsync(RTFileToNative(hFile))) 838 return RTErrConvertFromErrno(errno); 839 return VINF_SUCCESS; 835 RTR3DECL(int) RTFileFlush(RTFILE hFile) 836 { 837 if (!fsync(RTFileToNative(hFile))) 838 return VINF_SUCCESS; 839 /* Ignore EINVAL here as that's what returned for pseudo ttys 840 and other odd handles. */ 841 if (errno == EINVAL) 842 return VINF_NOT_SUPPORTED; 843 return RTErrConvertFromErrno(errno); 840 844 } 841 845
Note:
See TracChangeset
for help on using the changeset viewer.