📄 bash30-050-signames
字号:
--- /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,202 @@+/* 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 $@--- bash-3.0.orig/support/mksignames.c 2003-03-24 15:11:38.000000000 -0700+++ bash-3.0/support/mksignames.c 2005-06-20 00:31:57.000000000 -0600@@ -1,432 +0,0 @@-/* signames.c -- Create and write `signames.h', which contains an array of- signal names. */--/* Copyright (C) 1992-2003 Free Software Foundation, Inc.-- This file is part of GNU Bash, the Bourne Again SHell.-- Bash is free software; you can redistribute it and/or modify it under- the terms of the GNU General Public License as published by the Free- Software Foundation; either version 2, or (at your option) any later- version.-- Bash is distributed in the hope that it will be useful, but WITHOUT ANY- WARRANTY; without even the implied warranty of MERCHANTABILITY or- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License- for more details.-- You should have received a copy of the GNU General Public License along- with Bash; see the file COPYING. If not, write to the Free Software- Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */--#include <config.h>--#include <stdio.h>-#include <sys/types.h>-#include <signal.h>-#if defined (HAVE_STDLIB_H)-# include <stdlib.h>-#else-# include "ansi_stdlib.h"-#endif /* HAVE_STDLIB_H */--#if !defined (NSIG)-# define NSIG 64-#endif--/*- * Special traps:- * EXIT == 0- * DEBUG == NSIG- * ERR == NSIG+1- * RETURN == NSIG+2- */-#define LASTSIG NSIG+2--char *signal_names[2 * (LASTSIG)];--#define signal_names_size (sizeof(signal_names)/sizeof(signal_names[0]))--char *progname;--/* AIX 4.3 defines SIGRTMIN and SIGRTMAX as 888 and 999 respectively.- I don't want to allocate so much unused space for the intervening signal- numbers, so we just punt if SIGRTMAX is past the bounds of the- signal_names array (handled in configure). */-#if defined (SIGRTMAX) && defined (UNUSABLE_RT_SIGNALS)-# undef SIGRTMAX-# undef SIGRTMIN-#endif--#if defined (SIGRTMAX) || defined (SIGRTMIN)-# define RTLEN 14-# define RTLIM 256-#endif--void-initialize_signames ()-{- register int i;-#if defined (SIGRTMAX) || defined (SIGRTMIN)- int rtmin, rtmax, rtcnt;-#endif-- for (i = 1; i < signal_names_size; i++)- signal_names[i] = (char *)NULL;-- /* `signal' 0 is what we do on exit. */- signal_names[0] = "EXIT";-- /* Place signal names which can be aliases for more common signal- names first. This allows (for example) SIGABRT to overwrite SIGLOST. */-- /* POSIX 1003.1b-1993 real time signals, but take care of incomplete- implementations. Acoording to the standard, both, SIGRTMIN and- SIGRTMAX must be defined, SIGRTMIN must be stricly less than- SIGRTMAX, and the difference must be at least 7, that is, there- must be at least eight distinct real time signals. */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -