Пример #1
0
 // This ioctl is Linux specific, so keep it private for now
 private int ioctl(int fd, int cmd, serial_struct data) {
   // Do the logging here as this does not go through the JTermios which normally does the logging
   log = log && log(5, "> ioctl(%d,%d,%s)\n", fd, cmd, data);
   int ret = m_Clib.ioctl(fd, cmd, data);
   log = log && log(3, "< tcsetattr(%d,%d,%s) => %d\n", fd, cmd, data, ret);
   return ret;
 }
Пример #2
0
 public int ioctl(int fd, int cmd, int[] data) {
   return m_Clib.ioctl(fd, cmd, data);
 }