|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Flushes a file directly to disk.
File descriptor referring to the open file.
The _commit function forces the operating system to write the file associated with fd to disk. This call ensures that the specified file is flushed immediately, not at the operating system's discretion.
If fd is an invalid file descriptor, the invalid parameter handler is invoked, as described in . If execution is allowed to continue, the function returns -1 and errno is set to EBADF.
|Routine||Required header||Optional headers||Compatibility|
Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003
For more compatibility information, see Compatibility in the Introduction.