java.lang.Object
com.github.marschall.nativebytebuffers.Fcntl

public final class Fcntl extends Object
Allows to manipulate file descriptors fcntl.h.
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    fcntl(int fd, int cmd)
    Performs one of the operations described below on the open file descriptor fd.
    static int
    fcntl(int fd, int cmd, int arg)
    Performs one of the operations described below on the open file descriptor fd.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • fcntl

      public static int fcntl(int fd, int cmd)
      Performs one of the operations described below on the open file descriptor fd. The operation is determined by cmd.

      void version of the method.

      Parameters:
      fd - file descriptor referring to the underlying open file
      cmd - the command to execute
      Returns:
      return code or result
      See Also:
    • fcntl

      public static int fcntl(int fd, int cmd, int arg)
      Performs one of the operations described below on the open file descriptor fd. The operation is determined by cmd.

      int version of the method.

      Parameters:
      fd - file descriptor referring to the underlying open file
      cmd - the command to execute
      arg - argument for cmd
      Returns:
      return code or result
      See Also: