SCCS-vsn: usr.bin/window/ww.h 3.22
SCCS-vsn: usr.bin/window/wwtty.c 3.5
SCCS-vsn: usr.bin/window/wwdata.c 3.8
- * @(#)ww.h 3.21 83/12/02
+ * @(#)ww.h 3.22 83/12/17
struct ww_dim {
int nr; /* number of rows */
int nc; /* number of columns */
struct ww_dim {
int nr; /* number of rows */
int nc; /* number of columns */
int l, r; /* left, right */
};
int l, r; /* left, right */
};
struct ww_pos {
int r; /* row */
int c; /* column */
};
struct ww_pos {
int r; /* row */
int c; /* column */
};
+ /* the window structure */
struct ww {
struct ww *ww_forw; /* doubly linked list, for overlapping info */
struct ww *ww_back;
struct ww {
struct ww *ww_forw; /* doubly linked list, for overlapping info */
struct ww *ww_back;
struct ww_pos ww_altpos;/* alternate position */
};
struct ww_pos ww_altpos;/* alternate position */
};
struct ww_tty {
struct sgttyb ww_sgttyb;
struct tchars ww_tchars;
struct ltchars ww_ltchars;
int ww_lmode;
int ww_ldisc;
struct ww_tty {
struct sgttyb ww_sgttyb;
struct tchars ww_tchars;
struct ltchars ww_ltchars;
int ww_lmode;
int ww_ldisc;
/* ww_state values */
#define WWS_INITIAL 0 /* just opened */
/* ww_state values */
#define WWS_INITIAL 0 /* just opened */
-#define WWS_HASPROC 1 /* forked, in parent */
-#define WWS_INCHILD 2 /* forked, in child */
+#define WWS_HASPROC 1 /* has process on pty */
#define WWS_DEAD 3 /* child died */
/* flags for ww_fmap */
#define WWS_DEAD 3 /* child died */
/* flags for ww_fmap */
-static char *sccsid = "@(#)wwdata.c 3.7 83/09/17";
+static char *sccsid = "@(#)wwdata.c 3.8 83/12/17";
{ 0, 0, -1, -1, 0 },
{ -1, -1, -1, -1, -1, -1 },
{ -1, -1, -1, -1, -1, -1 },
{ 0, 0, -1, -1, 0 },
{ -1, -1, -1, -1, -1, -1 },
{ -1, -1, -1, -1, -1, -1 },
-static char *sccsid = "@(#)wwtty.c 3.4 83/08/26";
+static char *sccsid = "@(#)wwtty.c 3.5 83/12/17";
goto bad;
if (ioctl(d, (int)TIOCGETD, (char *)&t->ww_ldisc) < 0)
goto bad;
goto bad;
if (ioctl(d, (int)TIOCGETD, (char *)&t->ww_ldisc) < 0)
goto bad;
- if (ioctl(d, (int)TIOCGPGRP, (char *)&t->ww_pgrp) < 0)
- goto bad;
return 0;
bad:
wwerrno = WWE_SYS;
return 0;
bad:
wwerrno = WWE_SYS;
goto bad;
if (ioctl(d, (int)TIOCSETD, (char *)&t->ww_ldisc) < 0)
goto bad;
goto bad;
if (ioctl(d, (int)TIOCSETD, (char *)&t->ww_ldisc) < 0)
goto bad;
- if (ioctl(d, (int)TIOCSPGRP, (char *)&t->ww_pgrp) < 0)
- goto bad;
return 0;
bad:
wwerrno = WWE_SYS;
return 0;
bad:
wwerrno = WWE_SYS;