1 #ifndef _MSG_DOT_H 2 #define _MSG_DOT_H 3 4 #include <sgsmsg.h> /* Msg typedef */ 5 6 #ifndef __lint 7 8 #define MSG_SGS_LOCAL_ARRAY __ldd_msg 9 10 extern const char __ldd_msg[]; 11 12 #define MSG_ORIG_STRTAB(_x, _s) &_s[_x] 13 14 #define MSG_ORIG(x) MSG_ORIG_STRTAB(x, __ldd_msg) 15 16 extern const char * _ldd_msg(Msg); 17 18 #define MSG_INTL(x) _ldd_msg(x) 19 20 21 #define MSG_ARG_USAGE 1 22 #define MSG_ARG_USAGE_SIZE 99 23 24 #define MSG_ENV_FAILED 101 25 #define MSG_ENV_FAILED_SIZE 48 26 27 #define MSG_USP_NODYNORSO 150 28 #define MSG_USP_NODYNORSO_SIZE 58 29 30 #define MSG_USP_NOHDR 209 31 #define MSG_USP_NOHDR_SIZE 50 32 33 #define MSG_USP_UNKNOWN 260 34 #define MSG_USP_UNKNOWN_SIZE 41 35 36 #define MSG_USP_ELFINS 302 37 #define MSG_USP_ELFINS_SIZE 41 38 39 #define MSG_USP_AOUTINS 344 40 #define MSG_USP_AOUTINS_SIZE 28 41 42 #define MSG_USP_NOTEXEC_1 382 43 #define MSG_USP_NOTEXEC_1_SIZE 26 44 45 #define MSG_USP_NOTEXEC_2 373 46 #define MSG_USP_NOTEXEC_2_SIZE 35 47 48 #define MSG_ELF_LIBELF 409 49 #define MSG_ELF_LIBELF_SIZE 37 50 51 #define MSG_ELF_BADMAGIC 447 52 #define MSG_ELF_BADMAGIC_SIZE 25 53 54 #define MSG_ELF_CLASS 473 55 #define MSG_ELF_CLASS_SIZE 36 56 57 #define MSG_ELF_KCLASS32 510 58 #define MSG_ELF_KCLASS32_SIZE 58 59 60 #define MSG_ELF_MACHTYPE 569 61 #define MSG_ELF_MACHTYPE_SIZE 58 62 63 #define MSG_ELF_DATA 628 64 #define MSG_ELF_DATA_SIZE 56 65 66 #define MSG_ELF_MACHFLAGS 685 67 #define MSG_ELF_MACHFLAGS_SIZE 28 68 69 #define MSG_ELF_GETEHDR 714 70 #define MSG_ELF_GETEHDR_SIZE 24 71 72 #define MSG_ELF_GETPHDR 739 73 #define MSG_ELF_GETPHDR_SIZE 24 74 75 #define MSG_SYS_LSEEK 764 76 #define MSG_SYS_LSEEK_SIZE 30 77 78 #define MSG_SYS_READ 795 79 #define MSG_SYS_READ_SIZE 29 80 81 #define MSG_SYS_FORK 825 82 #define MSG_SYS_FORK_SIZE 20 83 84 #define MSG_SYS_OPEN 846 85 #define MSG_SYS_OPEN_SIZE 29 86 87 #define MSG_SYS_MALLOC 876 88 #define MSG_SYS_MALLOC_SIZE 18 89 90 #define MSG_SYS_EXEC 895 91 #define MSG_SYS_EXEC_SIZE 25 92 93 #define MSG_SYS_EXEC_SIG 921 94 #define MSG_SYS_EXEC_SIG_SIZE 20 95 96 #define MSG_SYS_EXEC_CORE 942 97 #define MSG_SYS_EXEC_CORE_SIZE 13 98 99 #define MSG_SYS_EXEC_STAT 956 100 #define MSG_SYS_EXEC_STAT_SIZE 20 101 102 #define MSG_STR_EMPTY 0 103 #define MSG_STR_EMPTY_SIZE 0 104 105 #define MSG_PTH_LIB 981 106 #define MSG_PTH_LIB_SIZE 4 107 108 #define MSG_PTH_USRLIB 986 109 #define MSG_PTH_USRLIB_SIZE 8 110 111 #define MSG_PTH_ETCLIB 977 112 #define MSG_PTH_ETCLIB_SIZE 8 113 114 #define MSG_LD_PRELOAD_32 995 115 #define MSG_LD_PRELOAD_32_SIZE 13 116 117 #define MSG_LD_PRELOAD_64 1009 118 #define MSG_LD_PRELOAD_64_SIZE 13 119 120 #define MSG_LD_PRELOAD 1023 121 #define MSG_LD_PRELOAD_SIZE 10 122 123 #define MSG_SUNW_OST_SGS 1034 124 #define MSG_SUNW_OST_SGS_SIZE 12 125 126 #define MSG_STR_GETOPT 1047 127 #define MSG_STR_GETOPT_SIZE 16 128 129 #define MSG_STR_FMT1 1064 130 #define MSG_STR_FMT1_SIZE 10 131 132 #define MSG_STR_FMT2 1075 133 #define MSG_STR_FMT2_SIZE 8 134 135 #define MSG_STR_FMT3 1084 136 #define MSG_STR_FMT3_SIZE 4 137 138 #else /* __lint */ 139 140 extern const char * _ldd_msg(Msg); 141 142 #ifndef MSG_SGS_LOCAL_ARRAY 143 #define MSG_SGS_LOCAL_ARRAY "" 144 #endif 145 146 extern const char __ldd_msg[]; 147 148 #define MSG_ORIG_STRTAB(_x, _s) _x 149 #define MSG_ORIG(x) x 150 #define MSG_INTL(x) x 151 152 #ifndef LINTSUP_SUPPRESS_STRINGS 153 154 #define MSG_ARG_USAGE "usage: %s [-d | -r] [-c] [-D] [-e envar] [-f] [-i] [-L] [-l] [-p] [-s] [-U | -u] [-v] [-w] file(s)\n" 155 #define MSG_ARG_USAGE_SIZE 99 156 157 #define MSG_ENV_FAILED "%s: can't add to environment, putenv(3C) failed\n" 158 #define MSG_ENV_FAILED_SIZE 48 159 160 #define MSG_USP_NODYNORSO "%s: %s: file is not a dynamic executable or shared object\n" 161 #define MSG_USP_NODYNORSO_SIZE 58 162 163 #define MSG_USP_NOHDR "%s: %s: file built with ?N (NOHDR) mapfile option\n" 164 #define MSG_USP_NOHDR_SIZE 50 165 166 #define MSG_USP_UNKNOWN "%s: %s: unsupported or unknown file type\n" 167 #define MSG_USP_UNKNOWN_SIZE 41 168 169 #define MSG_USP_ELFINS "%s: %s: file has insecure interpreter %s\n" 170 #define MSG_USP_ELFINS_SIZE 41 171 172 #define MSG_USP_AOUTINS "%s: %s: insecure a.out file\n" 173 #define MSG_USP_AOUTINS_SIZE 28 174 175 #define MSG_USP_NOTEXEC_1 "%s: %s: is not executable\n" 176 #define MSG_USP_NOTEXEC_1_SIZE 26 177 178 #define MSG_USP_NOTEXEC_2 "warning: %s: %s: is not executable\n" 179 #define MSG_USP_NOTEXEC_2_SIZE 35 180 181 #define MSG_ELF_LIBELF "%s: libelf: version not supported: %d" 182 #define MSG_ELF_LIBELF_SIZE 37 183 184 #define MSG_ELF_BADMAGIC "%s: %s: bad magic number\n" 185 #define MSG_ELF_BADMAGIC_SIZE 25 186 187 #define MSG_ELF_CLASS "%s: %s: ELF class: %s: unrecognized\n" 188 #define MSG_ELF_CLASS_SIZE 36 189 190 #define MSG_ELF_KCLASS32 "%s: %s: ELF class: %s: is incompatible with 32-bit system\n" 191 #define MSG_ELF_KCLASS32_SIZE 58 192 193 #define MSG_ELF_MACHTYPE "%s: %s: ELF machine type: %s: is incompatible with system\n" 194 #define MSG_ELF_MACHTYPE_SIZE 58 195 196 #define MSG_ELF_DATA "%s: %s: ELF byte order: %s: is incompatible with system\n" 197 #define MSG_ELF_DATA_SIZE 56 198 199 #define MSG_ELF_MACHFLAGS "%s: %s: wrong machine flags\n" 200 #define MSG_ELF_MACHFLAGS_SIZE 28 201 202 #define MSG_ELF_GETEHDR "%s: %s: elf_getehdr: %s\n" 203 #define MSG_ELF_GETEHDR_SIZE 24 204 205 #define MSG_ELF_GETPHDR "%s: %s: elf_getphdr: %s\n" 206 #define MSG_ELF_GETPHDR_SIZE 24 207 208 #define MSG_SYS_LSEEK "%s: %s: cannot lseek file: %s\n" 209 #define MSG_SYS_LSEEK_SIZE 30 210 211 #define MSG_SYS_READ "%s: %s: cannot read file: %s\n" 212 #define MSG_SYS_READ_SIZE 29 213 214 #define MSG_SYS_FORK "%s: cannot fork: %s\n" 215 #define MSG_SYS_FORK_SIZE 20 216 217 #define MSG_SYS_OPEN "%s: %s: cannot open file: %s\n" 218 #define MSG_SYS_OPEN_SIZE 29 219 220 #define MSG_SYS_MALLOC "%s: malloc failed\n" 221 #define MSG_SYS_MALLOC_SIZE 18 222 223 #define MSG_SYS_EXEC "%s: %s: execution failed " 224 #define MSG_SYS_EXEC_SIZE 25 225 226 #define MSG_SYS_EXEC_SIG "due to signal %d %s\n" 227 #define MSG_SYS_EXEC_SIG_SIZE 20 228 229 #define MSG_SYS_EXEC_CORE "(core dumped)" 230 #define MSG_SYS_EXEC_CORE_SIZE 13 231 232 #define MSG_SYS_EXEC_STAT "with exit status %d\n" 233 #define MSG_SYS_EXEC_STAT_SIZE 20 234 235 #define MSG_STR_EMPTY "" 236 #define MSG_STR_EMPTY_SIZE 0 237 238 #define MSG_PTH_LIB "/lib" 239 #define MSG_PTH_LIB_SIZE 4 240 241 #define MSG_PTH_USRLIB "/usr/lib" 242 #define MSG_PTH_USRLIB_SIZE 8 243 244 #define MSG_PTH_ETCLIB "/etc/lib" 245 #define MSG_PTH_ETCLIB_SIZE 8 246 247 #define MSG_LD_PRELOAD_32 "LD_PRELOAD_32" 248 #define MSG_LD_PRELOAD_32_SIZE 13 249 250 #define MSG_LD_PRELOAD_64 "LD_PRELOAD_64" 251 #define MSG_LD_PRELOAD_64_SIZE 13 252 253 #define MSG_LD_PRELOAD "LD_PRELOAD" 254 #define MSG_LD_PRELOAD_SIZE 10 255 256 #define MSG_SUNW_OST_SGS "SUNW_OST_SGS" 257 #define MSG_SUNW_OST_SGS_SIZE 12 258 259 #define MSG_STR_GETOPT "cDde:fiLlprsUuvw" 260 #define MSG_STR_GETOPT_SIZE 16 261 262 #define MSG_STR_FMT1 "%s=./%s %s" 263 #define MSG_STR_FMT1_SIZE 10 264 265 #define MSG_STR_FMT2 "%s=%s %s" 266 #define MSG_STR_FMT2_SIZE 8 267 268 #define MSG_STR_FMT3 "%s:\n" 269 #define MSG_STR_FMT3_SIZE 4 270 271 #endif /* LINTSUP_SUPPRESS_STRINGS */ 272 273 #endif /* __lint */ 274 275 #endif 276