errors.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:3k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2. ** -----------------------------------------------------------------------------
  3. **
  4. **  Perle Specialix driver for Linux
  5. **  Ported from existing RIO Driver for SCO sources.
  6.  *
  7.  *  (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
  8.  *
  9.  *      This program is free software; you can redistribute it and/or modify
  10.  *      it under the terms of the GNU General Public License as published by
  11.  *      the Free Software Foundation; either version 2 of the License, or
  12.  *      (at your option) any later version.
  13.  *
  14.  *      This program is distributed in the hope that it will be useful,
  15.  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.  *      GNU General Public License for more details.
  18.  *
  19.  *      You should have received a copy of the GNU General Public License
  20.  *      along with this program; if not, write to the Free Software
  21.  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22. **
  23. ** Module : errors.h
  24. ** SID : 1.2
  25. ** Last Modified : 11/6/98 11:34:10
  26. ** Retrieved : 11/6/98 11:34:21
  27. **
  28. **  ident @(#)errors.h 1.2
  29. **
  30. ** -----------------------------------------------------------------------------
  31. */
  32. #ifndef __rio_errors_h__
  33. #define __rio_errors_h__
  34. #ifdef SCCS_LABELS
  35. #ifndef lint
  36. static char *_errors_h_sccs_ = "@(#)errors.h 1.2";
  37. #endif
  38. #endif
  39. /*
  40. ** error codes
  41. */
  42. #define NOTHING_WRONG_AT_ALL 0
  43. #define BAD_CHARACTER_IN_NAME 1
  44. #define TABLE_ENTRY_ISNT_PROPERLY_NULL 2
  45. #define UNKNOWN_HOST_NUMBER 3
  46. #define ZERO_RTA_ID 4
  47. #define BAD_RTA_ID 5
  48. #define DUPLICATED_RTA_ID 6
  49. #define DUPLICATE_UNIQUE_NUMBER 7
  50. #define BAD_TTY_NUMBER 8
  51. #define TTY_NUMBER_IN_USE 9
  52. #define NAME_USED_TWICE 10
  53. #define HOST_ID_NOT_ZERO 11
  54. #define BOOT_IN_PROGRESS 12
  55. #define COPYIN_FAILED 13
  56. #define HOST_FILE_TOO_LARGE 14
  57. #define COPYOUT_FAILED 15
  58. #define NOT_SUPER_USER 16
  59. #define RIO_ALREADY_POLLING 17
  60. #define ID_NUMBER_OUT_OF_RANGE 18
  61. #define PORT_NUMBER_OUT_OF_RANGE 19
  62. #define HOST_NUMBER_OUT_OF_RANGE 20
  63. #define RUP_NUMBER_OUT_OF_RANGE 21
  64. #define TTY_NUMBER_OUT_OF_RANGE 22
  65. #define LINK_NUMBER_OUT_OF_RANGE 23
  66. #define HOST_NOT_RUNNING 24
  67. #define IOCTL_COMMAND_UNKNOWN 25
  68. #define RIO_SYSTEM_HALTED 26
  69. #define WAIT_FOR_DRAIN_BROKEN 27
  70. #define PORT_NOT_MAPPED_INTO_SYSTEM 28
  71. #define EXCLUSIVE_USE_SET 29
  72. #define WAIT_FOR_NOT_CLOSING_BROKEN 30
  73. #define WAIT_FOR_PORT_TO_OPEN_BROKEN 31
  74. #define WAIT_FOR_CARRIER_BROKEN 32
  75. #define WAIT_FOR_NOT_IN_USE_BROKEN 33
  76. #define WAIT_FOR_CAN_ADD_COMMAND_BROKEN 34
  77. #define WAIT_FOR_ADD_COMMAND_BROKEN 35
  78. #define WAIT_FOR_NOT_PARAM_BROKEN 36
  79. #define WAIT_FOR_RETRY_BROKEN 37
  80. #define HOST_HAS_ALREADY_BEEN_BOOTED 38
  81. #define UNIT_IS_IN_USE 39
  82. #define COULDNT_FIND_ENTRY 40
  83. #define RTA_UNIQUE_NUMBER_ZERO 41
  84. #define CLOSE_COMMAND_FAILED 42
  85. #define WAIT_FOR_CLOSE_BROKEN 43
  86. #define CPS_VALUE_OUT_OF_RANGE 44
  87. #define ID_ALREADY_IN_USE 45
  88. #define SIGNALS_ALREADY_SET 46
  89. #define NOT_RECEIVING_PROCESS 47
  90. #define RTA_NUMBER_WRONG 48
  91. #define NO_SUCH_PRODUCT 49
  92. #define HOST_SYSPORT_BAD 50
  93. #define ID_NOT_TENTATIVE 51
  94. #define XPRINT_CPS_OUT_OF_RANGE 52
  95. #define NOT_ENOUGH_CORE_FOR_PCI_COPY 53
  96. #endif /* __rio_errors_h__ */