Synchronizes any buffered data for a file descriptor to its backing device (disk).
#include <prio.h> PRStatus PR_Sync(PRFileDesc *fd);
The function has the following parameter:
fdPRFileDesc object representing a file.The function returns one of the following values:
PR_SUCCESS.PR_FAILURE.PR_Sync writes all the in-memory buffered data of the specified file to the disk.