Re: serialBSD Client and the struct tty
Re: serialBSD Client and the struct tty
- Subject: Re: serialBSD Client and the struct tty
- From: Terry Lambert <email@hidden>
- Date: Thu, 22 Jun 2006 12:51:11 -0700
On Jun 22, 2006, at 4:11 AM, ram perumal wrote:
I am trying to reuse the code of
IOSerialBSDClient for a serial device....I am trying
to compile the open source available for the serial
family, (extracted the IOSerialBSDClient part alone )
and am facing the following problems...
1. I am unable to locate the header for struct
tty....#include<sys/tty.h> is not available in the
kernel framework
2. The line discipline part of the code would not
compile too...dont know
which specific header to include...
What version of the OS are you trying this with?
/usr/include/sys is fully populated for me on Tiger 8H*, which I
believe is the most recent software update.
My guess is that you failed to install the full set of SDKs, which is
where the header files are packaged for distribution.
For tty's, you'd be better off treating the structure as opaquely as
possible, and letting the system handled the line discipline (see xnu/
bsd/kern/tty.c for tty canonical processing; you can get the sources
from <http://OpenDarwin.org> if you need to inspect them; the
implementation of pty's, which are a client of the tty canonical
processing, are at xnu/bsd/kern/tty_pty.c at the same location).
-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden