congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Os.ftruncate
Code IndexAdd Tabnine to your IDE (free)

How to use
ftruncate
method
in
libcore.io.Os

Best Java code snippets using libcore.io.Os.ftruncate (Showing top 20 results out of 315)

origin: robovm/robovm

public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
public String gai_strerror(int error) { return os.gai_strerror(error); }
origin: robovm/robovm

  Libcore.os.ftruncate(fd, newLength);
} catch (ErrnoException errnoException) {
  throw errnoException.rethrowAsIOException();
origin: robovm/robovm

@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  os.ftruncate(fd, length);
}
origin: robovm/robovm

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;
}
origin: robovm/robovm

  Libcore.os.ftruncate(fd, position + size);
} catch (ErrnoException ftruncateException) {
origin: MobiVM/robovm

public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
public String gai_strerror(int error) { return os.gai_strerror(error); }
origin: com.mobidevelop.robovm/robovm-rt

public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
public String gai_strerror(int error) { return os.gai_strerror(error); }
origin: ibinti/bugvm

public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
public String gai_strerror(int error) { return os.gai_strerror(error); }
origin: com.gluonhq/robovm-rt

public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
public String gai_strerror(int error) { return os.gai_strerror(error); }
origin: com.bugvm/bugvm-rt

public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
public String gai_strerror(int error) { return os.gai_strerror(error); }
origin: MobiVM/robovm

@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  os.ftruncate(fd, length);
}
origin: ibinti/bugvm

@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  os.ftruncate(fd, length);
}
origin: com.bugvm/bugvm-rt

@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  os.ftruncate(fd, length);
}
origin: com.gluonhq/robovm-rt

@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  os.ftruncate(fd, length);
}
origin: com.mobidevelop.robovm/robovm-rt

@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  os.ftruncate(fd, length);
}
origin: FlexoVM/flexovm

@Override public void ftruncate(FileDescriptor fd, long length) throws ErrnoException {
  BlockGuard.getThreadPolicy().onWriteToDisk();
  os.ftruncate(fd, length);
}
origin: MobiVM/robovm

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;
}
origin: ibinti/bugvm

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;
}
origin: com.gluonhq/robovm-rt

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;
}
origin: com.mobidevelop.robovm/robovm-rt

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.ioOsftruncate

Popular methods of Os

  • accept
  • access
  • bind
  • chmod
  • chown
  • close
  • connect
  • dup
  • dup2
  • environ
  • execv
  • execve
  • execv,
  • execve,
  • fchmod,
  • fchown,
  • fcntlFlock,
  • fcntlLong,
  • fcntlVoid,
  • fdatasync,
  • fstat,
  • fstatvfs

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • JButton (javax.swing)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now