Class SolarisNativePty

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

    public class SolarisNativePty
    extends JnaNativePty
    • Field Detail

      • C_LIBRARY

        private static final CLibrary C_LIBRARY
    • Constructor Detail

      • SolarisNativePty

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

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

      • 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)
      • ttyname

        public static java.lang.String ttyname​(int slave)