282283284285286287288289290291292
return new SyncStrategy() { static final int F_FULLFSYNC = 51; public void sync(FileDescriptor fd) throws IOException { try { int id = field.getInt(fd); lib.fcntl(id, F_FULLFSYNC); } catch (Exception e) { throw IOExceptionSupport.create(e); } }
279280281282283284285286287288289
return new IOStrategy() { static final int F_FULLFSYNC = 51; public void sync(FileDescriptor fd) throws IOException { try { int id = field.getInt(fd); lib.fcntl(id, F_FULLFSYNC); } catch (Exception e) { throw IOExceptionSupport.create(e); } } };