Changeset 630 in kBuild for trunk/src/ash
- Timestamp:
- Nov 26, 2006 12:24:22 PM (18 years ago)
- Location:
- trunk/src/ash
- Files:
-
- 1 added
- 4 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ash/Makefile.kmk
r629 r630 15 15 kmk_ash_TEMPLATE = BIN 16 16 kmk_ash_DEFS = lint SHELL SMALL 17 kmk_ash_DEFS.win = PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS 18 kmk_ash_DEFS.os2 = EXEC_HASH_BANG_SCRIPT PC_OS2_LIBPATHS PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS 17 kmk_ash_DEFS.linux = BSD 18 kmk_ash_DEFS.win = \ 19 PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS 20 kmk_ash_DEFS.os2 = \ 21 HAVE_SYS_SIGNAME HAVE_SYSCTL_H HAVE_SETPROGNAME \ 22 EXEC_HASH_BANG_SCRIPT PC_OS2_LIBPATHS PC_PATH_SEP PC_DRIVE_LETTERS PC_EXE_EXTS 19 23 kmk_ash_INCS = $(PATH_TARGET) . # (the last is because of error.h) 20 24 kmk_ash_SOURCES = \ … … 49 53 $(PATH_TARGET)/init.c \ 50 54 $(PATH_TARGET)/nodes.c 55 kmk_ash_SOURCES.linux = \ 56 sys_signame.c \ 57 strlcpy.c \ 58 setmode.c 51 59 kmk_ash_DEPS = \ 52 60 $(PATH_TARGET)/arith.h \ -
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], "]")) -
trunk/src/ash/trap.c
r626 r630 61 61 #include "var.h" 62 62 63 #ifndef HAVE_SYS_SIGNAME 64 extern void init_sys_signame(void); 65 extern char sys_signame[NSIG][16]; 66 #endif 63 67 64 68 /* … … 101 105 p += 3; 102 106 107 #ifndef HAVE_SYS_SIGNAME 108 init_sys_signame(); 109 #endif 103 110 for (i = 0; i < NSIG; ++i) 104 111 if (strcasecmp (p, sys_signame[i]) == 0) … … 116 123 117 124 out1str("EXIT "); 125 #ifndef HAVE_SYS_SIGNAME 126 init_sys_signame(); 127 #endif 118 128 119 129 for (n = 1; n < NSIG; n++) { … … 136 146 char **ap; 137 147 int signo; 148 #ifndef HAVE_SYS_SIGNAME 149 init_sys_signame(); 150 #endif 138 151 139 152 if (argc <= 1) {
Note:
See TracChangeset
for help on using the changeset viewer.