#include #define gtty _gtty #define ioctl _ioctl #include PUBLIC int gtty(fd, argp) int fd; struct sgttyb *argp; { return(ioctl(fd, TIOCGETP, argp)); }