On Jan 3 2008 15:39, [EMAIL PROTECTED] wrote: >fantastic, thanks! > >unfortunately...... > >opensuse103:/home/roland/serialcons # ./mytioccons >ioctl: Device or resource busy > >but i`m not deep enough into programming to understand this. >
>int main(void) >{ >int fd = open("/dev/ttyS0", O_RDWR); >int errno; This errno is so out of place. > >ioctl(0, TIOCCONS, NULL); > >if (ioctl(fd, TIOCCONS, NULL) < 0) > printf("ioctl: %s\n", strerror(errno)); >} -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/