Synchronizes any buffered data for a file descriptor to its backing device (disk).
The function has the following parameter:
- Pointer to a
PRFileDescobject representing a file.
The function returns one of the following values:
- On successful completion,
- If the function fails,
PR_Sync writes all the in-memory buffered data of the specified file to the disk.