]> git.saurik.com Git - apple/libc.git/blobdiff - include/sgtty.h
Libc-391.2.7.tar.gz
[apple/libc.git] / include / sgtty.h
index 1934e785a04288184bf5f91d1a41681c44c9088b..ef1b9e2f05bc18ecb985a2f54aa4b53b0a75d7a9 100644 (file)
  *     @(#)sgtty.h     8.1 (Berkeley) 6/2/93
  */
 
  *     @(#)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>
 #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_ */