diff options
author | Paul Eggert <eggert@twinsun.com> | 1999-11-22 08:19:51 +0000 |
---|---|---|
committer | Paul Eggert <eggert@twinsun.com> | 1999-11-22 08:19:51 +0000 |
commit | ca9c056758a507f1508933de24d2410188b978fb (patch) | |
tree | 6da0a2b930d59b0c44dbd8f6d29faf8564589319 /src/process.c | |
parent | b718982a2a661a3bf4bb226ff164925c3d0f9ed3 (diff) | |
download | emacs-ca9c056758a507f1508933de24d2410188b978fb.tar.gz emacs-ca9c056758a507f1508933de24d2410188b978fb.tar.bz2 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.c | 49 |
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; extern void set_waiting_for_input P_ ((EMACS_TIME *)); extern int errno; -extern char *strerror (); #ifdef VMS extern char *sys_errlist[]; #endif @@ -155,50 +154,6 @@ extern char *sys_errlist[]; extern int h_errno; #endif -#ifndef HAVE_STRSIGNAL -#ifndef SYS_SIGLIST_DECLARED -#ifndef VMS -#ifndef BSD4_1 -#ifndef WINDOWSNT -#ifndef LINUX -extern char *sys_siglist[]; -#endif /* not LINUX */ -#else /* BSD4_1 */ -char *sys_siglist[] = - { - "bum signal!!", - "hangup", - "interrupt", - "quit", - "illegal instruction", - "trace trap", - "iot instruction", - "emt instruction", - "floating point exception", - "kill", - "bus error", - "segmentation violation", - "bad argument to system call", - "write on a pipe with no one to read it", - "alarm clock", - "software termination signal from kill", - "status signal", - "sendable stop signal not from tty", - "stop signal from tty", - "continue a stopped process", - "child status has changed", - "background read attempted from control tty", - "background write attempted from control tty", - "input record available at control tty", - "exceeded CPU time limit", - "exceeded file size limit" - }; -#endif /* not WINDOWSNT */ -#endif -#endif /* VMS */ -#endif /* ! SYS_SIGLIST_DECLARED */ -#endif /* ! HAVE_STRSIGNAL */ - /* t means use pty, nil means use a pipe, maybe other values to come. */ static Lisp_Object Vprocess_connection_type; @@ -360,7 +315,7 @@ status_message (status) if (EQ (symbol, Qsignal) || EQ (symbol, Qstop)) { char *signame; - synchronize_messages_locale (); + synchronize_system_messages_locale (); signame = strsignal (code); if (signame == 0) signame = "unknown"; @@ -4254,7 +4209,7 @@ sigchld_handler (signo) int code = WTERMSIG (w); char *signame; - synchronize_messages_locale (); + synchronize_system_messages_locale (); signame = strsignal (code); if (signame == 0) |