use C library err/warn routines, index->strchr, etc.
[unix-history] / usr / src / bin / stty / stty.h
index 6300c1d..f388d58 100644 (file)
@@ -4,13 +4,21 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)stty.h      5.1 (Berkeley) %G%
+ *     @(#)stty.h      5.3 (Berkeley) %G%
  */
 
  */
 
-struct modes {
-       char *name;
-       long set;
-       long unset;
+#include <sys/ioctl.h>
+#include <termios.h>
+
+struct info {
+       int fd;                                 /* file descriptor */
+       int ldisc;                              /* line discipline */
+       int off;                                /* turn off */
+       int set;                                /* need set */
+       int wset;                               /* need window set */
+       char *arg;                              /* argument */
+       struct termios t;                       /* terminal info */
+       struct winsize win;                     /* window info */
 };
 
 struct cchar {
 };
 
 struct cchar {