Skip to content

Instantly share code, notes, and snippets.

@shichao-an
Created June 12, 2015 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shichao-an/2b0c9e36de750eb9de05 to your computer and use it in GitHub Desktop.
Save shichao-an/2b0c9e36de750eb9de05 to your computer and use it in GitHub Desktop.
#include <unistd.h>
int fsync(int fd);
int fdatasync(int fd);
/* Returns: 0 if OK, −1 on error */
void sync(void);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment