home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / libs / libelf-0.5 / libelf-0 / libelf-0.5.2 / errors.h < prev    next >
Encoding:
Text File  |  1995-10-19  |  4.4 KB  |  78 lines

  1. /*
  2. errors.h - exhaustive list of all error codes and messages for libelf.
  3. Copyright (C) 1995 Michael Riepe <riepe@ifwsn4.ifw.uni-hannover.de>
  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. __err__(ERROR_OK,        "no error")
  21. __err__(ERROR_UNKNOWN,        "unknown error")
  22. __err__(ERROR_INTERNAL,        "Internal error: unknown reason")
  23. __err__(ERROR_UNIMPLEMENTED,    "Internal error: not implemented")
  24. __err__(ERROR_SCNLIST_BROKEN,    "Internal error: broken section list")
  25. __err__(ERROR_WRONLY,        "Request error: update(ELF_C_WRITE) on read-only file")
  26. __err__(ERROR_INVALID_CMD,    "Request error: ELF_C_* invalid")
  27. __err__(ERROR_FDDISABLED,    "Request error: file descriptor disabled")
  28. __err__(ERROR_NOTARCHIVE,    "Request error: not an archive")
  29. __err__(ERROR_BADOFF,        "Request error: offset out of range")
  30. __err__(ERROR_UNKNOWN_VERSION,    "Request error: unknown version")
  31. __err__(ERROR_CMDMISMATCH,    "Request error: ELF_C_* mismatch with parent")
  32. __err__(ERROR_MEMBERWRITE,    "Request error: archive member begin() for writing")
  33. __err__(ERROR_FDMISMATCH,    "Request error: archive/member file descriptor mismatch")
  34. __err__(ERROR_NOTELF,        "Request error: not an ELF file")
  35. __err__(ERROR_CLASSMISMATCH,    "Request error: class file/memory mismatch")
  36. __err__(ERROR_UNKNOWN_TYPE,    "Request error: ELF_T_* invalid")
  37. __err__(ERROR_UNKNOWN_ENCODING,    "Request error: unknown data encoding")
  38. __err__(ERROR_DST2SMALL,    "Request error: destination too small")
  39. __err__(ERROR_NULLBUF,        "Request error: d_buf is NULL")
  40. __err__(ERROR_UNKNOWN_CLASS,    "Request error: unknown ELF class")
  41. __err__(ERROR_ELFSCNMISMATCH,    "Request error: scn/elf descriptor mismatch")
  42. __err__(ERROR_NOSUCHSCN,    "Request error: no section at index")
  43. __err__(ERROR_NULLSCN,        "Request error: can't manipulate null section")
  44. __err__(ERROR_SCNDATAMISMATCH,    "Request error: data/scn mismatch")
  45. __err__(ERROR_NOSTRTAB,        "Request error: no string table")
  46. __err__(ERROR_BADSTROFF,    "Request error: string table offset out of range")
  47. __err__(ERROR_RDONLY,        "Request error: update() for write on read-only file")
  48. __err__(ERROR_IO_SEEK,        "I/O error: seek")
  49. __err__(ERROR_IO_2BIG,        "I/O error: file too big for memory")
  50. __err__(ERROR_IO_READ,        "I/O error: raw read")
  51. __err__(ERROR_IO_GETSIZE,    "I/O error: get file size")
  52. __err__(ERROR_IO_WRITE,        "I/O error: output write")
  53. __err__(ERROR_IO_TRUNC,        "I/O error: output truncate")
  54. __err__(ERROR_VERSION_UNSET,    "Sequence error: version not set")
  55. __err__(ERROR_NOEHDR,        "Sequence error: must create ehdr first")
  56. __err__(ERROR_OUTSIDE,        "Format error: reference outside file")
  57. __err__(ERROR_TRUNC_ARHDR,    "Format error: archive haeder truncated")
  58. __err__(ERROR_ARFMAG,        "Format error: archive fmag")
  59. __err__(ERROR_ARHDR,        "Format error: archive header")
  60. __err__(ERROR_TRUNC_MEMBER,    "Format error: archive member truncated")
  61. __err__(ERROR_SIZE_ARSYMTAB,    "Format error: archive symbol table size")
  62. __err__(ERROR_ARSTRTAB,        "Format error: archive string table")
  63. __err__(ERROR_ARSPECIAL,    "Format error: archive special name unknown")
  64. __err__(ERROR_TRUNC_EHDR,    "Format error: ehdr truncated")
  65. __err__(ERROR_TRUNC_PHDR,    "Format error: phdr table truncated")
  66. __err__(ERROR_TRUNC_SHDR,    "Format error: shdr table truncated")
  67. __err__(ERROR_TRUNC_SCN,    "Format error: data region truncated")
  68. __err__(ERROR_SCN2SMALL,    "Format error: section sh_size too small for data")
  69. __err__(ERROR_MEM_ELF,        "Memory error: elf descriptor")
  70. __err__(ERROR_MEM_ARSYMTAB,    "Memory error: archive symbol table")
  71. __err__(ERROR_MEM_ARHDR,    "Memory error: archive member header")
  72. __err__(ERROR_MEM_EHDR,        "Memory error: ehdr")
  73. __err__(ERROR_MEM_PHDR,        "Memory error: phdr table")
  74. __err__(ERROR_MEM_SHDR,        "Memory error: shdr table")
  75. __err__(ERROR_MEM_SCN,        "Memory error: section descriptor")
  76. __err__(ERROR_MEM_SCNDATA,    "Memory error: section data")
  77. __err__(ERROR_MEM_OUTBUF,    "Memory error: output file space")
  78.