#include <unistd.h>
|
void
sync (void); |
The fsync system call may be used to synchronize individual file descriptor attributes.
/** * This sample code demonstrates usage of sync system call * **/ #include <unistd.h> #include <stdio.h> int main() { sync() ; printf("sync system call flused all dirty buffers 0) ; return 0 ; }
Output
sync system call flused all dirty buffers
© 2005-2007 Nokia |