Sha256: 7e0eb6b85b4c7866a94644550ec1c46b38dc2ae0df7efc7e5b979a340cf17806
Contents?: true
Size: 458 Bytes
Versions: 3
Compression:
Stored size: 458 Bytes
Contents
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include "open.h" #include "savesync.h" #include "writeall.h" static int writesync(int fd,const void *x,long long xlen) { if (writeall(fd,x,xlen) == -1) return -1; return fsync(fd); } int savesync(const char *fn,const void *x,long long xlen) { int fd; int r; fd = open_write(fn); if (fd == -1) return -1; r = writesync(fd,x,xlen); close(fd); return r; }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby_nacl-0.1.2 | ext/ruby_nacl/NaCl/curvecp/savesync.c |
ruby_nacl-0.1.1 | ext/ruby_nacl/NaCl/curvecp/savesync.c |
ruby_nacl-0.1.0 | ext/ruby_nacl/NaCl/curvecp/savesync.c |