Changeset 809 in kBuild for trunk/src/ash/trap.c
- Timestamp:
- Jan 29, 2007 5:54:36 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ash/trap.c
r630 r809 33 33 */ 34 34 35 #ifdef HAVE_SYS_CDEFS_H 35 36 #include <sys/cdefs.h> 37 #endif 36 38 #ifndef lint 37 39 #if 0 … … 64 66 extern void init_sys_signame(void); 65 67 extern char sys_signame[NSIG][16]; 66 #endif 68 #endif 67 69 68 70 /* … … 84 86 int pendingsigs; /* indicates some signal received */ 85 87 88 #ifdef __sun__ 89 typedef void (*sig_t) (int); 90 #endif 86 91 static int getsigaction(int, sig_t *); 87 92 … … 101 106 if (strcasecmp(p, "exit") == 0 ) 102 107 return 0; 103 108 104 109 if (strncasecmp(p, "sig", 3) == 0) 105 110 p += 3; … … 107 112 #ifndef HAVE_SYS_SIGNAME 108 113 init_sys_signame(); 109 #endif 114 #endif 110 115 for (i = 0; i < NSIG; ++i) 111 116 if (strcasecmp (p, sys_signame[i]) == 0) … … 125 130 #ifndef HAVE_SYS_SIGNAME 126 131 init_sys_signame(); 127 #endif 132 #endif 128 133 129 134 for (n = 1; n < NSIG; n++) { … … 148 153 #ifndef HAVE_SYS_SIGNAME 149 154 init_sys_signame(); 150 #endif 155 #endif 151 156 152 157 if (argc <= 1) {
Note:
See TracChangeset
for help on using the changeset viewer.