blob: db5413631df87abae0f4f596c33aff97b0373562 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* ISC license. */
#include <unistd.h>
#include <errno.h>
#include <skalibs/djbunix.h>
int fd_sync (int fd)
{
register int r ;
do
r = fsync(fd) ;
while ((r == -1) && (errno == EINTR)) ;
return r ;
}
|