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

How to use
fsync
method
in
libcore.io.Os

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

origin: robovm/robovm

public void fsync(FileDescriptor fd) throws ErrnoException { os.fsync(fd); }
public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
origin: robovm/robovm

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

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();
    }
  }
}
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: MobiVM/robovm

public void fsync(FileDescriptor fd) throws ErrnoException { os.fsync(fd); }
public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
origin: FlexoVM/flexovm

public void fsync(FileDescriptor fd) throws ErrnoException { os.fsync(fd); }
public void ftruncate(FileDescriptor fd, long length) throws ErrnoException { os.ftruncate(fd, length); }
origin: ibinti/bugvm

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

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

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

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

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

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

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

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

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

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

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

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

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

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();
    }
  }
}
libcore.ioOsfsync

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 post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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