public void fsync(FileDescriptor fd) throws ErrnoException { os.fsync(fd); } public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
@Override public void fsync(FileDescriptor fd) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.fsync(fd); }
public void force(boolean metadata) throws IOException { checkOpen(); if ((mode & O_ACCMODE) != O_RDONLY) { try { if (metadata) { Libcore.os.fsync(fd); } else { Libcore.os.fdatasync(fd); } } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } } }
/** * Ensures that data which is buffered within the underlying implementation * is written out to the appropriate device before returning. */ public void sync() throws SyncFailedException { try { if (Libcore.os.isatty(this)) { Libcore.os.tcdrain(this); } else { Libcore.os.fsync(this); } } catch (ErrnoException errnoException) { SyncFailedException sfe = new SyncFailedException(errnoException.getMessage()); sfe.initCause(errnoException); throw sfe; } }
public void fsync(FileDescriptor fd) throws ErrnoException { os.fsync(fd); } public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
public void fsync(FileDescriptor fd) throws ErrnoException { os.fsync(fd); } public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
public void fsync(FileDescriptor fd) throws ErrnoException { os.fsync(fd); } public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
public void fsync(FileDescriptor fd) throws ErrnoException { os.fsync(fd); } public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
@Override public void fsync(FileDescriptor fd) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.fsync(fd); }
@Override public void fsync(FileDescriptor fd) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.fsync(fd); }
@Override public void fsync(FileDescriptor fd) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.fsync(fd); }
@Override public void fsync(FileDescriptor fd) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.fsync(fd); }
@Override public void fsync(FileDescriptor fd) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.fsync(fd); }
@Override public void fsync(FileDescriptor fd) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.fsync(fd); }
public void force(boolean metadata) throws IOException { checkOpen(); if ((mode & O_ACCMODE) != O_RDONLY) { try { if (metadata) { Libcore.os.fsync(fd); } else { Libcore.os.fdatasync(fd); } } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } } }
public void force(boolean metadata) throws IOException { checkOpen(); if ((mode & O_ACCMODE) != O_RDONLY) { try { if (metadata) { Libcore.os.fsync(fd); } else { Libcore.os.fdatasync(fd); } } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } } }
public void force(boolean metadata) throws IOException { checkOpen(); if ((mode & O_ACCMODE) != O_RDONLY) { try { if (metadata) { Libcore.os.fsync(fd); } else { Libcore.os.fdatasync(fd); } } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } } }
public void force(boolean metadata) throws IOException { checkOpen(); if ((mode & O_ACCMODE) != O_RDONLY) { try { if (metadata) { Libcore.os.fsync(fd); } else { Libcore.os.fdatasync(fd); } } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } } }
public void force(boolean metadata) throws IOException { checkOpen(); if ((mode & O_ACCMODE) != O_RDONLY) { try { if (metadata) { Libcore.os.fsync(fd); } else { Libcore.os.fdatasync(fd); } } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } } }
public void force(boolean metadata) throws IOException { checkOpen(); if ((mode & O_ACCMODE) != O_RDONLY) { try { if (metadata) { Libcore.os.fsync(fd); } else { Libcore.os.fdatasync(fd); } } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } } }