Tabnine Logo
Os.fcntlLong
Code IndexAdd Tabnine 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)

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

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 25 Plugins for Webstorm
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