On Sat, Apr 23, 2005 at 01:42:34PM +0200, Robert Millan wrote: > On Fri, Apr 22, 2005 at 06:47:21PM +0200, Aurelien Jarno wrote: > > On Sun, Apr 17, 2005 at 08:25:44PM +0200, Robert Millan wrote: > > > > > > Hi! > > > > > > AFAIK, the modern, portable interface for doing this is termios, which we > > > do > > > provide in Glibc. Including "<asm/termios.h>" is Linux-specific because > > > its > > > using the wrong path. > > > > > > Would a "#include <termios.h>" do the job? > > This file is already included, but gtkterm also need asm/termios.h or > > sys/ttycom.h for TIOCM_* defines, as it gives the possibility to get or > > set control lines (ie CTS, RTS, DTR, etc.). > > Oh, I didn't know about these. I assume there aren't any libc to calls to > wrap them around? Actually this <asm/termios.h> doesn't contain any functions, they are in the portable part of termios, ie in <termios.h>.
<asm/termios.h> or <sys/ttycom.h> almost contains bit masks that are kernel dependent, and maybe (not sure) arch dependent. -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian GNU/Linux developer | Electrical Engineer `. `' [EMAIL PROTECTED] | [EMAIL PROTECTED] `- people.debian.org/~aurel32 | www.aurel32.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]