From: kennu@mits.mdata.fi (Kenneth Falck) Subject: About Linux serial ports & term Date: 24 Feb 1993 16:54:32 GMT
First a quick question... Has anybody ported Michael O'Reilly's
term to ISC SVR3.2? The ISC we're using can't seem to handle things
like "struct sockaddr_un".
And about the serial ports... I'm making some terminal software,
and I'd like to know *exactly* the correct way to open and close
the callout devices (/dev/cua?).
I'd like to know this:
- Can I use the same file descriptor to both read and write a
serial port?
- What O_ flags are needed with open()? Are they different for
the read/write file descriptors, if the same descriptor can't
be used for both?
- Should my program modify some termios flags of the callout device?
I wonder if there's a good definition for all the flags somewhere.
(man stty gives a rather abstract description of the flags, and the
only manpage I have is from the ISC mentioned above)
- How should I close the descriptor(s) to avoid Linux dropping DTR
when I exit my program? I have my modem set to AT&D0, which means
`ignore DTR', but some people who have tried my program have
complained that their modem hangs up when they exit.
I'd appreciate it if someone takes the time to answer... thanks.
-- kennu@mits.mdata.fi