public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); } public String gai_strerror(int error) { return os.gai_strerror(error); }
Libcore.os.ftruncate(fd, newLength); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException();
@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.ftruncate(fd, length); }
public FileChannel truncate(long size) throws IOException { checkOpen(); if (size < 0) { throw new IllegalArgumentException("size < 0: " + size); } checkWritable(); if (size < size()) { try { Libcore.os.ftruncate(fd, size); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } } return this; }
Libcore.os.ftruncate(fd, position + size); } catch (ErrnoException ftruncateException) {
public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); } public String gai_strerror(int error) { return os.gai_strerror(error); }
public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); } public String gai_strerror(int error) { return os.gai_strerror(error); }
public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); } public String gai_strerror(int error) { return os.gai_strerror(error); }
public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); } public String gai_strerror(int error) { return os.gai_strerror(error); }
public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); } public String gai_strerror(int error) { return os.gai_strerror(error); }
@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.ftruncate(fd, length); }
@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.ftruncate(fd, length); }
@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.ftruncate(fd, length); }
@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.ftruncate(fd, length); }
@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.ftruncate(fd, length); }
@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { BlockGuard.getThreadPolicy().onWriteToDisk(); os.ftruncate(fd, length); }
public FileChannel truncate(long size) throws IOException { checkOpen(); if (size < 0) { throw new IllegalArgumentException("size < 0: " + size); } checkWritable(); if (size < size()) { try { Libcore.os.ftruncate(fd, size); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } } return this; }
public FileChannel truncate(long size) throws IOException { checkOpen(); if (size < 0) { throw new IllegalArgumentException("size < 0: " + size); } checkWritable(); if (size < size()) { try { Libcore.os.ftruncate(fd, size); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } } return this; }
public FileChannel truncate(long size) throws IOException { checkOpen(); if (size < 0) { throw new IllegalArgumentException("size < 0: " + size); } checkWritable(); if (size < size()) { try { Libcore.os.ftruncate(fd, size); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } } return this; }
public FileChannel truncate(long size) throws IOException { checkOpen(); if (size < 0) { throw new IllegalArgumentException("size < 0: " + size); } checkWritable(); if (size < size()) { try { Libcore.os.ftruncate(fd, size); } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } } return this; }