Mercurial > emacs
comparison src/process.c @ 26526:b7438760079b
* callproc.c (strerror): Remove decl.
* fileio.c (strerror): Likewise.
* process.c (strerror): Likewise.
* emacs.c (strerror): Likewise.
(Vsystem_messages_locale): Renamed from Vmessages_locale.
All uses changed.
(Vprevious_system_messages_locale): Likewise, from
Vprevious_messages_locale.
(Vsystem_time_locale): Likewise, from Vtime_locale.
(Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
(ABORT_RETURN_TYPE): New macro.
(abort): Return type is now ABORT_RETURN_TYPE.
(main): Always invoke init_signals, even if POSIX_SIGNALS is not
defined.
(syms_of_emacs): messages-locale -> system-messages-locale,
previous-messages-locale -> previous-system-messages-locale,
time-locale -> system-time-locale,
previous-time-locale -> previous-system-time-locale.
* gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
(const): Do not define; that's config.h's job.
(<limits.h>): Include if HAVE_LIMITS_H is defined.
(CHAR_BIT): Move test for definedness outside of limits.h condition.
(<stddef.h>): Include if STDC_HEADERS is defined.
(FREE_RETURN_TYPE): New macro.
(free): Return type is now FREE_RETURN_TYPE.
* lisp.h (synchronize_system_time_locale): Renamed from
synchronize_time_locale. All uses changed.
(synchronize_system_messages_locale): Likewise, from
synchronize_messages_locale.
* process.c (sys_siglist): Remove.
* syntax.c (scan_sexps_forward): Use abort, not assert.
* sysdep.c (my_sys_siglist): New var.
(sys_siglist): New macro. Remove old initialized vars of same name.
(init_signals): Initialize sys_siglist.
* xfns.c (abort): Remove decl; stdlib.h now does this.
author | Paul Eggert <eggert@twinsun.com> |
---|---|
date | Mon, 22 Nov 1999 08:19:51 +0000 |
parents | 9275b6adbad2 |
children | edeeffd7d8c7 |
comparison
equal
deleted
inserted
replaced
26525:4df5920724de | 26526:b7438760079b |
---|---|
144 #include "syswait.h" | 144 #include "syswait.h" |
145 | 145 |
146 extern void set_waiting_for_input P_ ((EMACS_TIME *)); | 146 extern void set_waiting_for_input P_ ((EMACS_TIME *)); |
147 | 147 |
148 extern int errno; | 148 extern int errno; |
149 extern char *strerror (); | |
150 #ifdef VMS | 149 #ifdef VMS |
151 extern char *sys_errlist[]; | 150 extern char *sys_errlist[]; |
152 #endif | 151 #endif |
153 | 152 |
154 #ifndef HAVE_H_ERRNO | 153 #ifndef HAVE_H_ERRNO |
155 extern int h_errno; | 154 extern int h_errno; |
156 #endif | 155 #endif |
157 | |
158 #ifndef HAVE_STRSIGNAL | |
159 #ifndef SYS_SIGLIST_DECLARED | |
160 #ifndef VMS | |
161 #ifndef BSD4_1 | |
162 #ifndef WINDOWSNT | |
163 #ifndef LINUX | |
164 extern char *sys_siglist[]; | |
165 #endif /* not LINUX */ | |
166 #else /* BSD4_1 */ | |
167 char *sys_siglist[] = | |
168 { | |
169 "bum signal!!", | |
170 "hangup", | |
171 "interrupt", | |
172 "quit", | |
173 "illegal instruction", | |
174 "trace trap", | |
175 "iot instruction", | |
176 "emt instruction", | |
177 "floating point exception", | |
178 "kill", | |
179 "bus error", | |
180 "segmentation violation", | |
181 "bad argument to system call", | |
182 "write on a pipe with no one to read it", | |
183 "alarm clock", | |
184 "software termination signal from kill", | |
185 "status signal", | |
186 "sendable stop signal not from tty", | |
187 "stop signal from tty", | |
188 "continue a stopped process", | |
189 "child status has changed", | |
190 "background read attempted from control tty", | |
191 "background write attempted from control tty", | |
192 "input record available at control tty", | |
193 "exceeded CPU time limit", | |
194 "exceeded file size limit" | |
195 }; | |
196 #endif /* not WINDOWSNT */ | |
197 #endif | |
198 #endif /* VMS */ | |
199 #endif /* ! SYS_SIGLIST_DECLARED */ | |
200 #endif /* ! HAVE_STRSIGNAL */ | |
201 | 156 |
202 /* t means use pty, nil means use a pipe, | 157 /* t means use pty, nil means use a pipe, |
203 maybe other values to come. */ | 158 maybe other values to come. */ |
204 static Lisp_Object Vprocess_connection_type; | 159 static Lisp_Object Vprocess_connection_type; |
205 | 160 |
358 decode_status (status, &symbol, &code, &coredump); | 313 decode_status (status, &symbol, &code, &coredump); |
359 | 314 |
360 if (EQ (symbol, Qsignal) || EQ (symbol, Qstop)) | 315 if (EQ (symbol, Qsignal) || EQ (symbol, Qstop)) |
361 { | 316 { |
362 char *signame; | 317 char *signame; |
363 synchronize_messages_locale (); | 318 synchronize_system_messages_locale (); |
364 signame = strsignal (code); | 319 signame = strsignal (code); |
365 if (signame == 0) | 320 if (signame == 0) |
366 signame = "unknown"; | 321 signame = "unknown"; |
367 string = build_string (signame); | 322 string = build_string (signame); |
368 string2 = build_string (coredump ? " (core dumped)\n" : "\n"); | 323 string2 = build_string (coredump ? " (core dumped)\n" : "\n"); |
4252 else if (WIFSIGNALED (w)) | 4207 else if (WIFSIGNALED (w)) |
4253 { | 4208 { |
4254 int code = WTERMSIG (w); | 4209 int code = WTERMSIG (w); |
4255 char *signame; | 4210 char *signame; |
4256 | 4211 |
4257 synchronize_messages_locale (); | 4212 synchronize_system_messages_locale (); |
4258 signame = strsignal (code); | 4213 signame = strsignal (code); |
4259 | 4214 |
4260 if (signame == 0) | 4215 if (signame == 0) |
4261 signame = "unknown"; | 4216 signame = "unknown"; |
4262 | 4217 |