some source cleaning by me.
This undoes Theo's wait() changes which broke the old version.
-# $OpenBSD: Makefile,v 1.3 1996/06/26 05:43:03 deraadt Exp $
+# $OpenBSD: Makefile,v 1.4 1997/02/25 00:03:49 downsj Exp $
# $NetBSD: Makefile,v 1.6 1995/12/21 05:24:49 mycroft Exp $
+# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= window
SRCS= char.c cmd.c cmd1.c cmd2.c cmd3.c cmd4.c cmd5.c cmd6.c cmd7.c \
-/* $OpenBSD: README,v 1.2 1996/06/26 05:43:04 deraadt Exp $ */
+/* $OpenBSD: README,v 1.3 1997/02/25 00:03:51 downsj Exp $ */
/*-
* Copyright (c) 1990, 1993
-/* $OpenBSD: alias.h,v 1.2 1996/06/26 05:43:05 deraadt Exp $ */
+/* $OpenBSD: alias.h,v 1.3 1997/02/25 00:03:52 downsj Exp $ */
/* $NetBSD: alias.h,v 1.3 1995/09/28 10:33:59 tls Exp $ */
/*
-/* $OpenBSD: char.c,v 1.2 1996/06/26 05:43:05 deraadt Exp $ */
+/* $OpenBSD: char.c,v 1.3 1997/02/25 00:03:53 downsj Exp $ */
/* $NetBSD: char.c,v 1.3 1995/09/28 10:34:00 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)char.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: char.c,v 1.2 1996/06/26 05:43:05 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: char.c,v 1.3 1997/02/25 00:03:53 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: char.h,v 1.2 1996/06/26 05:43:06 deraadt Exp $ */
+/* $OpenBSD: char.h,v 1.3 1997/02/25 00:03:53 downsj Exp $ */
/* $NetBSD: char.h,v 1.3 1995/09/28 10:34:01 tls Exp $ */
/*
-/* $OpenBSD: cmd.c,v 1.3 1996/06/26 05:43:06 deraadt Exp $ */
+/* $OpenBSD: cmd.c,v 1.4 1997/02/25 00:03:54 downsj Exp $ */
/* $NetBSD: cmd.c,v 1.4 1996/02/08 20:44:57 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cmd.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: cmd.c,v 1.3 1996/06/26 05:43:06 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cmd.c,v 1.4 1997/02/25 00:03:54 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: cmd1.c,v 1.3 1996/06/26 05:43:07 deraadt Exp $ */
+/* $OpenBSD: cmd1.c,v 1.4 1997/02/25 00:03:55 downsj Exp $ */
/* $NetBSD: cmd1.c,v 1.4 1996/02/08 20:44:59 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cmd1.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: cmd1.c,v 1.3 1996/06/26 05:43:07 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cmd1.c,v 1.4 1997/02/25 00:03:55 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: cmd2.c,v 1.2 1996/06/26 05:43:07 deraadt Exp $ */
+/* $OpenBSD: cmd2.c,v 1.3 1997/02/25 00:03:56 downsj Exp $ */
/* $NetBSD: cmd2.c,v 1.3 1995/09/28 10:34:05 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cmd2.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: cmd2.c,v 1.2 1996/06/26 05:43:07 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cmd2.c,v 1.3 1997/02/25 00:03:56 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: cmd3.c,v 1.2 1996/06/26 05:43:08 deraadt Exp $ */
+/* $OpenBSD: cmd3.c,v 1.3 1997/02/25 00:03:57 downsj Exp $ */
/* $NetBSD: cmd3.c,v 1.3 1995/09/28 10:34:07 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cmd3.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: cmd3.c,v 1.2 1996/06/26 05:43:08 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cmd3.c,v 1.3 1997/02/25 00:03:57 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: cmd4.c,v 1.2 1996/06/26 05:43:09 deraadt Exp $ */
+/* $OpenBSD: cmd4.c,v 1.3 1997/02/25 00:03:58 downsj Exp $ */
/* $NetBSD: cmd4.c,v 1.3 1995/09/28 10:34:08 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cmd4.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: cmd4.c,v 1.2 1996/06/26 05:43:09 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cmd4.c,v 1.3 1997/02/25 00:03:58 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: cmd5.c,v 1.2 1996/06/26 05:43:09 deraadt Exp $ */
+/* $OpenBSD: cmd5.c,v 1.3 1997/02/25 00:03:59 downsj Exp $ */
/* $NetBSD: cmd5.c,v 1.3 1995/09/28 10:34:09 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cmd5.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: cmd5.c,v 1.2 1996/06/26 05:43:09 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cmd5.c,v 1.3 1997/02/25 00:03:59 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: cmd6.c,v 1.2 1996/06/26 05:43:10 deraadt Exp $ */
+/* $OpenBSD: cmd6.c,v 1.3 1997/02/25 00:04:00 downsj Exp $ */
/* $NetBSD: cmd6.c,v 1.3 1995/09/28 10:34:10 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cmd6.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: cmd6.c,v 1.2 1996/06/26 05:43:10 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cmd6.c,v 1.3 1997/02/25 00:04:00 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: cmd7.c,v 1.2 1996/06/26 05:43:10 deraadt Exp $ */
+/* $OpenBSD: cmd7.c,v 1.3 1997/02/25 00:04:00 downsj Exp $ */
/* $NetBSD: cmd7.c,v 1.3 1995/09/28 10:34:12 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)cmd7.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: cmd7.c,v 1.2 1996/06/26 05:43:10 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cmd7.c,v 1.3 1997/02/25 00:04:00 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: compress.c,v 1.2 1996/06/26 05:43:11 deraadt Exp $ */
+/* $OpenBSD: compress.c,v 1.3 1997/02/25 00:04:01 downsj Exp $ */
/* $NetBSD: compress.c,v 1.3 1995/09/28 10:34:13 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)compress.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: compress.c,v 1.2 1996/06/26 05:43:11 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: compress.c,v 1.3 1997/02/25 00:04:01 downsj Exp $";
#endif
#endif /* not lint */
+#include <stdlib.h>
+
#include "ww.h"
#include "tt.h"
-/* $OpenBSD: context.c,v 1.2 1996/06/26 05:43:11 deraadt Exp $ */
+/* $OpenBSD: context.c,v 1.3 1997/02/25 00:04:02 downsj Exp $ */
/* $NetBSD: context.c,v 1.3 1995/09/28 10:34:15 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)context.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: context.c,v 1.2 1996/06/26 05:43:11 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: context.c,v 1.3 1997/02/25 00:04:02 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: context.h,v 1.2 1996/06/26 05:43:12 deraadt Exp $ */
+/* $OpenBSD: context.h,v 1.3 1997/02/25 00:04:03 downsj Exp $ */
/* $NetBSD: context.h,v 1.3 1995/09/28 10:34:17 tls Exp $ */
/*
-/* $OpenBSD: defs.h,v 1.2 1996/06/26 05:43:13 deraadt Exp $ */
+/* $OpenBSD: defs.h,v 1.3 1997/02/25 00:04:03 downsj Exp $ */
/* $NetBSD: defs.h,v 1.3 1995/09/28 10:34:19 tls Exp $ */
/*
-/* $OpenBSD: error.c,v 1.2 1996/06/26 05:43:13 deraadt Exp $ */
+/* $OpenBSD: error.c,v 1.3 1997/02/25 00:04:04 downsj Exp $ */
/* $NetBSD: error.c,v 1.3 1995/09/28 10:34:20 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)error.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: error.c,v 1.2 1996/06/26 05:43:13 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: error.c,v 1.3 1997/02/25 00:04:04 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: lcmd.c,v 1.2 1996/06/26 05:43:14 deraadt Exp $ */
+/* $OpenBSD: lcmd.c,v 1.3 1997/02/25 00:04:05 downsj Exp $ */
/* $NetBSD: lcmd.c,v 1.3 1995/09/28 10:34:21 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)lcmd.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lcmd.c,v 1.2 1996/06/26 05:43:14 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: lcmd.c,v 1.3 1997/02/25 00:04:05 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: lcmd.h,v 1.2 1996/06/26 05:43:14 deraadt Exp $ */
+/* $OpenBSD: lcmd.h,v 1.3 1997/02/25 00:04:06 downsj Exp $ */
/* $NetBSD: lcmd.h,v 1.3 1995/09/28 10:34:22 tls Exp $ */
/*
-/* $OpenBSD: lcmd1.c,v 1.4 1997/01/17 07:13:51 millert Exp $ */
+/* $OpenBSD: lcmd1.c,v 1.5 1997/02/25 00:04:07 downsj Exp $ */
/* $NetBSD: lcmd1.c,v 1.6 1996/02/08 20:45:00 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)lcmd1.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lcmd1.c,v 1.4 1997/01/17 07:13:51 millert Exp $";
+static char rcsid[] = "$OpenBSD: lcmd1.c,v 1.5 1997/02/25 00:04:07 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: lcmd2.c,v 1.3 1997/01/17 07:13:52 millert Exp $ */
+/* $OpenBSD: lcmd2.c,v 1.4 1997/02/25 00:04:08 downsj Exp $ */
/* $NetBSD: lcmd2.c,v 1.7 1995/09/29 00:44:04 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)lcmd2.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lcmd2.c,v 1.3 1997/01/17 07:13:52 millert Exp $";
+static char rcsid[] = "$OpenBSD: lcmd2.c,v 1.4 1997/02/25 00:04:08 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: local.h,v 1.2 1996/06/26 05:43:16 deraadt Exp $ */
+/* $OpenBSD: local.h,v 1.3 1997/02/25 00:04:08 downsj Exp $ */
/* $NetBSD: local.h,v 1.3 1995/09/28 10:34:26 tls Exp $ */
/*
-/* $OpenBSD: main.c,v 1.5 1997/01/17 07:13:52 millert Exp $ */
+/* $OpenBSD: main.c,v 1.6 1997/02/25 00:04:09 downsj Exp $ */
/* $NetBSD: main.c,v 1.6 1996/02/08 20:45:01 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.5 1997/01/17 07:13:52 millert Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.6 1997/02/25 00:04:09 downsj Exp $";
#endif
#endif /* not lint */
#include "defs.h"
#include <paths.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "string.h"
#include "char.h"
#include "local.h"
-/* $OpenBSD: mloop.c,v 1.4 1996/06/26 05:43:17 deraadt Exp $ */
+/* $OpenBSD: mloop.c,v 1.5 1997/02/25 00:04:10 downsj Exp $ */
/* $NetBSD: mloop.c,v 1.5 1996/02/08 20:45:03 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)mloop.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: mloop.c,v 1.4 1996/06/26 05:43:17 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mloop.c,v 1.5 1997/02/25 00:04:10 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: parser.h,v 1.2 1996/06/26 05:43:18 deraadt Exp $ */
+/* $OpenBSD: parser.h,v 1.3 1997/02/25 00:04:11 downsj Exp $ */
/* $NetBSD: parser.h,v 1.3 1995/09/28 10:34:29 tls Exp $ */
/*
-/* $OpenBSD: parser1.c,v 1.2 1996/06/26 05:43:18 deraadt Exp $ */
+/* $OpenBSD: parser1.c,v 1.3 1997/02/25 00:04:11 downsj Exp $ */
/* $NetBSD: parser1.c,v 1.3 1995/09/28 10:34:31 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)parser1.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: parser1.c,v 1.2 1996/06/26 05:43:18 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: parser1.c,v 1.3 1997/02/25 00:04:11 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: parser2.c,v 1.2 1996/06/26 05:43:19 deraadt Exp $ */
+/* $OpenBSD: parser2.c,v 1.3 1997/02/25 00:04:12 downsj Exp $ */
/* $NetBSD: parser2.c,v 1.3 1995/09/28 10:34:32 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)parser2.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: parser2.c,v 1.2 1996/06/26 05:43:19 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: parser2.c,v 1.3 1997/02/25 00:04:12 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: parser3.c,v 1.2 1996/06/26 05:43:19 deraadt Exp $ */
+/* $OpenBSD: parser3.c,v 1.3 1997/02/25 00:04:13 downsj Exp $ */
/* $NetBSD: parser3.c,v 1.3 1995/09/28 10:34:33 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)parser3.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: parser3.c,v 1.2 1996/06/26 05:43:19 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: parser3.c,v 1.3 1997/02/25 00:04:13 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: parser4.c,v 1.2 1996/06/26 05:43:20 deraadt Exp $ */
+/* $OpenBSD: parser4.c,v 1.3 1997/02/25 00:04:14 downsj Exp $ */
/* $NetBSD: parser4.c,v 1.5 1995/09/29 00:44:05 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)parser4.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: parser4.c,v 1.2 1996/06/26 05:43:20 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: parser4.c,v 1.3 1997/02/25 00:04:14 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: parser5.c,v 1.2 1996/06/26 05:43:20 deraadt Exp $ */
+/* $OpenBSD: parser5.c,v 1.3 1997/02/25 00:04:15 downsj Exp $ */
/* $NetBSD: parser5.c,v 1.3 1995/09/28 10:34:35 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)parser5.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: parser5.c,v 1.2 1996/06/26 05:43:20 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: parser5.c,v 1.3 1997/02/25 00:04:15 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: scanner.c,v 1.2 1996/06/26 05:43:21 deraadt Exp $ */
+/* $OpenBSD: scanner.c,v 1.3 1997/02/25 00:04:16 downsj Exp $ */
/* $NetBSD: scanner.c,v 1.3 1995/09/28 10:34:36 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)scanner.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: scanner.c,v 1.2 1996/06/26 05:43:21 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: scanner.c,v 1.3 1997/02/25 00:04:16 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: startup.c,v 1.3 1996/06/26 05:43:21 deraadt Exp $ */
+/* $OpenBSD: startup.c,v 1.4 1997/02/25 00:04:17 downsj Exp $ */
/* $NetBSD: startup.c,v 1.4 1996/02/08 20:45:04 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)startup.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: startup.c,v 1.3 1996/06/26 05:43:21 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: startup.c,v 1.4 1997/02/25 00:04:17 downsj Exp $";
#endif
#endif /* not lint */
#include "defs.h"
+#include <stdlib.h>
#include "value.h"
#include "var.h"
#include "char.h"
-/* $OpenBSD: string.c,v 1.2 1996/06/26 05:43:22 deraadt Exp $ */
+/* $OpenBSD: string.c,v 1.3 1997/02/25 00:04:18 downsj Exp $ */
/* $NetBSD: string.c,v 1.5 1995/09/29 00:44:06 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)string.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: string.c,v 1.2 1996/06/26 05:43:22 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: string.c,v 1.3 1997/02/25 00:04:18 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: string.h,v 1.2 1996/06/26 05:43:23 deraadt Exp $ */
+/* $OpenBSD: string.h,v 1.3 1997/02/25 00:04:18 downsj Exp $ */
/* $NetBSD: string.h,v 1.3 1995/09/28 10:34:40 tls Exp $ */
/*
-/* $OpenBSD: token.h,v 1.2 1996/06/26 05:43:23 deraadt Exp $ */
+/* $OpenBSD: token.h,v 1.3 1997/02/25 00:04:19 downsj Exp $ */
/* $NetBSD: token.h,v 1.3 1995/09/28 10:34:41 tls Exp $ */
/*
-/* $OpenBSD: tt.h,v 1.2 1996/06/26 05:43:24 deraadt Exp $ */
+/* $OpenBSD: tt.h,v 1.3 1997/02/25 00:04:20 downsj Exp $ */
/* $NetBSD: tt.h,v 1.3 1995/09/28 10:34:42 tls Exp $ */
/*
-/* $OpenBSD: ttf100.c,v 1.2 1996/06/26 05:43:24 deraadt Exp $ */
+/* $OpenBSD: ttf100.c,v 1.3 1997/02/25 00:04:21 downsj Exp $ */
/* $NetBSD: ttf100.c,v 1.3 1995/09/28 10:34:44 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)ttf100.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: ttf100.c,v 1.2 1996/06/26 05:43:24 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ttf100.c,v 1.3 1997/02/25 00:04:21 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: ttgeneric.c,v 1.2 1996/06/26 05:43:25 deraadt Exp $ */
+/* $OpenBSD: ttgeneric.c,v 1.3 1997/02/25 00:04:22 downsj Exp $ */
/* $NetBSD: ttgeneric.c,v 1.3 1995/09/28 10:34:45 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)ttgeneric.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: ttgeneric.c,v 1.2 1996/06/26 05:43:25 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ttgeneric.c,v 1.3 1997/02/25 00:04:22 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: tth19.c,v 1.2 1996/06/26 05:43:25 deraadt Exp $ */
+/* $OpenBSD: tth19.c,v 1.3 1997/02/25 00:04:22 downsj Exp $ */
/* $NetBSD: tth19.c,v 1.3 1995/09/28 10:34:47 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)tth19.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: tth19.c,v 1.2 1996/06/26 05:43:25 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tth19.c,v 1.3 1997/02/25 00:04:22 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: tth29.c,v 1.2 1996/06/26 05:43:26 deraadt Exp $ */
+/* $OpenBSD: tth29.c,v 1.3 1997/02/25 00:04:23 downsj Exp $ */
/* $NetBSD: tth29.c,v 1.3 1995/09/28 10:34:48 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)tth29.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: tth29.c,v 1.2 1996/06/26 05:43:26 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tth29.c,v 1.3 1997/02/25 00:04:23 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: ttinit.c,v 1.2 1996/06/26 05:43:26 deraadt Exp $ */
+/* $OpenBSD: ttinit.c,v 1.3 1997/02/25 00:04:24 downsj Exp $ */
/* $NetBSD: ttinit.c,v 1.3 1995/09/28 10:34:50 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)ttinit.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: ttinit.c,v 1.2 1996/06/26 05:43:26 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ttinit.c,v 1.3 1997/02/25 00:04:24 downsj Exp $";
#endif
#endif /* not lint */
+#include <stdlib.h>
#include "ww.h"
#include "tt.h"
-/* $OpenBSD: ttoutput.c,v 1.2 1996/06/26 05:43:27 deraadt Exp $ */
+/* $OpenBSD: ttoutput.c,v 1.3 1997/02/25 00:04:25 downsj Exp $ */
/* $NetBSD: ttoutput.c,v 1.3 1995/09/28 10:34:51 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)ttoutput.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: ttoutput.c,v 1.2 1996/06/26 05:43:27 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ttoutput.c,v 1.3 1997/02/25 00:04:25 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: tttermcap.c,v 1.2 1996/06/26 05:43:27 deraadt Exp $ */
+/* $OpenBSD: tttermcap.c,v 1.3 1997/02/25 00:04:25 downsj Exp $ */
/* $NetBSD: tttermcap.c,v 1.3 1995/09/28 10:34:52 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)tttermcap.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: tttermcap.c,v 1.2 1996/06/26 05:43:27 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tttermcap.c,v 1.3 1997/02/25 00:04:25 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: tttvi925.c,v 1.2 1996/06/26 05:43:28 deraadt Exp $ */
+/* $OpenBSD: tttvi925.c,v 1.3 1997/02/25 00:04:26 downsj Exp $ */
/* $NetBSD: tttvi925.c,v 1.3 1995/09/28 10:34:54 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)tttvi925.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: tttvi925.c,v 1.2 1996/06/26 05:43:28 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tttvi925.c,v 1.3 1997/02/25 00:04:26 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: ttwyse60.c,v 1.2 1996/06/26 05:43:28 deraadt Exp $ */
+/* $OpenBSD: ttwyse60.c,v 1.3 1997/02/25 00:04:27 downsj Exp $ */
/* $NetBSD: ttwyse60.c,v 1.3 1995/09/28 10:34:55 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)ttwyse60.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: ttwyse60.c,v 1.2 1996/06/26 05:43:28 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ttwyse60.c,v 1.3 1997/02/25 00:04:27 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: ttwyse75.c,v 1.2 1996/06/26 05:43:29 deraadt Exp $ */
+/* $OpenBSD: ttwyse75.c,v 1.3 1997/02/25 00:04:28 downsj Exp $ */
/* $NetBSD: ttwyse75.c,v 1.3 1995/09/28 10:34:56 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)ttwyse75.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: ttwyse75.c,v 1.2 1996/06/26 05:43:29 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ttwyse75.c,v 1.3 1997/02/25 00:04:28 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: ttzapple.c,v 1.2 1996/06/26 05:43:30 deraadt Exp $ */
+/* $OpenBSD: ttzapple.c,v 1.3 1997/02/25 00:04:28 downsj Exp $ */
/* $NetBSD: ttzapple.c,v 1.3 1995/09/28 10:34:57 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)ttzapple.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: ttzapple.c,v 1.2 1996/06/26 05:43:30 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ttzapple.c,v 1.3 1997/02/25 00:04:28 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: ttzentec.c,v 1.2 1996/06/26 05:43:30 deraadt Exp $ */
+/* $OpenBSD: ttzentec.c,v 1.3 1997/02/25 00:04:29 downsj Exp $ */
/* $NetBSD: ttzentec.c,v 1.3 1995/09/28 10:34:58 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)ttzentec.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: ttzentec.c,v 1.2 1996/06/26 05:43:30 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ttzentec.c,v 1.3 1997/02/25 00:04:29 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: value.h,v 1.2 1996/06/26 05:43:31 deraadt Exp $ */
+/* $OpenBSD: value.h,v 1.3 1997/02/25 00:04:30 downsj Exp $ */
/* $NetBSD: value.h,v 1.3 1995/09/28 10:35:00 tls Exp $ */
/*
-/* $OpenBSD: var.c,v 1.2 1996/06/26 05:43:31 deraadt Exp $ */
+/* $OpenBSD: var.c,v 1.3 1997/02/25 00:04:31 downsj Exp $ */
/* $NetBSD: var.c,v 1.4 1995/09/28 10:35:01 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)var.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: var.c,v 1.2 1996/06/26 05:43:31 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: var.c,v 1.3 1997/02/25 00:04:31 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: var.h,v 1.2 1996/06/26 05:43:32 deraadt Exp $ */
+/* $OpenBSD: var.h,v 1.3 1997/02/25 00:04:32 downsj Exp $ */
/* $NetBSD: var.h,v 1.3 1995/09/28 10:35:02 tls Exp $ */
/*
-/* $OpenBSD: win.c,v 1.4 1996/06/26 05:43:32 deraadt Exp $ */
+/* $OpenBSD: win.c,v 1.5 1997/02/25 00:04:32 downsj Exp $ */
/* $NetBSD: win.c,v 1.8 1996/02/08 21:07:57 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)win.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: win.c,v 1.4 1996/06/26 05:43:32 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: win.c,v 1.5 1997/02/25 00:04:32 downsj Exp $";
#endif
#endif /* not lint */
-.\" $OpenBSD: window.1,v 1.2 1996/06/26 05:43:33 deraadt Exp $
+.\" $OpenBSD: window.1,v 1.3 1997/02/25 00:04:34 downsj Exp $
.\" $NetBSD: window.1,v 1.3 1995/09/28 10:35:05 tls Exp $
.\"
.\" Copyright (c) 1985, 1990, 1993
-# $OpenBSD: windowrc,v 1.2 1996/06/26 05:43:34 deraadt Exp $
-
+# $OpenBSD: windowrc,v 1.3 1997/02/25 00:04:35 downsj Exp $
+#
# Copyright (c) 1983, 1993
# The Regents of the University of California. All rights reserved.
#
-/* $OpenBSD: ww.h,v 1.5 1996/11/25 13:12:19 niklas Exp $ */
-/* $NetBSD: ww.h,v 1.8 1996/02/08 21:48:51 mycroft Exp $ */
+/* $OpenBSD: ww.h,v 1.6 1997/02/25 00:04:36 downsj Exp $ */
+/* $NetBSD: ww.h,v 1.9 1996/10/12 23:46:23 christos Exp $ */
/*
* Copyright (c) 1983, 1993
#endif
#include <setjmp.h>
#include <sys/types.h>
-#include <machine/endian.h>
#define NWW 30 /* maximum number of windows */
char **wwalloc();
char *wwerror();
- /* c library functions */
-char *malloc();
-char *calloc();
-char *getenv();
-char *tgetstr();
-char *rindex();
-char *strcpy();
-char *strcat();
-
#undef MIN
#undef MAX
#define MIN(x, y) ((x) > (y) ? (y) : (x))
-/* $OpenBSD: wwadd.c,v 1.3 1996/06/26 05:43:35 deraadt Exp $ */
+/* $OpenBSD: wwadd.c,v 1.4 1997/02/25 00:04:37 downsj Exp $ */
/* $NetBSD: wwadd.c,v 1.4 1996/02/08 21:48:56 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwadd.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwadd.c,v 1.3 1996/06/26 05:43:35 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwadd.c,v 1.4 1997/02/25 00:04:37 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwalloc.c,v 1.2 1996/06/26 05:43:35 deraadt Exp $ */
+/* $OpenBSD: wwalloc.c,v 1.3 1997/02/25 00:04:38 downsj Exp $ */
/* $NetBSD: wwalloc.c,v 1.3 1995/09/28 10:35:10 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwalloc.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwalloc.c,v 1.2 1996/06/26 05:43:35 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwalloc.c,v 1.3 1997/02/25 00:04:38 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwbox.c,v 1.2 1996/06/26 05:43:36 deraadt Exp $ */
+/* $OpenBSD: wwbox.c,v 1.3 1997/02/25 00:04:39 downsj Exp $ */
/* $NetBSD: wwbox.c,v 1.3 1995/09/28 10:35:11 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwbox.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwbox.c,v 1.2 1996/06/26 05:43:36 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwbox.c,v 1.3 1997/02/25 00:04:39 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwchild.c,v 1.2 1996/06/26 05:43:36 deraadt Exp $ */
+/* $OpenBSD: wwchild.c,v 1.3 1997/02/25 00:04:41 downsj Exp $ */
/* $NetBSD: wwchild.c,v 1.3 1995/09/28 10:35:13 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwchild.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwchild.c,v 1.2 1996/06/26 05:43:36 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwchild.c,v 1.3 1997/02/25 00:04:41 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwclose.c,v 1.2 1996/06/26 05:43:37 deraadt Exp $ */
+/* $OpenBSD: wwclose.c,v 1.3 1997/02/25 00:04:42 downsj Exp $ */
/* $NetBSD: wwclose.c,v 1.3 1995/09/28 10:35:14 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwclose.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwclose.c,v 1.2 1996/06/26 05:43:37 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwclose.c,v 1.3 1997/02/25 00:04:42 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwclreol.c,v 1.3 1996/06/26 05:43:37 deraadt Exp $ */
+/* $OpenBSD: wwclreol.c,v 1.4 1997/02/25 00:04:43 downsj Exp $ */
/* $NetBSD: wwclreol.c,v 1.4 1996/02/08 21:48:58 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwclreol.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwclreol.c,v 1.3 1996/06/26 05:43:37 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwclreol.c,v 1.4 1997/02/25 00:04:43 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwclreos.c,v 1.3 1996/06/26 05:43:38 deraadt Exp $ */
+/* $OpenBSD: wwclreos.c,v 1.4 1997/02/25 00:04:43 downsj Exp $ */
/* $NetBSD: wwclreos.c,v 1.4 1996/02/08 20:45:07 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwclreos.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwclreos.c,v 1.3 1996/06/26 05:43:38 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwclreos.c,v 1.4 1997/02/25 00:04:43 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwcursor.c,v 1.3 1996/06/26 05:43:38 deraadt Exp $ */
+/* $OpenBSD: wwcursor.c,v 1.4 1997/02/25 00:04:44 downsj Exp $ */
/* $NetBSD: wwcursor.c,v 1.4 1996/02/08 20:45:08 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwcursor.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwcursor.c,v 1.3 1996/06/26 05:43:38 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwcursor.c,v 1.4 1997/02/25 00:04:44 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwdata.c,v 1.2 1996/06/26 05:43:39 deraadt Exp $ */
+/* $OpenBSD: wwdata.c,v 1.3 1997/02/25 00:04:45 downsj Exp $ */
/* $NetBSD: wwdata.c,v 1.3 1995/09/28 10:35:20 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwdata.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwdata.c,v 1.2 1996/06/26 05:43:39 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwdata.c,v 1.3 1997/02/25 00:04:45 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwdelchar.c,v 1.3 1996/06/26 05:43:39 deraadt Exp $ */
+/* $OpenBSD: wwdelchar.c,v 1.4 1997/02/25 00:04:46 downsj Exp $ */
/* $NetBSD: wwdelchar.c,v 1.4 1996/02/08 21:49:00 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwdelchar.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwdelchar.c,v 1.3 1996/06/26 05:43:39 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwdelchar.c,v 1.4 1997/02/25 00:04:46 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwdelete.c,v 1.3 1996/06/26 05:43:40 deraadt Exp $ */
+/* $OpenBSD: wwdelete.c,v 1.4 1997/02/25 00:04:47 downsj Exp $ */
/* $NetBSD: wwdelete.c,v 1.4 1996/02/08 21:49:01 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwdelete.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwdelete.c,v 1.3 1996/06/26 05:43:40 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwdelete.c,v 1.4 1997/02/25 00:04:47 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwdelline.c,v 1.2 1996/06/26 05:43:40 deraadt Exp $ */
+/* $OpenBSD: wwdelline.c,v 1.3 1997/02/25 00:04:47 downsj Exp $ */
/* $NetBSD: wwdelline.c,v 1.3 1995/09/28 10:35:24 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwdelline.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwdelline.c,v 1.2 1996/06/26 05:43:40 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwdelline.c,v 1.3 1997/02/25 00:04:47 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwdump.c,v 1.2 1996/06/26 05:43:41 deraadt Exp $ */
+/* $OpenBSD: wwdump.c,v 1.3 1997/02/25 00:04:48 downsj Exp $ */
/* $NetBSD: wwdump.c,v 1.5 1995/09/29 00:44:09 cgd Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwdump.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwdump.c,v 1.2 1996/06/26 05:43:41 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwdump.c,v 1.3 1997/02/25 00:04:48 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwend.c,v 1.2 1996/06/26 05:43:41 deraadt Exp $ */
+/* $OpenBSD: wwend.c,v 1.3 1997/02/25 00:04:49 downsj Exp $ */
/* $NetBSD: wwend.c,v 1.3 1995/09/28 10:35:26 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwend.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwend.c,v 1.2 1996/06/26 05:43:41 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwend.c,v 1.3 1997/02/25 00:04:49 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwenviron.c,v 1.3 1996/06/26 05:43:41 deraadt Exp $ */
+/* $OpenBSD: wwenviron.c,v 1.4 1997/02/25 00:04:50 downsj Exp $ */
/* $NetBSD: wwenviron.c,v 1.4 1995/12/21 08:39:50 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwenviron.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwenviron.c,v 1.3 1996/06/26 05:43:41 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwenviron.c,v 1.4 1997/02/25 00:04:50 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwerror.c,v 1.2 1996/06/26 05:43:42 deraadt Exp $ */
+/* $OpenBSD: wwerror.c,v 1.3 1997/02/25 00:04:51 downsj Exp $ */
/* $NetBSD: wwerror.c,v 1.3 1995/09/28 10:35:29 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwerror.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwerror.c,v 1.2 1996/06/26 05:43:42 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwerror.c,v 1.3 1997/02/25 00:04:51 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwflush.c,v 1.3 1996/06/26 05:43:42 deraadt Exp $ */
+/* $OpenBSD: wwflush.c,v 1.4 1997/02/25 00:04:52 downsj Exp $ */
/* $NetBSD: wwflush.c,v 1.5 1995/12/21 10:46:08 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwflush.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwflush.c,v 1.3 1996/06/26 05:43:42 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwflush.c,v 1.4 1997/02/25 00:04:52 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwframe.c,v 1.3 1996/06/26 05:43:43 deraadt Exp $ */
+/* $OpenBSD: wwframe.c,v 1.4 1997/02/25 00:04:53 downsj Exp $ */
/* $NetBSD: wwframe.c,v 1.4 1996/02/08 21:49:05 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwframe.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwframe.c,v 1.3 1996/06/26 05:43:43 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwframe.c,v 1.4 1997/02/25 00:04:53 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwgets.c,v 1.3 1996/06/26 05:43:43 deraadt Exp $ */
+/* $OpenBSD: wwgets.c,v 1.4 1997/02/25 00:04:54 downsj Exp $ */
/* $NetBSD: wwgets.c,v 1.6 1996/02/08 20:45:08 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwgets.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwgets.c,v 1.3 1996/06/26 05:43:43 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwgets.c,v 1.4 1997/02/25 00:04:54 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwinit.c,v 1.4 1996/06/26 05:43:44 deraadt Exp $ */
+/* $OpenBSD: wwinit.c,v 1.5 1997/02/25 00:04:54 downsj Exp $ */
/* $NetBSD: wwinit.c,v 1.11 1996/02/08 21:49:07 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwinit.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: wwinit.c,v 1.4 1996/06/26 05:43:44 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwinit.c,v 1.5 1997/02/25 00:04:54 downsj Exp $";
#endif
#endif /* not lint */
+#include <stdlib.h>
#include "ww.h"
#include "tt.h"
#include <sys/signal.h>
#include <fcntl.h>
+#include <term.h>
#include "char.h"
wwinit()
-/* $OpenBSD: wwinschar.c,v 1.3 1996/06/26 05:43:44 deraadt Exp $ */
+/* $OpenBSD: wwinschar.c,v 1.4 1997/02/25 00:04:55 downsj Exp $ */
/* $NetBSD: wwinschar.c,v 1.4 1996/02/08 21:49:09 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwinschar.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwinschar.c,v 1.3 1996/06/26 05:43:44 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwinschar.c,v 1.4 1997/02/25 00:04:55 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwinsline.c,v 1.2 1996/06/26 05:43:45 deraadt Exp $ */
+/* $OpenBSD: wwinsline.c,v 1.3 1997/02/25 00:04:56 downsj Exp $ */
/* $NetBSD: wwinsline.c,v 1.3 1995/09/28 10:35:36 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwinsline.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwinsline.c,v 1.2 1996/06/26 05:43:45 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwinsline.c,v 1.3 1997/02/25 00:04:56 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwiomux.c,v 1.4 1996/06/26 05:43:45 deraadt Exp $ */
+/* $OpenBSD: wwiomux.c,v 1.5 1997/02/25 00:04:57 downsj Exp $ */
/* $NetBSD: wwiomux.c,v 1.5 1996/02/08 20:45:09 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwiomux.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwiomux.c,v 1.4 1996/06/26 05:43:45 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwiomux.c,v 1.5 1997/02/25 00:04:57 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwlabel.c,v 1.3 1996/06/26 05:43:46 deraadt Exp $ */
+/* $OpenBSD: wwlabel.c,v 1.4 1997/02/25 00:04:58 downsj Exp $ */
/* $NetBSD: wwlabel.c,v 1.4 1996/02/08 21:49:11 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwlabel.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwlabel.c,v 1.3 1996/06/26 05:43:46 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwlabel.c,v 1.4 1997/02/25 00:04:58 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwmisc.c,v 1.3 1996/06/26 05:43:46 deraadt Exp $ */
+/* $OpenBSD: wwmisc.c,v 1.4 1997/02/25 00:04:59 downsj Exp $ */
/* $NetBSD: wwmisc.c,v 1.4 1996/02/08 20:45:10 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwmisc.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwmisc.c,v 1.3 1996/06/26 05:43:46 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwmisc.c,v 1.4 1997/02/25 00:04:59 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwmove.c,v 1.3 1996/06/26 05:43:47 deraadt Exp $ */
+/* $OpenBSD: wwmove.c,v 1.4 1997/02/25 00:04:59 downsj Exp $ */
/* $NetBSD: wwmove.c,v 1.4 1996/02/08 21:49:14 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwmove.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwmove.c,v 1.3 1996/06/26 05:43:47 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwmove.c,v 1.4 1997/02/25 00:04:59 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwopen.c,v 1.4 1996/06/26 05:43:47 deraadt Exp $ */
+/* $OpenBSD: wwopen.c,v 1.5 1997/02/25 00:05:00 downsj Exp $ */
/* $NetBSD: wwopen.c,v 1.6 1996/02/08 21:08:04 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwopen.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: wwopen.c,v 1.4 1996/06/26 05:43:47 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwopen.c,v 1.5 1997/02/25 00:05:00 downsj Exp $";
#endif
#endif /* not lint */
+#include <stdlib.h>
#include "ww.h"
#include <sys/types.h>
#include <sys/socket.h>
-/* $OpenBSD: wwprintf.c,v 1.2 1996/06/26 05:43:48 deraadt Exp $ */
+/* $OpenBSD: wwprintf.c,v 1.3 1997/02/25 00:05:01 downsj Exp $ */
/* $NetBSD: wwprintf.c,v 1.3 1995/09/28 10:35:44 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwprintf.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwprintf.c,v 1.2 1996/06/26 05:43:48 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwprintf.c,v 1.3 1997/02/25 00:05:01 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwpty.c,v 1.2 1996/06/26 05:43:48 deraadt Exp $ */
+/* $OpenBSD: wwpty.c,v 1.3 1997/02/25 00:05:02 downsj Exp $ */
/* $NetBSD: wwpty.c,v 1.3 1995/09/28 10:35:45 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwpty.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwpty.c,v 1.2 1996/06/26 05:43:48 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwpty.c,v 1.3 1997/02/25 00:05:02 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwputc.c,v 1.2 1996/06/26 05:43:49 deraadt Exp $ */
+/* $OpenBSD: wwputc.c,v 1.3 1997/02/25 00:05:03 downsj Exp $ */
/* $NetBSD: wwputc.c,v 1.3 1995/09/28 10:35:47 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwputc.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwputc.c,v 1.2 1996/06/26 05:43:49 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwputc.c,v 1.3 1997/02/25 00:05:03 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwputs.c,v 1.2 1996/06/26 05:43:49 deraadt Exp $ */
+/* $OpenBSD: wwputs.c,v 1.3 1997/02/25 00:05:04 downsj Exp $ */
/* $NetBSD: wwputs.c,v 1.3 1995/09/28 10:35:48 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwputs.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwputs.c,v 1.2 1996/06/26 05:43:49 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwputs.c,v 1.3 1997/02/25 00:05:04 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwredraw.c,v 1.2 1996/06/26 05:43:50 deraadt Exp $ */
+/* $OpenBSD: wwredraw.c,v 1.3 1997/02/25 00:05:04 downsj Exp $ */
/* $NetBSD: wwredraw.c,v 1.3 1995/09/28 10:35:49 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwredraw.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwredraw.c,v 1.2 1996/06/26 05:43:50 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwredraw.c,v 1.3 1997/02/25 00:05:04 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwredrawwin.c,v 1.3 1996/06/26 05:43:50 deraadt Exp $ */
+/* $OpenBSD: wwredrawwin.c,v 1.4 1997/02/25 00:05:05 downsj Exp $ */
/* $NetBSD: wwredrawwin.c,v 1.4 1996/02/08 21:49:15 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwredrawwin.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwredrawwin.c,v 1.3 1996/06/26 05:43:50 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwredrawwin.c,v 1.4 1997/02/25 00:05:05 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwrint.c,v 1.3 1996/06/26 05:43:50 deraadt Exp $ */
+/* $OpenBSD: wwrint.c,v 1.4 1997/02/25 00:05:06 downsj Exp $ */
/* $NetBSD: wwrint.c,v 1.4 1995/12/21 10:46:24 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwrint.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwrint.c,v 1.3 1996/06/26 05:43:50 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwrint.c,v 1.4 1997/02/25 00:05:06 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwscroll.c,v 1.2 1996/06/26 05:43:51 deraadt Exp $ */
+/* $OpenBSD: wwscroll.c,v 1.3 1997/02/25 00:05:07 downsj Exp $ */
/* $NetBSD: wwscroll.c,v 1.3 1995/09/28 10:35:53 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwscroll.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwscroll.c,v 1.2 1996/06/26 05:43:51 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwscroll.c,v 1.3 1997/02/25 00:05:07 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwsize.c,v 1.4 1996/06/26 05:43:51 deraadt Exp $ */
+/* $OpenBSD: wwsize.c,v 1.5 1997/02/25 00:05:08 downsj Exp $ */
/* $NetBSD: wwsize.c,v 1.5 1996/02/08 20:45:11 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwsize.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwsize.c,v 1.4 1996/06/26 05:43:51 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwsize.c,v 1.5 1997/02/25 00:05:08 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwspawn.c,v 1.4 1996/12/06 02:28:58 deraadt Exp $ */
+/* $OpenBSD: wwspawn.c,v 1.5 1997/02/25 00:05:09 downsj Exp $ */
/* $NetBSD: wwspawn.c,v 1.4 1995/12/21 08:39:57 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwspawn.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwspawn.c,v 1.4 1996/12/06 02:28:58 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwspawn.c,v 1.5 1997/02/25 00:05:09 downsj Exp $";
#endif
#endif /* not lint */
#include "ww.h"
#include <sys/signal.h>
-#include <stdio.h>
/*
* There is a dead lock with vfork and closing of pseudo-ports.
erred = 1;
_exit(1);
default:
- (void) wait(NULL);
if (erred) {
wwerrno = WWE_SYS;
ret = -1;
-/* $OpenBSD: wwsuspend.c,v 1.2 1996/06/26 05:43:52 deraadt Exp $ */
+/* $OpenBSD: wwsuspend.c,v 1.3 1997/02/25 00:05:09 downsj Exp $ */
/* $NetBSD: wwsuspend.c,v 1.3 1995/09/28 10:35:56 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwsuspend.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwsuspend.c,v 1.2 1996/06/26 05:43:52 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwsuspend.c,v 1.3 1997/02/25 00:05:09 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwterminfo.c,v 1.3 1996/12/06 02:29:00 deraadt Exp $ */
+/* $OpenBSD: wwterminfo.c,v 1.4 1997/02/25 00:05:10 downsj Exp $ */
/*
* Copyright (c) 1982, 1993
*/
#ifndef lint
+#if 0
static char sccsid[] = "@(#)wwterminfo.c 8.1 (Berkeley) 6/6/93";
+#else
+static char rcsid[] = "$OpenBSD: wwterminfo.c,v 1.4 1997/02/25 00:05:10 downsj Exp $";
+#endif
#endif /* not lint */
#ifdef TERMINFO
return -1;
case 0:
execl(_PATH_RM, _PATH_RM, "-rf", wwterminfopath, 0);
- _exit(1);
+ return -1;
default:
- (void)wait(NULL);
return 0;
}
}
-/* $OpenBSD: wwtty.c,v 1.3 1996/06/26 05:43:53 deraadt Exp $ */
+/* $OpenBSD: wwtty.c,v 1.4 1997/02/25 00:05:11 downsj Exp $ */
/* $NetBSD: wwtty.c,v 1.4 1995/12/21 11:06:50 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwtty.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwtty.c,v 1.3 1996/06/26 05:43:53 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwtty.c,v 1.4 1997/02/25 00:05:11 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwunframe.c,v 1.3 1996/06/26 05:43:54 deraadt Exp $ */
+/* $OpenBSD: wwunframe.c,v 1.4 1997/02/25 00:05:12 downsj Exp $ */
/* $NetBSD: wwunframe.c,v 1.4 1996/02/08 21:49:17 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwunframe.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwunframe.c,v 1.3 1996/06/26 05:43:54 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwunframe.c,v 1.4 1997/02/25 00:05:12 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwupdate.c,v 1.2 1996/06/26 05:43:54 deraadt Exp $ */
+/* $OpenBSD: wwupdate.c,v 1.3 1997/02/25 00:05:13 downsj Exp $ */
/* $NetBSD: wwupdate.c,v 1.3 1995/09/28 10:36:00 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwupdate.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwupdate.c,v 1.2 1996/06/26 05:43:54 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwupdate.c,v 1.3 1997/02/25 00:05:13 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: wwwrite.c,v 1.3 1996/06/26 05:43:55 deraadt Exp $ */
+/* $OpenBSD: wwwrite.c,v 1.4 1997/02/25 00:05:14 downsj Exp $ */
/* $NetBSD: wwwrite.c,v 1.5 1996/02/08 21:49:19 mycroft Exp $ */
/*
#if 0
static char sccsid[] = "@(#)wwwrite.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: wwwrite.c,v 1.3 1996/06/26 05:43:55 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: wwwrite.c,v 1.4 1997/02/25 00:05:14 downsj Exp $";
#endif
#endif /* not lint */
-/* $OpenBSD: xx.c,v 1.2 1996/06/26 05:43:55 deraadt Exp $ */
+/* $OpenBSD: xx.c,v 1.3 1997/02/25 00:05:15 downsj Exp $ */
/* $NetBSD: xx.c,v 1.3 1995/09/28 10:36:03 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)xx.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: xx.c,v 1.2 1996/06/26 05:43:55 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: xx.c,v 1.3 1997/02/25 00:05:15 downsj Exp $";
#endif
#endif /* not lint */
+#include <stdlib.h>
#include "ww.h"
#include "xx.h"
#include "tt.h"
-/* $OpenBSD: xx.h,v 1.2 1996/06/26 05:43:56 deraadt Exp $ */
+/* $OpenBSD: xx.h,v 1.3 1997/02/25 00:05:16 downsj Exp $ */
/* $NetBSD: xx.h,v 1.3 1995/09/28 10:36:04 tls Exp $ */
/*
-/* $OpenBSD: xxflush.c,v 1.2 1996/06/26 05:43:56 deraadt Exp $ */
+/* $OpenBSD: xxflush.c,v 1.3 1997/02/25 00:05:17 downsj Exp $ */
/* $NetBSD: xxflush.c,v 1.3 1995/09/28 10:36:05 tls Exp $ */
/*
#if 0
static char sccsid[] = "@(#)xxflush.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: xxflush.c,v 1.2 1996/06/26 05:43:56 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: xxflush.c,v 1.3 1997/02/25 00:05:17 downsj Exp $";
#endif
#endif /* not lint */