pr_sync.rst (595B)
1 PR_Sync 2 ======= 3 4 Synchronizes any buffered data for a file descriptor to its backing 5 device (disk). 6 7 8 Syntax 9 ------ 10 11 .. code:: 12 13 #include <prio.h> 14 15 PRStatus PR_Sync(PRFileDesc *fd); 16 17 18 Parameter 19 ~~~~~~~~~ 20 21 The function has the following parameter: 22 23 ``fd`` 24 Pointer to a :ref:`PRFileDesc` object representing a file. 25 26 27 Returns 28 ~~~~~~~ 29 30 The function returns one of the following values: 31 32 - On successful completion, ``PR_SUCCESS``. 33 - If the function fails, ``PR_FAILURE``. 34 35 36 Description 37 ----------- 38 39 :ref:`PR_Sync` writes all the in-memory buffered data of the specified file 40 to the disk.