From: schuerch@tech.ascom.ch (Heinz Schuerch) Subject: A naive porting question ? Date: Thu, 6 May 1993 06:11:50 GMT
The following code fragment is part of an application I would like to
port to Linux. The code was written for SUN-OS (ptty.c written by Sun
Microsystems). Can anybody of the porting gurus tell me, what the equi-
valent constants for Linux are or where these constants are defined.
The code fragment looks as follows:
> /* Tty mode statics */
> static struct tchars tc;
> static struct ltchars ltc;
> static struct sgttyb sg;
> static int lm; /* localmodes */
> static int ld; /* ldisc */
>
> /* Default settings for tty mode stuff */
> static struct tchars tc_df =
> { CINTR, CQUIT, CSTART, CSTOP, CEOF, CBRK };
> static struct ltchars ltc_df =
> { CSUSP, CDSUSP, CRPRNT, CFLUSH, CWERASE, CLNEXT };
> static struct sgttyb sg_df =
> { B9600, B9600, CERASE, CKILL, ANYP|ECHO|CRMOD };
> static int lm_df = LCRTBS|LCRTERA|LCRTKIL|LCTLECH;
> static int ld_df = NTTYDISC;
Any suggestions are welcome
heinz
===============================================================================
heinz schuerch | e-mail: schuerch@tech.ascom.ch
ascom tech ag |
broadband research lab. | phone: ++41 31 999 42 83
3018 berne, switzerland | fax: ++41 31 991 52 11
===============================================================================