1997-02-28 05:12:58 +00:00
|
|
|
/*
|
|
|
|
* These functions really belong in a separate library, libcompat, if
|
|
|
|
* we're trying to be BSD-ish. They are all obsolete functions.
|
|
|
|
*
|
1997-09-21 06:05:01 +00:00
|
|
|
* $Id: compat.c,v 1.2 1997/09/21 06:04:59 gdr Exp $
|
1997-02-28 05:12:58 +00:00
|
|
|
*
|
|
|
|
* This file is formatted with tabs every 8 characters.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __ORCAC__
|
|
|
|
segment "libc_gen__";
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <sgtty.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
gtty(int filedes, struct sgttyb *argp) {
|
|
|
|
return ioctl(filedes,TIOCGETP,argp);
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
stty (int filedes, struct sgttyb *argp) {
|
|
|
|
return ioctl(filedes,TIOCSETP,argp);
|
|
|
|
}
|