1987-03-26 17:36:49 +00:00
|
|
|
#ifdef __CHANNEL__
|
|
|
|
struct sgttyb {
|
|
|
|
char sg_ispeed;
|
|
|
|
char sg_ospeed;
|
|
|
|
char sg_erase;
|
|
|
|
char sg_kill;
|
|
|
|
short sg_flags;
|
|
|
|
};
|
|
|
|
|
1987-04-01 15:37:14 +00:00
|
|
|
#ifdef __BSD4_2
|
1987-04-23 16:24:39 +00:00
|
|
|
#define TIOCGETP ((('t'<<8)|8)|(sizeof(struct sgttyb)<<16)|0x40000000)
|
|
|
|
#define TIOCSETN ((('t'<<8)|10)|(sizeof(struct sgttyb)<<16)|0x80000000)
|
1987-04-01 15:37:14 +00:00
|
|
|
#else
|
|
|
|
#define TIOCGETP (('t'<<8)|8)
|
|
|
|
#define TIOCSETN (('t'<<8)|10)
|
|
|
|
#endif
|
|
|
|
|
1987-03-26 17:36:49 +00:00
|
|
|
#define CBREAK 02
|
|
|
|
#define ECHO 010
|
|
|
|
#define CRMOD 020
|
|
|
|
#else
|
|
|
|
#include "/usr/include/sgtty.h"
|
|
|
|
#endif
|