summaryrefslogtreecommitdiff
path: root/package/bash/bash30-050-signames
blob: d830bf799f7a45c5e4a97e559220125cbccc7852 (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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
--- /dev/null	2005-06-20 00:31:57.000000000 -0600
+++ bash-3.0/signames.h	2005-08-02 16:57:21.000000000 -0600
@@ -0,0 +1,205 @@
+/* This file was automatically created by ./mksignames.
+   Do not edit.  Edit support/mksignames.c instead. */
+
+/* A translation list so we can be polite to our users. */
+char *signal_names[NSIG + 4] = {
+    "EXIT",
+#ifdef SIGHUP
+    [SIGHUP]    "SIGHUP",
+#endif
+#ifdef SIGINT
+    [SIGINT]    "SIGINT",
+#endif
+#ifdef SIGQUIT
+    [SIGQUIT]    "SIGQUIT",
+#endif
+#ifdef SIGILL
+    [SIGILL]    "SIGILL",
+#endif
+#ifdef SIGTRAP
+    [SIGTRAP]    "SIGTRAP",
+#endif
+#ifdef SIGABRT
+    [SIGABRT]    "SIGABRT",
+#endif
+#ifdef SIGBUS
+    [SIGBUS]    "SIGBUS",
+#endif
+#ifdef SIGFPE
+    [SIGFPE]    "SIGFPE",
+#endif
+#ifdef SIGKILL
+    [SIGKILL]    "SIGKILL",
+#endif
+#ifdef SIGUSR1
+    [SIGUSR1]    "SIGUSR1",
+#endif
+#ifdef SIGSEGV
+    [SIGSEGV]    "SIGSEGV",
+#endif
+#ifdef SIGUSR2
+    [SIGUSR2]    "SIGUSR2",
+#endif
+#ifdef SIGPIPE
+    [SIGPIPE]    "SIGPIPE",
+#endif
+#ifdef SIGALRM
+    [SIGALRM]    "SIGALRM",
+#endif
+#ifdef SIGTERM
+    [SIGTERM]    "SIGTERM",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(16)",
+#endif
+#ifdef SIGCHLD
+    [SIGCHLD]    "SIGCHLD",
+#endif
+#ifdef SIGCONT
+    [SIGCONT]    "SIGCONT",
+#endif
+#ifdef SIGSTOP
+    [SIGSTOP]    "SIGSTOP",
+#endif
+#ifdef SIGTSTP
+    [SIGTSTP]    "SIGTSTP",
+#endif
+#ifdef SIGTTIN
+    [SIGTTIN]    "SIGTTIN",
+#endif
+#ifdef SIGTTOU
+    [SIGTTOU]    "SIGTTOU",
+#endif
+#ifdef SIGURG
+    [SIGURG]    "SIGURG",
+#endif
+#ifdef SIGXCPU
+    [SIGXCPU]    "SIGXCPU",
+#endif
+#ifdef SIGXFSZ
+    [SIGXFSZ]    "SIGXFSZ",
+#endif
+#ifdef SIGVTALRM
+    [SIGVTALRM]    "SIGVTALRM",
+#endif
+#ifdef SIGPROF
+    [SIGPROF]    "SIGPROF",
+#endif
+#ifdef SIGWINCH
+    [SIGWINCH]    "SIGWINCH",
+#endif
+#ifdef SIGIO
+    [SIGIO]    "SIGIO",
+#endif
+#ifdef SIGPWR
+    [SIGPWR]    "SIGPWR",
+#endif
+#ifdef SIGSYS
+    [SIGSYS]    "SIGSYS",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(32)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(33)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(34)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(35)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(36)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(37)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(38)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(39)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(40)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(41)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(42)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(43)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(44)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(45)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(46)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(47)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(48)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(49)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(50)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(51)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(52)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(53)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(54)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(55)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(56)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(57)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(58)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(59)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(60)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(61)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(62)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(63)",
+#endif
+#ifdef SIGJUNK
+    [SIGJUNK]    "SIGJUNK(64)",
+#endif
+  [NSIG]	"DEBUG",
+
+  [NSIG + 1]	"ERR",
+
+  [NSIG + 2]	(char *)0x0
+};
+
--- bash-3.0.orig/Makefile.in	2004-03-17 06:34:39.000000000 -0700
+++ bash-3.0/Makefile.in	2005-08-02 16:44:29.000000000 -0600
@@ -410,9 +410,6 @@
 
 SOURCES	 = $(CSOURCES) $(HSOURCES) $(BUILTIN_DEFS)
 
-# header files chosen based on running of configure
-SIGNAMES_H = @SIGNAMES_H@
-
 # object files chosen based on running of configure
 JOBS_O = @JOBS_O@
 SIGLIST_O = @SIGLIST_O@
@@ -483,15 +480,12 @@
 PO_SRC = $(srcdir)/po/
 PO_DIR = $(dot)/po/
 
-SIGNAMES_SUPPORT = $(SUPPORT_SRC)mksignames.c
-
 SUPPORT_SRC = $(srcdir)/support/
 SDIR = $(dot)/support/
 
 TESTS_SUPPORT = recho$(EXEEXT) zecho$(EXEEXT) printenv$(EXEEXT)
 CREATED_SUPPORT = signames.h recho$(EXEEXT) zecho$(EXEEXT) printenv$(EXEEXT) \
-		  tests/recho$(EXEEXT) tests/zecho$(EXEEXT) \
-		  tests/printenv$(EXEEXT) mksignames$(EXEEXT) lsignames.h \
+		  tests/recho$(EXEEXT) tests/zecho$(EXEEXT) tests/printenv$(EXEEXT) \
 		  mksyntax${EXEEXT} syntax.c $(VERSPROG) $(VERSOBJ) \
 		  buildversion.o
 CREATED_CONFIGURE = config.h config.cache config.status config.log \
@@ -607,22 +601,9 @@
 
 ${LIBINTL_H}:	${INTL_LIBRARY}
 
-mksignames$(EXEEXT):	$(SUPPORT_SRC)mksignames.c
-	$(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) -o $@ $(SUPPORT_SRC)mksignames.c
-
 mksyntax$(EXEEXT):	${srcdir}/mksyntax.c config.h syntax.h ${BASHINCDIR}/chartypes.h
 	${CC_FOR_BUILD} ${CCFLAGS_FOR_BUILD} -o $@ ${srcdir}/mksyntax.c
 
-# make a list of signals for the local system -- this is done when we're
-# *not* cross-compiling
-lsignames.h:   mksignames$(EXEEXT)
-	$(RM) $@
-	./mksignames $@
-
-# copy the correct signames header file to signames.h
-signames.h: $(SIGNAMES_H)
-	-if cmp -s $(SIGNAMES_H) $@ ; then :; else $(RM) $@ ; $(CP) $(SIGNAMES_H) $@ ; fi
-
 syntax.c:	mksyntax${EXEEXT} $(srcdir)/syntax.h 
 	$(RM) $@
 	./mksyntax -o $@