summaryrefslogtreecommitdiff
blob: 0ca41fd989bb336d59865eb00fd945037e93e296 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
diff -uwr glimpse-4.15.orig/agrep/agrep.c glimpse-4.15/agrep/agrep.c
--- glimpse-4.15.orig/agrep/agrep.c	2003-02-25 22:29:06.000000000 +0200
+++ glimpse-4.15/agrep/agrep.c	2003-02-25 22:27:54.000000000 +0200
@@ -11,7 +11,6 @@
 #define PRINT(s)
 
 extern char **environ;
-extern int errno;
 int pattern_index;	/* index in argv where the pattern is */
 
 int glimpse_isserver=0;	/* so that there is no user interaction */
diff -uwr glimpse-4.15.orig/agrep/checksg.c glimpse-4.15/agrep/checksg.c
--- glimpse-4.15.orig/agrep/checksg.c	2003-02-25 22:29:06.000000000 +0200
+++ glimpse-4.15/agrep/checksg.c	2003-02-25 22:27:54.000000000 +0200
@@ -1,8 +1,8 @@
 /* Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal.  All Rights Reserved. */
+#include <errno.h>
 #include "agrep.h"
 #include "checkfile.h"
 
-extern int errno;
 extern CHAR Progname[MAXNAME]; 
 extern int SGREP, PAT_FILE, PAT_BUFFER, EXITONERROR, SIMPLEPATTERN,
 	CONSTANT, D, NOUPPER, JUMP, I, LINENUM, INVERSE, WORDBOUND, WHOLELINE,
diff -uwr glimpse-4.15.orig/agrep/compat.c glimpse-4.15/agrep/compat.c
--- glimpse-4.15.orig/agrep/compat.c	2003-02-25 22:29:06.000000000 +0200
+++ glimpse-4.15/agrep/compat.c	2003-02-25 22:27:54.000000000 +0200
@@ -1,5 +1,6 @@
 /* Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal.  All Rights Reserved. */
 /* test the conflicts between options */
+#include <errno.h>
 #include <stdio.h>
 #include "agrep.h"
 
@@ -15,7 +16,6 @@
 extern char Progname[MAXNAME];
 extern int agrep_initialfd;
 extern int EXITONERROR;
-extern int errno;
 
 int
 compat()
diff -uwr glimpse-4.15.orig/agrep/maskgen.c glimpse-4.15/agrep/maskgen.c
--- glimpse-4.15.orig/agrep/maskgen.c	2003-02-25 22:29:06.000000000 +0200
+++ glimpse-4.15/agrep/maskgen.c	2003-02-25 22:27:54.000000000 +0200
@@ -1,4 +1,5 @@
 /* Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal.  All Rights Reserved. */
+#include <errno.h>
 #include "agrep.h"
 
 extern unsigned D_endpos, endposition, Init1, wildmask;
@@ -7,7 +8,6 @@
 extern unsigned char Progname[];
 extern int agrep_initialfd;
 extern int EXITONERROR;
-extern int errno;
 
 int
 maskgen(Pattern, D)
diff -uwr glimpse-4.15.orig/agrep/preprocess.c glimpse-4.15/agrep/preprocess.c
--- glimpse-4.15.orig/agrep/preprocess.c	2003-02-25 22:29:06.000000000 +0200
+++ glimpse-4.15/agrep/preprocess.c	2003-02-25 22:27:54.000000000 +0200
@@ -13,6 +13,7 @@
 /* upon return, Pattern contains the pattern to be processed by maskgen  */
 /* D_pattern contains transformed D_pattern                              */
 
+#include <errno.h>
 #include "agrep.h"
 
 extern int PAT_FILE, PAT_BUFFER;
@@ -25,7 +26,6 @@
 extern int table[WORD][WORD];
 extern int agrep_initialfd;
 extern int EXITONERROR;
-extern int errno;
 
 extern int  multifd;
 extern char *multibuf;
diff -uwr glimpse-4.15.orig/get_index.c glimpse-4.15/get_index.c
--- glimpse-4.15.orig/get_index.c	2003-02-25 22:29:06.000000000 +0200
+++ glimpse-4.15/get_index.c	2003-02-25 22:27:54.000000000 +0200
@@ -1,4 +1,5 @@
 /* Copyright (c) 1994 Burra Gopal, Udi Manber.  All Rights Reserved. */
+#include <errno.h>
 #include "glimpse.h"
 #include "defs.h"
 
@@ -14,7 +15,6 @@
 extern	unsigned int *dest_index_set;
 extern	unsigned char *dest_index_buf;
 extern	int	mask_int[32];
-extern	int	errno;
 extern	int	ByteLevelIndex;
 extern  int	RecordLevelIndex;
 extern  int	rdelim_len;
diff -uwr glimpse-4.15.orig/index/build_in.c glimpse-4.15/index/build_in.c
--- glimpse-4.15.orig/index/build_in.c	2003-02-25 22:29:06.000000000 +0200
+++ glimpse-4.15/index/build_in.c	2003-02-25 22:27:54.000000000 +0200
@@ -23,6 +23,7 @@
            this 12 19 \n is 9 17 12 18 19 \n an 7 12 \n example 16 \n
 -----------------------------------------------------------------------*/
 
+#include <errno.h>
 #include "glimpse.h"
 
 #define debugt
@@ -604,7 +605,6 @@
     int ret;
     char s[MAX_LINE_LEN], es1[MAX_LINE_LEN], es2[MAX_LINE_LEN], es3[MAX_LINE_LEN];
     char s1[MAX_LINE_LEN];
-    extern int errno;
     static int maxsortlinelen = 0;
     int	i;
 
diff -uwr glimpse-4.15.orig/index/partition.c glimpse-4.15/index/partition.c
--- glimpse-4.15.orig/index/partition.c	2003-02-25 22:29:06.000000000 +0200
+++ glimpse-4.15/index/partition.c	2003-02-25 22:27:54.000000000 +0200
@@ -1,6 +1,7 @@
 /* Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal.  All Rights Reserved. */
 /* ./glimpse/index/partition.c */
 #include "glimpse.h"
+#include <errno.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 
@@ -27,7 +28,6 @@
 int  files_per_partition;
 int  files_in_partition;
 int  ATLEASTONEFILE = 0;
-extern int errno;
 
 char patbuf[MAX_PAT];
 extern unsigned char *src_index_buf;