sync forces "dirty" (modified) filesystem buffers to be written to disk.
Syntax
public static
int sync ()
Returns
On success, zero is returned. On error, -1 is returned and errno is set. Stdlib.GetLastError can be called to obtain the translated error.
Remarks
Requirements
Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0