Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
/*
2
errors.h - exhaustive list of all error codes and messages for libelf.
3
Copyright (C) 1995 - 1998 Michael Riepe 
4
 
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
9
 
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
Library General Public License for more details.
14
 
15
You should have received a copy of the GNU Library General Public
16
License along with this library; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
*/
19
 
20
/* @(#) $Id: errors.h,v 1.4 1998/06/08 14:50:30 michael Exp $ */
21
 
22
/* dummy for xgettext */
23
#define _(str) str
24
 
25
__err__(ERROR_OK,		_("no error"))
26
__err__(ERROR_UNKNOWN,		_("unknown error"))
27
__err__(ERROR_INTERNAL,		_("Internal error: unknown reason"))
28
__err__(ERROR_UNIMPLEMENTED,	_("Internal error: not implemented"))
29
__err__(ERROR_WRONLY,		_("Request error: cntl(ELF_C_FDREAD) on write-only file"))
30
__err__(ERROR_INVALID_CMD,	_("Request error: invalid ELF_C_* argument"))
31
__err__(ERROR_FDDISABLED,	_("Request error: file descriptor disabled"))
32
__err__(ERROR_NOTARCHIVE,	_("Request error: not an archive"))
33
__err__(ERROR_BADOFF,		_("Request error: offset out of range"))
34
__err__(ERROR_UNKNOWN_VERSION,	_("Request error: unknown ELF version"))
35
__err__(ERROR_CMDMISMATCH,	_("Request error: ELF_C_* argument does not match"))
36
__err__(ERROR_MEMBERWRITE,	_("Request error: archive member begin() for writing"))
37
__err__(ERROR_FDMISMATCH,	_("Request error: archive/member file descriptor mismatch"))
38
__err__(ERROR_NOTELF,		_("Request error: not an ELF file"))
39
__err__(ERROR_CLASSMISMATCH,	_("Request error: class file/memory mismatch"))
40
__err__(ERROR_UNKNOWN_TYPE,	_("Request error: invalid ELF_T_* argument"))
41
__err__(ERROR_UNKNOWN_ENCODING,	_("Request error: unknown data encoding"))
42
__err__(ERROR_DST2SMALL,	_("Request error: destination buffer too small"))
43
__err__(ERROR_NULLBUF,		_("Request error: d_buf is NULL"))
44
__err__(ERROR_UNKNOWN_CLASS,	_("Request error: unknown ELF class"))
45
__err__(ERROR_ELFSCNMISMATCH,	_("Request error: section does not belong to file"))
46
__err__(ERROR_NOSUCHSCN,	_("Request error: no section at index"))
47
__err__(ERROR_NULLSCN,		_("Request error: can't manipulate null section"))
48
__err__(ERROR_SCNDATAMISMATCH,	_("Request error: data does not belong to section"))
49
__err__(ERROR_NOSTRTAB,		_("Request error: no string table"))
50
__err__(ERROR_BADSTROFF,	_("Request error: string table offset out of range"))
51
__err__(ERROR_RDONLY,		_("Request error: update(ELF_C_WRITE) on read-only file"))
52
__err__(ERROR_IO_SEEK,		_("I/O error: seek"))
53
__err__(ERROR_IO_2BIG,		_("I/O error: file too big for memory"))
54
__err__(ERROR_IO_READ,		_("I/O error: raw read"))
55
__err__(ERROR_IO_GETSIZE,	_("I/O error: get file size"))
56
__err__(ERROR_IO_WRITE,		_("I/O error: output write"))
57
__err__(ERROR_IO_TRUNC,		_("I/O error: can't truncate output file"))
58
__err__(ERROR_VERSION_UNSET,	_("Sequence error: must set ELF version first"))
59
__err__(ERROR_NOEHDR,		_("Sequence error: must create ELF header first"))
60
__err__(ERROR_OUTSIDE,		_("Format error: reference outside file"))
61
__err__(ERROR_TRUNC_ARHDR,	_("Format error: archive header truncated"))
62
__err__(ERROR_ARFMAG,		_("Format error: archive fmag"))
63
__err__(ERROR_ARHDR,		_("Format error: archive header"))
64
__err__(ERROR_TRUNC_MEMBER,	_("Format error: archive member truncated"))
65
__err__(ERROR_SIZE_ARSYMTAB,	_("Format error: archive symbol table size"))
66
__err__(ERROR_ARSTRTAB,		_("Format error: archive string table"))
67
__err__(ERROR_ARSPECIAL,	_("Format error: archive special name unknown"))
68
__err__(ERROR_TRUNC_EHDR,	_("Format error: ELF header truncated"))
69
__err__(ERROR_TRUNC_PHDR,	_("Format error: program header table truncated"))
70
__err__(ERROR_TRUNC_SHDR,	_("Format error: section header table truncated"))
71
__err__(ERROR_TRUNC_SCN,	_("Format error: data region truncated"))
72
__err__(ERROR_SCN2SMALL,	_("Format error: section size too small for data"))
73
__err__(ERROR_ALIGN_PHDR,	_("Format error: program header table alignment"))
74
__err__(ERROR_ALIGN_SHDR,	_("Format error: section header table alignment"))
75
__err__(ERROR_MEM_ELF,		_("Memory error: elf descriptor"))
76
__err__(ERROR_MEM_ARSYMTAB,	_("Memory error: archive symbol table"))
77
__err__(ERROR_MEM_ARHDR,	_("Memory error: archive member header"))
78
__err__(ERROR_MEM_EHDR,		_("Memory error: ELF header"))
79
__err__(ERROR_MEM_PHDR,		_("Memory error: program header table"))
80
__err__(ERROR_MEM_SHDR,		_("Memory error: section header table"))
81
__err__(ERROR_MEM_SCN,		_("Memory error: section descriptor"))
82
__err__(ERROR_MEM_SCNDATA,	_("Memory error: section data"))
83
__err__(ERROR_MEM_OUTBUF,	_("Memory error: output file space"))