Changeset 630 in kBuild for trunk/src/ash/bltin
- Timestamp:
- Nov 26, 2006 12:24:22 PM (18 years ago)
- Location:
- trunk/src/ash/bltin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ash/bltin/kill.c
r626 r630 56 56 #include <sys/ioctl.h> 57 57 58 #ifndef HAVE_SYS_SIGNAME 59 extern void init_sys_signame(void); 60 extern char sys_signame[NSIG][16]; 61 #endif 62 58 63 #ifdef SHELL /* sh (aka ash) builtin */ 59 64 #define main killcmd … … 98 103 if (numsig <= 0 || numsig >= NSIG) 99 104 nosig(*argv); 105 #ifndef HAVE_SYS_SIGNAME 106 init_sys_signame(); 107 #endif 100 108 printf("%s\n", sys_signame[numsig]); 101 109 exit(0); … … 179 187 { 180 188 int n; 181 189 #ifndef HAVE_SYS_SIGNAME 190 init_sys_signame(); 191 #endif 182 192 if (strncasecmp(sig, "sig", 3) == 0) 183 193 sig += 3; … … 216 226 #warning TIOCGWINSZ is not present. 217 227 #endif 228 #ifndef HAVE_SYS_SIGNAME 229 init_sys_signame(); 230 #endif 218 231 219 232 for (len = 0, sig = 1; sig < NSIG; sig++) { -
trunk/src/ash/bltin/test.c
r626 r630 190 190 int res; 191 191 192 #ifdef HAVE_SETPROGNAME 192 193 setprogname(argv[0]); 194 #endif 193 195 if (strcmp(argv[0], "[") == 0) { 194 196 if (strcmp(argv[--argc], "]"))
Note:
See TracChangeset
for help on using the changeset viewer.