*** post for FREE via your newsreader at post.newsfeed.com ***
Hi:
I would like the signal SIGPOLL (or SIGIO) to be sent to the application
when something is available on the serial port. So I tried to use
asynchronous IO for serial port on Linux, but the function ioctl always
returns the error "invalid argument". Here is the code:
/* ... */
/* open the serial port and obtain the file descriptor */
fd = open("/dev/ttyS0", O_RDWR | O_NONBLOCK | O_NDELAY | O_NOCTTY, 0)
if (fd == -1)
if (ioctl(fd, I_SETSIG, S_RDNORM) == -1)
(void) perror("Error ioctl: ");
/* setting up the poll events, etc */
/* ... */
Could someone help me on this? Does linux 2.4.10 support asynchronous
IO on serial port (a stream device)
Thank
Hor Meng
-----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
http://www.newsfeed.com - The #1 Newsgroup Service in the World!
-----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----