Codota Logo
Os.fcntlLong
Code IndexAdd Codota to your IDE (free)

How to use
fcntlLong
method
in
libcore.io.Os

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: robovm/robovm

public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException { return os.fcntlLong(fd, cmd, arg); }
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); }
origin: robovm/robovm

/**
 * Sets 'fd' to be blocking or non-blocking, according to the state of 'blocking'.
 */
public static void setBlocking(FileDescriptor fd, boolean blocking) throws IOException {
  try {
    int flags = Libcore.os.fcntlVoid(fd, F_GETFL);
    if (!blocking) {
      flags |= O_NONBLOCK;
    } else {
      flags &= ~O_NONBLOCK;
    }
    Libcore.os.fcntlLong(fd, F_SETFL, flags);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: MobiVM/robovm

public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException { return os.fcntlLong(fd, cmd, arg); }
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); }
origin: com.gluonhq/robovm-rt

public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException { return os.fcntlLong(fd, cmd, arg); }
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); }
origin: FlexoVM/flexovm

public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException { return os.fcntlLong(fd, cmd, arg); }
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); }
origin: ibinti/bugvm

public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException { return os.fcntlLong(fd, cmd, arg); }
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); }
origin: com.mobidevelop.robovm/robovm-rt

public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException { return os.fcntlLong(fd, cmd, arg); }
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); }
origin: com.bugvm/bugvm-rt

public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException { return os.fcntlLong(fd, cmd, arg); }
public int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException { return os.fcntlFlock(fd, cmd, arg); }
origin: MobiVM/robovm

/**
 * Sets 'fd' to be blocking or non-blocking, according to the state of 'blocking'.
 */
public static void setBlocking(FileDescriptor fd, boolean blocking) throws IOException {
  try {
    int flags = Libcore.os.fcntlVoid(fd, F_GETFL);
    if (!blocking) {
      flags |= O_NONBLOCK;
    } else {
      flags &= ~O_NONBLOCK;
    }
    Libcore.os.fcntlLong(fd, F_SETFL, flags);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: ibinti/bugvm

/**
 * Sets 'fd' to be blocking or non-blocking, according to the state of 'blocking'.
 */
public static void setBlocking(FileDescriptor fd, boolean blocking) throws IOException {
  try {
    int flags = Libcore.os.fcntlVoid(fd, F_GETFL);
    if (!blocking) {
      flags |= O_NONBLOCK;
    } else {
      flags &= ~O_NONBLOCK;
    }
    Libcore.os.fcntlLong(fd, F_SETFL, flags);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: com.bugvm/bugvm-rt

/**
 * Sets 'fd' to be blocking or non-blocking, according to the state of 'blocking'.
 */
public static void setBlocking(FileDescriptor fd, boolean blocking) throws IOException {
  try {
    int flags = Libcore.os.fcntlVoid(fd, F_GETFL);
    if (!blocking) {
      flags |= O_NONBLOCK;
    } else {
      flags &= ~O_NONBLOCK;
    }
    Libcore.os.fcntlLong(fd, F_SETFL, flags);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: com.gluonhq/robovm-rt

/**
 * Sets 'fd' to be blocking or non-blocking, according to the state of 'blocking'.
 */
public static void setBlocking(FileDescriptor fd, boolean blocking) throws IOException {
  try {
    int flags = Libcore.os.fcntlVoid(fd, F_GETFL);
    if (!blocking) {
      flags |= O_NONBLOCK;
    } else {
      flags &= ~O_NONBLOCK;
    }
    Libcore.os.fcntlLong(fd, F_SETFL, flags);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Sets 'fd' to be blocking or non-blocking, according to the state of 'blocking'.
 */
public static void setBlocking(FileDescriptor fd, boolean blocking) throws IOException {
  try {
    int flags = Libcore.os.fcntlVoid(fd, F_GETFL);
    if (!blocking) {
      flags |= O_NONBLOCK;
    } else {
      flags &= ~O_NONBLOCK;
    }
    Libcore.os.fcntlLong(fd, F_SETFL, flags);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
origin: FlexoVM/flexovm

/**
 * Sets 'fd' to be blocking or non-blocking, according to the state of 'blocking'.
 */
public static void setBlocking(FileDescriptor fd, boolean blocking) throws IOException {
  try {
    int flags = Libcore.os.fcntlVoid(fd, F_GETFL);
    if (!blocking) {
      flags |= O_NONBLOCK;
    } else {
      flags &= ~O_NONBLOCK;
    }
    Libcore.os.fcntlLong(fd, F_SETFL, flags);
  } catch (ErrnoException errnoException) {
    throw errnoException.rethrowAsIOException();
  }
}
libcore.ioOsfcntlLong

Popular methods of Os

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • setContentView (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JTextField (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now