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	__libelf_msg
9 
10 extern	const char	__libelf_msg[];
11 
12 #define	MSG_ORIG_STRTAB(_x, _s)	&_s[_x]
13 
14 #define	MSG_ORIG(x)	MSG_ORIG_STRTAB(x, __libelf_msg)
15 
16 extern	const char *	_libelf_msg(Msg);
17 
18 #define	MSG_INTL(x)	_libelf_msg(x)
19 
20 
21 #define	EINF_NULLERROR	1
22 #define	EINF_NULLERROR_SIZE	11
23 
24 #define	EBUG_COOKSTAT	13
25 #define	EBUG_COOKSTAT_SIZE	27
26 
27 #define	EBUG_COOKTYPE	41
28 #define	EBUG_COOKTYPE_SIZE	30
29 
30 #define	EBUG_SCNLIST	72
31 #define	EBUG_SCNLIST_SIZE	35
32 
33 #define	EBUG_THRDKEY	108
34 #define	EBUG_THRDKEY_SIZE	71
35 
36 #define	EBUG_THRDSET	180
37 #define	EBUG_THRDSET_SIZE	79
38 
39 #define	EFMT_ARFMAG	260
40 #define	EFMT_ARFMAG_SIZE	26
41 
42 #define	EFMT_ARHDRSZ	287
43 #define	EFMT_ARHDRSZ_SIZE	38
44 
45 #define	EFMT_ARMEMSZ	326
46 #define	EFMT_ARMEMSZ_SIZE	38
47 
48 #define	EFMT_ARSYM	365
49 #define	EFMT_ARSYM_SIZE	38
50 
51 #define	EFMT_ARSYMSTR	404
52 #define	EFMT_ARSYMSTR_SIZE	36
53 
54 #define	EFMT_ARSYMSZ	441
55 #define	EFMT_ARSYMSZ_SIZE	33
56 
57 #define	EFMT_DATA	475
58 #define	EFMT_DATA_SIZE	35
59 
60 #define	EFMT_EHDRSZ	511
61 #define	EFMT_EHDRSZ_SIZE	23
62 
63 #define	EFMT_ENTSZ	535
64 #define	EFMT_ENTSZ_SIZE	29
65 
66 #define	EFMT_PHDRSZ	565
67 #define	EFMT_PHDRSZ_SIZE	29
68 
69 #define	EFMT_PHTAB	595
70 #define	EFMT_PHTAB_SIZE	34
71 
72 #define	EFMT_SCNSZ	630
73 #define	EFMT_SCNSZ_SIZE	48
74 
75 #define	EFMT_SHDRSZ	535
76 #define	EFMT_SHDRSZ_SIZE	29
77 
78 #define	EFMT_SHTAB	679
79 #define	EFMT_SHTAB_SIZE	34
80 
81 #define	EFMT_VER2	714
82 #define	EFMT_VER2_SIZE	48
83 
84 #define	EFMT_VM	763
85 #define	EFMT_VM_SIZE	36
86 
87 #define	EFMT_FBIG_CLASS32	800
88 #define	EFMT_FBIG_CLASS32_SIZE	48
89 
90 #define	EFMT_FBIG_LARGEFILE	849
91 #define	EFMT_FBIG_LARGEFILE_SIZE	89
92 
93 #define	EFMT_ARSTRNM	939
94 #define	EFMT_ARSTRNM_SIZE	33
95 
96 #define	EFMT_ARUNKNM	973
97 #define	EFMT_ARUNKNM_SIZE	42
98 
99 #define	EIO_FBIG	1016
100 #define	EIO_FBIG_SIZE	34
101 
102 #define	EIO_FSZ	1051
103 #define	EIO_FSZ_SIZE	24
104 
105 #define	EIO_READ	1076
106 #define	EIO_READ_SIZE	19
107 
108 #define	EIO_SEEK	1096
109 #define	EIO_SEEK_SIZE	15
110 
111 #define	EIO_SYNC	1112
112 #define	EIO_SYNC_SIZE	23
113 
114 #define	EIO_VM	1136
115 #define	EIO_VM_SIZE	22
116 
117 #define	EIO_WRITE	1159
118 #define	EIO_WRITE_SIZE	23
119 
120 #define	EMEM_ARMEM	1183
121 #define	EMEM_ARMEM_SIZE	46
122 
123 #define	EMEM_ARSTR	1230
124 #define	EMEM_ARSTR_SIZE	55
125 
126 #define	EMEM_ARSYM	1286
127 #define	EMEM_ARSYM_SIZE	39
128 
129 #define	EMEM_DATA	1326
130 #define	EMEM_DATA_SIZE	37
131 
132 #define	EMEM_DNODE	1364
133 #define	EMEM_DNODE_SIZE	34
134 
135 #define	EMEM_EHDR	1399
136 #define	EMEM_EHDR_SIZE	29
137 
138 #define	EMEM_ELF	1429
139 #define	EMEM_ELF_SIZE	39
140 
141 #define	EMEM_OUT	1469
142 #define	EMEM_OUT_SIZE	42
143 
144 #define	EMEM_PHDR	1512
145 #define	EMEM_PHDR_SIZE	35
146 
147 #define	EMEM_SCN	1548
148 #define	EMEM_SCN_SIZE	40
149 
150 #define	EMEM_SHDR	1589
151 #define	EMEM_SHDR_SIZE	35
152 
153 #define	EMEM_SNODE	1625
154 #define	EMEM_SNODE_SIZE	37
155 
156 #define	EMEM_VM	1663
157 #define	EMEM_VM_SIZE	33
158 
159 #define	EMEM_ERRMSG	1697
160 #define	EMEM_ERRMSG_SIZE	49
161 
162 #define	EREQ_AR	1747
163 #define	EREQ_AR_SIZE	26
164 
165 #define	EREQ_ARMEMFD	1774
166 #define	EREQ_ARMEMFD_SIZE	45
167 
168 #define	EREQ_ARRDWR	1820
169 #define	EREQ_ARRDWR_SIZE	49
170 
171 #define	EREQ_BEGIN	1870
172 #define	EREQ_BEGIN_SIZE	32
173 
174 #define	EREQ_CLASS	1903
175 #define	EREQ_CLASS_SIZE	41
176 
177 #define	EREQ_CNTLCMD	1945
178 #define	EREQ_CNTLCMD_SIZE	31
179 
180 #define	EREQ_CNTLWRT	1977
181 #define	EREQ_CNTLWRT_SIZE	48
182 
183 #define	EREQ_DATA	2026
184 #define	EREQ_DATA_SIZE	32
185 
186 #define	EREQ_ENCODE	2059
187 #define	EREQ_ENCODE_SIZE	36
188 
189 #define	EREQ_FLAG	2096
190 #define	EREQ_FLAG_SIZE	31
191 
192 #define	EREQ_NDX	2128
193 #define	EREQ_NDX_SIZE	34
194 
195 #define	EREQ_NOFD	2163
196 #define	EREQ_NOFD_SIZE	39
197 
198 #define	EREQ_RAND	2203
199 #define	EREQ_RAND_SIZE	34
200 
201 #define	EREQ_RDWR	2238
202 #define	EREQ_RDWR_SIZE	53
203 
204 #define	EREQ_SCNNULL	2292
205 #define	EREQ_SCNNULL_SIZE	44
206 
207 #define	EREQ_STROFF	2337
208 #define	EREQ_STROFF_SIZE	41
209 
210 #define	EREQ_STRSCN	2379
211 #define	EREQ_STRSCN_SIZE	30
212 
213 #define	EREQ_UPDATE	2410
214 #define	EREQ_UPDATE_SIZE	33
215 
216 #define	EREQ_UPDWRT	2444
217 #define	EREQ_UPDWRT_SIZE	51
218 
219 #define	EREQ_VER	2496
220 #define	EREQ_VER_SIZE	30
221 
222 #define	EREQ_NOWRIMAGE	2527
223 #define	EREQ_NOWRIMAGE_SIZE	54
224 
225 #define	EREQ_DSZ	2582
226 #define	EREQ_DSZ_SIZE	36
227 
228 #define	EREQ_TYPE	2619
229 #define	EREQ_TYPE_SIZE	32
230 
231 #define	ESEQ_EHDR	2652
232 #define	ESEQ_EHDR_SIZE	32
233 
234 #define	ESEQ_VER	2685
235 #define	ESEQ_VER_SIZE	31
236 
237 #define	MSG_SUNW_OST_SGS	2717
238 #define	MSG_SUNW_OST_SGS_SIZE	12
239 
240 #define	MSG_FMT_ERR	2730
241 #define	MSG_FMT_ERR_SIZE	6
242 
243 #else	/* __lint */
244 
245 extern	const char *	_libelf_msg(Msg);
246 
247 #ifndef MSG_SGS_LOCAL_ARRAY
248 #define	MSG_SGS_LOCAL_ARRAY	""
249 #endif
250 
251 extern	const char	__libelf_msg[];
252 
253 #define MSG_ORIG_STRTAB(_x, _s)	_x
254 #define MSG_ORIG(x)	x
255 #define MSG_INTL(x)	x
256 
257 #ifndef LINTSUP_SUPPRESS_STRINGS
258 
259 #define	EINF_NULLERROR	"Elf error 0"
260 #define	EINF_NULLERROR_SIZE	11
261 
262 #define	EBUG_COOKSTAT	"Internal error: cook status"
263 #define	EBUG_COOKSTAT_SIZE	27
264 
265 #define	EBUG_COOKTYPE	"Internal error: cook data type"
266 #define	EBUG_COOKTYPE_SIZE	30
267 
268 #define	EBUG_SCNLIST	"Internal error: broken section list"
269 #define	EBUG_SCNLIST_SIZE	35
270 
271 #define	EBUG_THRDKEY	"Internal error: thr_keycreate() failed. Unable to allocate error buffer"
272 #define	EBUG_THRDKEY_SIZE	71
273 
274 #define	EBUG_THRDSET	"Internal error: thr_setspecific failed. Unable to create TSD for error message."
275 #define	EBUG_THRDSET_SIZE	79
276 
277 #define	EFMT_ARFMAG	"Format error: archive fmag"
278 #define	EFMT_ARFMAG_SIZE	26
279 
280 #define	EFMT_ARHDRSZ	"Format error: archive header truncated"
281 #define	EFMT_ARHDRSZ_SIZE	38
282 
283 #define	EFMT_ARMEMSZ	"Format error: archive member truncated"
284 #define	EFMT_ARMEMSZ_SIZE	38
285 
286 #define	EFMT_ARSYM	"Format error: archive symtab truncated"
287 #define	EFMT_ARSYM_SIZE	38
288 
289 #define	EFMT_ARSYMSTR	"Format error: archive symtab strings"
290 #define	EFMT_ARSYMSTR_SIZE	36
291 
292 #define	EFMT_ARSYMSZ	"Format error: archive symtab size"
293 #define	EFMT_ARSYMSZ_SIZE	33
294 
295 #define	EFMT_DATA	"Format error: data region truncated"
296 #define	EFMT_DATA_SIZE	35
297 
298 #define	EFMT_EHDRSZ	"Format error: ehdr size"
299 #define	EFMT_EHDRSZ_SIZE	23
300 
301 #define	EFMT_ENTSZ	"Format error: shdr entry size"
302 #define	EFMT_ENTSZ_SIZE	29
303 
304 #define	EFMT_PHDRSZ	"Format error: phdr entry size"
305 #define	EFMT_PHDRSZ_SIZE	29
306 
307 #define	EFMT_PHTAB	"Format error: phdr table truncated"
308 #define	EFMT_PHTAB_SIZE	34
309 
310 #define	EFMT_SCNSZ	"Format error: section sh_size too small for data"
311 #define	EFMT_SCNSZ_SIZE	48
312 
313 #define	EFMT_SHDRSZ	"Format error: shdr entry size"
314 #define	EFMT_SHDRSZ_SIZE	29
315 
316 #define	EFMT_SHTAB	"Format error: shdr table truncated"
317 #define	EFMT_SHTAB_SIZE	34
318 
319 #define	EFMT_VER2	"Format error: ehdr EI_VERSION/e_version mismatch"
320 #define	EFMT_VER2_SIZE	48
321 
322 #define	EFMT_VM	"Format error: reference outside file"
323 #define	EFMT_VM_SIZE	36
324 
325 #define	EFMT_FBIG_CLASS32	"Format error: file size exceeds 4GB 32-bit limit"
326 #define	EFMT_FBIG_CLASS32_SIZE	48
327 
328 #define	EFMT_FBIG_LARGEFILE	"Format error: file size exceeds 2GB limit of 32-bit linker. 64-bit linker is recommended."
329 #define	EFMT_FBIG_LARGEFILE_SIZE	89
330 
331 #define	EFMT_ARSTRNM	"Format error: archive strtab name"
332 #define	EFMT_ARSTRNM_SIZE	33
333 
334 #define	EFMT_ARUNKNM	"Format error: archive special name unknown"
335 #define	EFMT_ARUNKNM_SIZE	42
336 
337 #define	EIO_FBIG	"I/O error: file too big for memory"
338 #define	EIO_FBIG_SIZE	34
339 
340 #define	EIO_FSZ	"I/O error: get file size"
341 #define	EIO_FSZ_SIZE	24
342 
343 #define	EIO_READ	"I/O error: raw read"
344 #define	EIO_READ_SIZE	19
345 
346 #define	EIO_SEEK	"I/O error: seek"
347 #define	EIO_SEEK_SIZE	15
348 
349 #define	EIO_SYNC	"I/O error: output msync"
350 #define	EIO_SYNC_SIZE	23
351 
352 #define	EIO_VM	"I/O error: region read"
353 #define	EIO_VM_SIZE	22
354 
355 #define	EIO_WRITE	"I/O error: output write"
356 #define	EIO_WRITE_SIZE	23
357 
358 #define	EMEM_ARMEM	"Memory allocation error: archive member header"
359 #define	EMEM_ARMEM_SIZE	46
360 
361 #define	EMEM_ARSTR	"Memory allocation error: archive long file name strings"
362 #define	EMEM_ARSTR_SIZE	55
363 
364 #define	EMEM_ARSYM	"Memory allocation error: archive symtab"
365 #define	EMEM_ARSYM_SIZE	39
366 
367 #define	EMEM_DATA	"Memory allocation error: section data"
368 #define	EMEM_DATA_SIZE	37
369 
370 #define	EMEM_DNODE	"Memory allocation error: data node"
371 #define	EMEM_DNODE_SIZE	34
372 
373 #define	EMEM_EHDR	"Memory allocation error: ehdr"
374 #define	EMEM_EHDR_SIZE	29
375 
376 #define	EMEM_ELF	"Memory allocation error: elf descriptor"
377 #define	EMEM_ELF_SIZE	39
378 
379 #define	EMEM_OUT	"Memory allocation error: output file space"
380 #define	EMEM_OUT_SIZE	42
381 
382 #define	EMEM_PHDR	"Memory allocation error: phdr table"
383 #define	EMEM_PHDR_SIZE	35
384 
385 #define	EMEM_SCN	"Memory allocation error: scn descriptors"
386 #define	EMEM_SCN_SIZE	40
387 
388 #define	EMEM_SHDR	"Memory allocation error: shdr table"
389 #define	EMEM_SHDR_SIZE	35
390 
391 #define	EMEM_SNODE	"Memory allocation error: section node"
392 #define	EMEM_SNODE_SIZE	37
393 
394 #define	EMEM_VM	"Memory allocation error: vm stats"
395 #define	EMEM_VM_SIZE	33
396 
397 #define	EMEM_ERRMSG	"Memory allocation error: during errmsg generation"
398 #define	EMEM_ERRMSG_SIZE	49
399 
400 #define	EREQ_AR	"Request error: not archive"
401 #define	EREQ_AR_SIZE	26
402 
403 #define	EREQ_ARMEMFD	"Request error: archive/member fildes mismatch"
404 #define	EREQ_ARMEMFD_SIZE	45
405 
406 #define	EREQ_ARRDWR	"Request error: archive/member begin() for writing"
407 #define	EREQ_ARRDWR_SIZE	49
408 
409 #define	EREQ_BEGIN	"Request error: begin() ELF_C_..."
410 #define	EREQ_BEGIN_SIZE	32
411 
412 #define	EREQ_CLASS	"Request error: class file/memory mismatch"
413 #define	EREQ_CLASS_SIZE	41
414 
415 #define	EREQ_CNTLCMD	"Request error: cntl() ELF_C_..."
416 #define	EREQ_CNTLCMD_SIZE	31
417 
418 #define	EREQ_CNTLWRT	"Request error: cntl() ELF_C_FD... on output file"
419 #define	EREQ_CNTLWRT_SIZE	48
420 
421 #define	EREQ_DATA	"Request error: data/scn mismatch"
422 #define	EREQ_DATA_SIZE	32
423 
424 #define	EREQ_ENCODE	"Request error: unknown data encoding"
425 #define	EREQ_ENCODE_SIZE	36
426 
427 #define	EREQ_FLAG	"Request error: flag() ELF_C_..."
428 #define	EREQ_FLAG_SIZE	31
429 
430 #define	EREQ_NDX	"Request error: no section at index"
431 #define	EREQ_NDX_SIZE	34
432 
433 #define	EREQ_NOFD	"Request error: file descriptor disabled"
434 #define	EREQ_NOFD_SIZE	39
435 
436 #define	EREQ_RAND	"Request error: offset out of range"
437 #define	EREQ_RAND_SIZE	34
438 
439 #define	EREQ_RDWR	"Request error: begin() ELF_C_... mismatch with parent"
440 #define	EREQ_RDWR_SIZE	53
441 
442 #define	EREQ_SCNNULL	"Request error: can't manipulate null section"
443 #define	EREQ_SCNNULL_SIZE	44
444 
445 #define	EREQ_STROFF	"Request error: string offset out of range"
446 #define	EREQ_STROFF_SIZE	41
447 
448 #define	EREQ_STRSCN	"Request error: no string table"
449 #define	EREQ_STRSCN_SIZE	30
450 
451 #define	EREQ_UPDATE	"Request error: update() ELF_C_..."
452 #define	EREQ_UPDATE_SIZE	33
453 
454 #define	EREQ_UPDWRT	"Request error: update() for write on read-only file"
455 #define	EREQ_UPDWRT_SIZE	51
456 
457 #define	EREQ_VER	"Request error: unknown version"
458 #define	EREQ_VER_SIZE	30
459 
460 #define	EREQ_NOWRIMAGE	"Request error: update(WRIMAGE) not performed on parent"
461 #define	EREQ_NOWRIMAGE_SIZE	54
462 
463 #define	EREQ_DSZ	"Request error: destination too small"
464 #define	EREQ_DSZ_SIZE	36
465 
466 #define	EREQ_TYPE	"Request error: unknown ELF_T_..."
467 #define	EREQ_TYPE_SIZE	32
468 
469 #define	ESEQ_EHDR	"Sequence error: ehdr not created"
470 #define	ESEQ_EHDR_SIZE	32
471 
472 #define	ESEQ_VER	"Sequence error: version not set"
473 #define	ESEQ_VER_SIZE	31
474 
475 #define	MSG_SUNW_OST_SGS	"SUNW_OST_SGS"
476 #define	MSG_SUNW_OST_SGS_SIZE	12
477 
478 #define	MSG_FMT_ERR	"%s: %s"
479 #define	MSG_FMT_ERR_SIZE	6
480 
481 #endif	/* LINTSUP_SUPPRESS_STRINGS */
482 
483 #endif	/* __lint */
484 
485 #endif
486