corrected for 4.2 bsd

This commit is contained in:
ceriel 1987-04-01 15:37:14 +00:00
parent f76127e364
commit 22c23521a3

View file

@ -1,6 +1,4 @@
#ifdef __CHANNEL__
#define TIOCGETP (('t'<<8)|8)
#define TIOCSETN (('t'<<8)|10)
struct sgttyb {
char sg_ispeed;
char sg_ospeed;
@ -9,6 +7,14 @@ struct sgttyb {
short sg_flags;
};
#ifdef __BSD4_2
#define TIOCGETP ((('t'<<8)|8)|(sizeof(struct sgttyb)<<16))
#define TIOCSETN ((('t'<<8)|10)|(sizeof(struct sgttyb)<<16))
#else
#define TIOCGETP (('t'<<8)|8)
#define TIOCSETN (('t'<<8)|10)
#endif
#define CBREAK 02
#define ECHO 010
#define CRMOD 020