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

How to use
fcntlVoid
method
in
libcore.io.Os

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

origin: robovm/robovm

public int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException { return os.fcntlVoid(fd, cmd); }
public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException { return os.fcntlLong(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: robovm/robovm

int flags = Libcore.os.fcntlVoid(fd, F_GETFL);
if (timeout > 0 && (flags & O_NONBLOCK) == 0) {
  StructPollfd pfd = new StructPollfd();
origin: MobiVM/robovm

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

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

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

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

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

public int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException { return os.fcntlVoid(fd, cmd); }
public int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException { return os.fcntlLong(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.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();
  }
}
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.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: ibinti/bugvm

int flags = Libcore.os.fcntlVoid(fd, F_GETFL);
if (timeout > 0 && (flags & O_NONBLOCK) == 0) {
  StructPollfd pfd = new StructPollfd();
origin: MobiVM/robovm

int flags = Libcore.os.fcntlVoid(fd, F_GETFL);
if (timeout > 0 && (flags & O_NONBLOCK) == 0) {
  StructPollfd pfd = new StructPollfd();
origin: com.gluonhq/robovm-rt

int flags = Libcore.os.fcntlVoid(fd, F_GETFL);
if (timeout > 0 && (flags & O_NONBLOCK) == 0) {
  StructPollfd pfd = new StructPollfd();
origin: com.bugvm/bugvm-rt

int flags = Libcore.os.fcntlVoid(fd, F_GETFL);
if (timeout > 0 && (flags & O_NONBLOCK) == 0) {
  StructPollfd pfd = new StructPollfd();
origin: com.mobidevelop.robovm/robovm-rt

int flags = Libcore.os.fcntlVoid(fd, F_GETFL);
if (timeout > 0 && (flags & O_NONBLOCK) == 0) {
  StructPollfd pfd = new StructPollfd();
libcore.ioOsfcntlVoid

Popular methods of Os

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • getContentResolver (Context)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • From CI to AI: The AI layer in your organization
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