Class FreeBsdNativePty

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, Pty

    public class FreeBsdNativePty
    extends JnaNativePty
    • Field Detail

      • C_LIBRARY

        private static final CLibrary C_LIBRARY
    • Constructor Detail

      • FreeBsdNativePty

        public FreeBsdNativePty​(int master,
                                java.io.FileDescriptor masterFD,
                                int slave,
                                java.io.FileDescriptor slaveFD,
                                java.lang.String name)
      • FreeBsdNativePty

        public FreeBsdNativePty​(int master,
                                java.io.FileDescriptor masterFD,
                                int slave,
                                java.io.FileDescriptor slaveFD,
                                int slaveOut,
                                java.io.FileDescriptor slaveOutFD,
                                java.lang.String name)
    • Method Detail

      • current

        public static FreeBsdNativePty current()
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getAttr

        public Attributes getAttr()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • doSetAttr

        protected void doSetAttr​(Attributes attr)
                          throws java.io.IOException
        Specified by:
        doSetAttr in class AbstractPty
        Throws:
        java.io.IOException
      • getSize

        public Size getSize()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • setSize

        public void setSize​(Size size)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • isatty

        public static int isatty​(int fd)