예제 #1
0
 public void cfmakeraw(Termios termios) {
   termios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
   termios.c_oflag &= ~OPOST;
   termios.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
   termios.c_cflag &= ~(CSIZE | PARENB);
   termios.c_cflag |= CS8;
 }
예제 #2
0
 public int tcgetattr(int fd, Termios termios) {
   Port port = getPort(fd);
   if (port == null) return -1;
   termios.set(port.m_Termios);
   return 0;
 }
예제 #3
0
 public int cfsetospeed(Termios termios, int speed) {
   termios.c_ospeed = speed;
   return 0;
 }
예제 #4
0
 public int cfsetispeed(Termios termios, int speed) {
   termios.c_ispeed = speed;
   return 0;
 } // Error code for Interrupted = EINTR