* @(#)sgtty.h 8.1 (Berkeley) 6/2/93
*/
+#ifndef _SGTTY_H_
+#define _SGTTY_H_
+
+#include <sys/cdefs.h>
+
#ifndef USE_OLD_TTY
#define USE_OLD_TTY
#endif
#include <sys/ioctl.h>
+
+__BEGIN_DECLS
+int gtty(int, struct sgttyb *);
+int stty(int, struct sgttyb *);
+__END_DECLS
+
+#define gtty(fd, buf) ioctl(fd, TIOCGETP, buf)
+#define stty(fd, buf) ioctl(fd, TIOCSETP, buf)
+
+#endif /* _SGTTY_H_ */