All pastes #747998 Raw Edit

Something

public text v1 · immutable
#747998 ·published 2007-10-24 14:37 UTC
rendered paste body
#include <stdio.h>
int main() {
 int res;
 #if defined(HAVE_FDATASYNC)
  printf("fdatasync \n");
  res= fdatasync(fd);
 #elif defined(HAVE_FSYNC)
  printf("fsync \n");
  res= fsync(fd);
 #else
  printf("error \n");
  res= 0;                                     /* No sync (strange OS) */
 #endif
 return 0;
}