| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
If you specifically want WaitCommEven-like informationt, you use select or poll and when an event happens you use an ioctl() to ask the status of the device contol lines. In general, it is not useful to watch CTS/RTS events, since hardware flow control is handles in the line discipline layer, below the covers. Additionally, if there is an on-to-off DCD transition, if the device is the controlling tty for a process, that process will be sent a SIGHUP if the TTY flag HUPCL is set and the flag CLOCAL is not set. Finally, if it is the initial open, and DCD is low, the open will block until there is an off-to-on DCD transition, unless the device is the non-modem control node, or you specify O_NDELAY, either leaving all I/O as non-blocking or as part of performing the partial open hack. Reading the getty sources might enlighten you some, but any UNIX serial programming guide worth the name will have already given you the information.
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden This email sent to email@hidden
| References: | |
| >Handling of events on serial port (From: "Rakesh Singhal" <email@hidden>) | |
| >Re: Handling of events on serial port (From: Phil <email@hidden>) | |
| >Re: Handling of events on serial port (From: "Rakesh Singhal" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.