Interface Native.LibC

  • Enclosing class:
    Native

    public static interface Native.LibC
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int F_GETFL  
      static int F_SETFL  
      static int O_NONBLOCK  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int close​(int fd)  
      int fcntl​(int fd, int cmd, int data)  
      int kevent​(int kq, java.nio.ByteBuffer changebuf, int nchanges, java.nio.ByteBuffer eventbuf, int nevents, Native.Timespec timeout)  
      int kevent​(int kq, jnr.ffi.Pointer changebuf, int nchanges, jnr.ffi.Pointer eventbuf, int nevents, Native.Timespec timeout)  
      int kqueue()  
      int pipe​(int[] fds)  
      int poll​(java.nio.ByteBuffer pfds, int nfds, int timeout)  
      int poll​(jnr.ffi.Pointer pfds, int nfds, int timeout)  
      int read​(int fd, byte[] data, long size)  
      int read​(int fd, java.nio.ByteBuffer data, long size)  
      int shutdown​(int s, int how)  
      java.lang.String strerror​(int error)  
      int write​(int fd, byte[] data, long size)  
      int write​(int fd, java.nio.ByteBuffer data, long size)  
    • Field Detail

      • F_GETFL

        static final int F_GETFL
      • F_SETFL

        static final int F_SETFL
      • O_NONBLOCK

        static final int O_NONBLOCK
    • Method Detail

      • close

        int close​(int fd)
      • read

        int read​(int fd,
                 java.nio.ByteBuffer data,
                 long size)
      • read

        int read​(int fd,
                 byte[] data,
                 long size)
      • write

        int write​(int fd,
                  java.nio.ByteBuffer data,
                  long size)
      • write

        int write​(int fd,
                  byte[] data,
                  long size)
      • fcntl

        int fcntl​(int fd,
                  int cmd,
                  int data)
      • poll

        int poll​(java.nio.ByteBuffer pfds,
                 int nfds,
                 int timeout)
      • poll

        int poll​(jnr.ffi.Pointer pfds,
                 int nfds,
                 int timeout)
      • kqueue

        int kqueue()
      • kevent

        int kevent​(int kq,
                   java.nio.ByteBuffer changebuf,
                   int nchanges,
                   java.nio.ByteBuffer eventbuf,
                   int nevents,
                   Native.Timespec timeout)
      • kevent

        int kevent​(int kq,
                   jnr.ffi.Pointer changebuf,
                   int nchanges,
                   jnr.ffi.Pointer eventbuf,
                   int nevents,
                   Native.Timespec timeout)
      • pipe

        int pipe​(int[] fds)
      • shutdown

        int shutdown​(int s,
                     int how)
      • strerror

        java.lang.String strerror​(int error)