MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / fsync

Method fsync

source/core/StarFile_unix.cpp:261–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void File::fsync(void* file) {
262 auto fd = fdFromHandle(file);
263#ifdef STAR_SYSTEM_LINUX
264 ::fdatasync(fd);
265#else
266 ::fsync(fd);
267#endif
268}
269
270void File::fclose(void* file) {
271 if (::close(fdFromHandle(file)) < 0)

Callers

nothing calls this directly

Calls 1

fdFromHandleFunction · 0.85

Tested by

no test coverage detected