<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>After converting by BSP to termios (mainly for
application</FONT></DIV>
<DIV><FONT face=Arial size=2>portability), I now can't figure out what
the portable way of</FONT></DIV>
<DIV><FONT face=Arial size=2>doing a tcsetattr() is if I'm using libc stdio. Or
more</FONT></DIV>
<DIV><FONT face=Arial size=2>specifically can I get a "int " file handle from a
"FILE *"</FONT></DIV>
<DIV><FONT face=Arial size=2>stream pointer?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I guessing the answer is to open the file
twice,</FONT></DIV>
<DIV><FONT face=Arial size=2>as a stream and using libio? Or could I
</FONT></DIV>
<DIV><FONT face=Arial size=2>open/tcsetsttr/close then go ahead and
</FONT></DIV>
<DIV><FONT face=Arial size=2>use streams knowing that the termios
state</FONT></DIV>
<DIV><FONT face=Arial size=2>would stay intact? (Is this portable?)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>And Yes I know I might look inside the FILE
</FONT></DIV>
<DIV><FONT face=Arial size=2>structure itself, but then the portability gods
might</FONT></DIV>
<DIV><FONT face=Arial size=2>strike me down. </FONT><FONT face=Arial
size=2><FONT face=Arial size=2>I'd rather skip fprintf </FONT><FONT face=Arial
size=2>in leu of </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>snprintf and write() the
buffer.</FONT></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Questions Questions...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> -Paul</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>