MCPcopy Create free account
hub / github.com/ddnet/ddnet / io_sync

Function io_sync

src/base/io.cpp:236–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236int io_sync(IOHANDLE io)
237{
238 if(io_flush(io))
239 {
240 return 1;
241 }
242#if defined(CONF_FAMILY_WINDOWS)
243 return FlushFileBuffers((HANDLE)_get_osfhandle(_fileno((FILE *)io))) == FALSE;
244#else
245 return fsync(fileno((FILE *)io)) != 0;
246#endif
247}
248
249int io_error(IOHANDLE io)
250{

Callers 3

SaveMethod · 0.85
DumpMethod · 0.85
TESTFunction · 0.85

Calls 1

io_flushFunction · 0.85

Tested by 1

TESTFunction · 0.68