Tabnine Logo
Os.tcdrain
Code IndexAdd Tabnine to your IDE (free)

How to use
tcdrain
method
in
libcore.io.Os

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

origin: robovm/robovm

public void tcdrain(FileDescriptor fd) throws ErrnoException { os.tcdrain(fd); }
public void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException { os.tcsendbreak(fd, duration); }
origin: robovm/robovm

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

public void tcdrain(FileDescriptor fd) throws ErrnoException { os.tcdrain(fd); }
public void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException { os.tcsendbreak(fd, duration); }
origin: MobiVM/robovm

public void tcdrain(FileDescriptor fd) throws ErrnoException { os.tcdrain(fd); }
public void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException { os.tcsendbreak(fd, duration); }
origin: com.mobidevelop.robovm/robovm-rt

public void tcdrain(FileDescriptor fd) throws ErrnoException { os.tcdrain(fd); }
public void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException { os.tcsendbreak(fd, duration); }
origin: com.bugvm/bugvm-rt

public void tcdrain(FileDescriptor fd) throws ErrnoException { os.tcdrain(fd); }
public void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException { os.tcsendbreak(fd, duration); }
origin: com.gluonhq/robovm-rt

public void tcdrain(FileDescriptor fd) throws ErrnoException { os.tcdrain(fd); }
public void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException { os.tcsendbreak(fd, duration); }
origin: FlexoVM/flexovm

public void tcdrain(FileDescriptor fd) throws ErrnoException { os.tcdrain(fd); }
public void tcsendbreak(FileDescriptor fd, int duration) throws ErrnoException { os.tcsendbreak(fd, duration); }
origin: MobiVM/robovm

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

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

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

/**
 * 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;
  }
}
origin: FlexoVM/flexovm

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

/**
 * 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;
  }
}
libcore.ioOstcdrain

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

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Top 12 Jupyter Notebook Extensions
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