aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorPaul Eggert1999-11-22 08:19:51 +0000
committerPaul Eggert1999-11-22 08:19:51 +0000
commitca9c056758a507f1508933de24d2410188b978fb (patch)
tree6da0a2b930d59b0c44dbd8f6d29faf8564589319 /src/process.c
parentb718982a2a661a3bf4bb226ff164925c3d0f9ed3 (diff)
downloademacs-ca9c056758a507f1508933de24d2410188b978fb.tar.gz
emacs-ca9c056758a507f1508933de24d2410188b978fb.zip
* 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.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c49
1 files changed, 2 insertions, 47 deletions
diff --git a/src/process.c b/src/process.c
index 463dc44be2f..9fa3c19df2d 100644
--- a/src/process.c
+++ b/src/process.c
@@ -146,7 +146,6 @@ Lisp_Object Qlast_nonmenu_event;
146extern void set_waiting_for_input P_ ((EMACS_TIME *)); 146extern void set_waiting_for_input P_ ((EMACS_TIME *));
147 147
148extern int errno; 148extern int errno;
149extern char *strerror ();
150#ifdef VMS 149#ifdef VMS
151extern char *sys_errlist[]; 150extern char *sys_errlist[];
152#endif 151#endif
@@ -155,50 +154,6 @@ extern char *sys_errlist[];
155extern int h_errno; 154extern int h_errno;
156#endif 155#endif
157 156
158#ifndef HAVE_STRSIGNAL
159#ifndef SYS_SIGLIST_DECLARED
160#ifndef VMS
161#ifndef BSD4_1
162#ifndef WINDOWSNT
163#ifndef LINUX
164extern char *sys_siglist[];
165#endif /* not LINUX */
166#else /* BSD4_1 */
167char *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
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. */
204static Lisp_Object Vprocess_connection_type; 159static Lisp_Object Vprocess_connection_type;
@@ -360,7 +315,7 @@ status_message (status)
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";
@@ -4254,7 +4209,7 @@ sigchld_handler (signo)
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)