On 02/03/2008, Hannah Schroeter <[EMAIL PROTECTED]> wrote:

Hannah,

IMO you don't need /etc/ttys entries for terminals unless you need the
> terminal to be managed by init(8) or tty flags to be set by ttyflags(8)
> at boot, or your own program wants to read information from the ttys
> file using the ttyent family of functions (getttyent(), getttynam(),
> setttyent(), endttyend()).


Oh, I see.

For normal tty access, you need open/close/read/write, perhaps adorned
> by O_NONBLOCK (if you need to open the terminal line even though no
> carrier is detected) and probably a few terminal controls (see tty(4)
> and termios(4), using ioctl(2) and/or the functions described in the
> tcsetattr(3) manual page).



Yes, these are very useful; especially the O_NONBLOCK note - thank you.


On 02/03/2008, Marc Balmer <[EMAIL PROTECTED]> wrote:

Marc,

you don't need to edit /etc/ttys, your C program has to open
> /dev/cua00 (not /dev/tty00) and everything will just work.
>

Thank you for the very direct answer. This is exactly what I needed.



Really thank you for your fast responses and your time.


Vova

Reply via email to