summaryrefslogtreecommitdiff
path: root/sysutils/contool/files
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/contool/files')
-rw-r--r--sysutils/contool/files/patch-0120
-rw-r--r--sysutils/contool/files/patch-0228
-rw-r--r--sysutils/contool/files/patch-0320
-rw-r--r--sysutils/contool/files/patch-0410
-rw-r--r--sysutils/contool/files/patch-0535
-rw-r--r--sysutils/contool/files/patch-06122
6 files changed, 0 insertions, 235 deletions
diff --git a/sysutils/contool/files/patch-01 b/sysutils/contool/files/patch-01
deleted file mode 100644
index a9aaf33a4873..000000000000
--- a/sysutils/contool/files/patch-01
+++ /dev/null
@@ -1,20 +0,0 @@
---- Imakefile.orig Thu Feb 24 09:55:24 1994
-+++ Imakefile Sun Jan 5 13:58:56 1997
-@@ -1,14 +1,14 @@
- # Mailer you use. Solaris 2.x users, change this to /usr/bin/mailx
--MAILER = /usr/ucb/mail
-+MAILER = /usr/bin/mail
-
- # Where you installed Open Windows
--OPENWINHOME = /usr/openwin
-+OPENWINHOME = ${PREFIX}
-
- # Paths to be searched for icons
- ICON_PATH = .:./icons:/usr/local/images:$(OPENWINHOME)/include/images:$(INCDIR)/bitmaps
-
- # Where to install the help file
--HELPDIR = /usr/local/lib/help
-+HELPDIR = $(OPENWINHOME)/lib/help
-
- # Where your XView libraries are installed. If running under
- # SunOS 4.x, use the first version. If using Solaris 2.x with
diff --git a/sysutils/contool/files/patch-02 b/sysutils/contool/files/patch-02
deleted file mode 100644
index 284753d0a871..000000000000
--- a/sysutils/contool/files/patch-02
+++ /dev/null
@@ -1,28 +0,0 @@
---- contool.c.orig Thu Feb 24 09:55:30 1994
-+++ contool.c Sun Jan 5 13:48:41 1997
-@@ -284,6 +284,9 @@
- EXPORT acquire_console()
-
- { int console;
-+#if (defined(BSD) && (BSD >= 199306))
-+ int i;
-+#endif
-
- #ifdef SVR4
- if (slave > 0) {
-@@ -293,8 +296,15 @@
- abend("%s: could not attach to /dev/console: %s", program, sys_errlist[errno]);
- }
- #else
-+#if (defined(BSD) && (BSD >= 199306))
-+ i=1;
-+#endif
- if (slave > 0)
-+#if (defined(BSD) && (BSD >= 199306))
-+ if (ioctl(slave, TIOCCONS, &i) == -1)
-+#else
- if (ioctl(slave, TIOCCONS, NULL) == -1)
-+#endif
- abend("%s: could not attach to /dev/console: %s", program, sys_errlist[errno]);
- #endif
- }
diff --git a/sysutils/contool/files/patch-03 b/sysutils/contool/files/patch-03
deleted file mode 100644
index 17bfd8e025d1..000000000000
--- a/sysutils/contool/files/patch-03
+++ /dev/null
@@ -1,20 +0,0 @@
---- manifest.h.orig Thu Feb 24 09:55:52 1994
-+++ manifest.h Sun Jan 5 13:52:40 1997
-@@ -23,6 +23,9 @@
- /* */
- /************************************************************************/
-
-+/* for BSD definition */
-+#include <sys/param.h>
-+
- #define TRUE 1
- #define FALSE 0
-
-@@ -38,5 +41,7 @@
- #define cond_free(x) {if (x) free(x);}
-
- PUBLIC int errno;
-+#if !(defined(BSD) && (BSD >= 199103))
- PUBLIC char *sys_errlist[];
-+#endif
-
diff --git a/sysutils/contool/files/patch-04 b/sysutils/contool/files/patch-04
deleted file mode 100644
index ad578fc716d5..000000000000
--- a/sysutils/contool/files/patch-04
+++ /dev/null
@@ -1,10 +0,0 @@
---- expand.c.orig Thu Feb 24 09:55:35 1994
-+++ expand.c Sun Jan 5 12:25:09 1997
-@@ -17,6 +17,7 @@
- /* without prior permission from Harris Corporation. */
- /************************************************************************/
-
-+#include <sys/types.h>
- #include <dirent.h>
- #include <pwd.h>
- #include <stdlib.h>
diff --git a/sysutils/contool/files/patch-05 b/sysutils/contool/files/patch-05
deleted file mode 100644
index 8fb073db8cd0..000000000000
--- a/sysutils/contool/files/patch-05
+++ /dev/null
@@ -1,35 +0,0 @@
---- filters.c.orig Thu Feb 24 09:55:37 1994
-+++ filters.c Sun Jan 5 13:51:25 1997
-@@ -25,12 +25,17 @@
-
- #include <stdio.h>
- #include <string.h>
-+#include <sys/param.h>
-
- #include <xview/xview.h>
- #include <xview/panel.h>
- #include <xview/notice.h>
- #include <xview/xv_xrect.h>
-
-+#if (defined(BSD) && (BSD >= 199306))
-+#include <regex.h>
-+#endif
-+
- #include "manifest.h"
- #include "contool.h"
- #include "contool_ui.h"
-@@ -122,8 +127,14 @@
-
- {
- cond_free(f->start);
-+#if (defined(BSD) && (BSD >= 199306))
-+ regfree(f->start_re);
-+#endif
- cond_free(f->start_re);
- cond_free(f->stop);
-+#if (defined(BSD) && (BSD >= 199306))
-+ regfree(f->stop_re);
-+#endif
- cond_free(f->stop_re);
- cond_free(f->command);
- cond_free(f->comment);
diff --git a/sysutils/contool/files/patch-06 b/sysutils/contool/files/patch-06
deleted file mode 100644
index 262f63b473da..000000000000
--- a/sysutils/contool/files/patch-06
+++ /dev/null
@@ -1,122 +0,0 @@
---- regexp.c.orig Thu Feb 24 09:55:47 1994
-+++ regexp.c Sun Jan 5 12:25:10 1997
-@@ -17,22 +17,14 @@
- /* without prior permission from Harris Corporation. */
- /************************************************************************/
-
-+#include <sys/types.h>
- #include <stdio.h>
- #include <string.h>
-
- #include "manifest.h"
- #include "contool.h"
-
--PRIVATE regexp_error();
--
--#define INIT register char *expbuf = ep, *sp = instring;
--#define GETC() (*sp++)
--#define PEEKC() (*sp)
--#define UNGETC(c) (--sp)
--#define RETURN(p) {memcpy(sp = (char *) malloc(p - expbuf), expbuf, p - expbuf); return(sp);}
--#define ERROR(val) {regexp_error(val, instring); return(NULL);}
--
--#include <regexp.h>
-+#include <regex.h>
-
- PRIVATE char error_message[512];
-
-@@ -49,37 +41,10 @@
- p = str + strlen(str) - 1;
- if (p >= str && *p == '\n')
- *p = '\0';
-- circf = circ;
-- result = step(str, exp);
-+ result = regexec((regex_t*)exp, str, 0, NULL, 0);
- if (p >= str && *p == '\0')
- *p = '\n';
-- return(result);
--}
--
--/************************************************************************/
--PRIVATE regexp_error(val, string)
--
--int val;
--char *string;
--
--{ char *msg;
--
-- switch (val) {
-- case 11 : msg = "range endpoint too large";
-- case 16 : msg = "bad number";
-- case 25 : msg = "\"\\digit\" out of range";
-- case 36 : msg = "illegal or missing delimiter";
-- case 41 : msg = "no remembered search string";
-- case 42 : msg = "\\(\\) imbalance";
-- case 43 : msg = "too many \\(";
-- case 44 : msg = "more than 2 numbers given in \\{\\}";
-- case 45 : msg = "} expected after \\";
-- case 46 : msg = "first number exceeds second in \\{\\}";
-- case 49 : msg = "[] imbalance";
-- case 50 : msg = "regular expression overflow";
-- default : msg = "regular expression error";
-- }
-- sprintf(error_message, "%s in %s", msg, string);
-+ return(!result);
- }
-
- /************************************************************************/
-@@ -109,34 +74,40 @@
- char *start;
- char *stop;
-
--{ char rbuf[1024], *sre, *ere;
-- int sc, ec;
-+{
-
-- sre = ere = NULL;
-+ int errcod;
-+ regex_t *sre, *ere;
-+
-+ sre = (regex_t*) malloc(sizeof(regex_t));
-+ ere = (regex_t*) malloc(sizeof(regex_t));
- if (start) {
-- if ((sre = compile(fix_control_chars(start), rbuf, rbuf+1024, '\0')) == NULL)
-+ if (errcod = regcomp(sre, fix_control_chars(start), REG_NOSUB)) {
-+ regerror(errcod, sre, error_message, 512);
-+ strcat(error_message, " in ");
-+ strcat(error_message,fix_control_chars(start));
- return(error_message);
-- sc = circf;
-+ }
- }
- if (stop) {
-- if ((ere = compile(fix_control_chars(stop), rbuf, rbuf+1024, '\0')) == NULL) {
-- cond_free(sre);
-+ if (errcod = regcomp(ere, fix_control_chars(stop), REG_NOSUB)) {
-+ regerror(errcod, ere, error_message, 512);
-+ strcat(error_message," in ");
-+ strcat(error_message,fix_control_chars(stop));
- return(error_message);
- }
-- ec = circf;
- }
- if (filter) {
- filter->start = start;
- filter->stop = stop;
-- filter->start_re = sre;
-- filter->stop_re = ere;
-- filter->start_circf = sc;
-- filter->stop_circf = ec;
-+ filter->start_re = (char *) sre;
-+ filter->stop_re = (char *) ere;
- }
- else {
-+ regfree(sre);
-+ regfree(ere);
- cond_free(sre);
-- if (ere)
-- cond_free(ere);
-+ cond_free(ere);
- }
- return(NULL);
- }