Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

159 lines
6.4 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. sock_err.h
  5. Abstract:
  6. This module contains error codes for sockets and STREAMS sources.
  7. Author:
  8. Sam Patton (sampa) July 26, 1991
  9. Revision History:
  10. when who what
  11. ---- --- ----
  12. 7-26-91 sampa initial version (in posix\sys\errno.h)
  13. 9-19-91 mikemas extracted these codes from posix\sys\errno.h
  14. Notes:
  15. --*/
  16. /*
  17. * Copyright (c) 1984 AT&T
  18. * Copyright (c) 1987 Fairchild Semiconductor Corporation
  19. * Copyright 1987 Lachman Associates, Incorporated (LAI)
  20. * All Rights Reserved
  21. *
  22. * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T,
  23. * FAIRCHILD SEMICONDUCTOR CORPORATION,
  24. * (AND LACHMAN ASSOCIATES)
  25. * AND SPIDER SYSTEMS.
  26. *
  27. * stcp copyright above and this notice must be preserved in all
  28. * copies of this source code. The copyright above does not
  29. * evidence any actual or intended publication of this source
  30. * code
  31. */
  32. #ifndef SOCK_ERR_INCLUDED
  33. #define SOCK_ERR_INCLUDED
  34. // in CRT #define ENOTBLK 54 /* Block device required */
  35. // in CRT #define ETXTBSY 55 /* Text file busy */
  36. #define ENOMSG 56 /* No message of desired type */
  37. #define EIDRM 57 /* Identifier removed */
  38. #define ECHRNG 58 /* Channel number out of range */
  39. #define EL2NSYNC 59 /* Level 2 not synchronized */
  40. #define EL3HLT 60 /* Level 3 halted */
  41. #define EL3RST 61 /* Level 3 reset */
  42. #define ELNRNG 62 /* Link number out of range */
  43. #define EUNATCH 63 /* Protocol driver not attached */
  44. #define ENOCSI 64 /* No CSI structure available */
  45. #define EL2HLT 65 /* Level 2 halted */
  46. /* Convergent Error Returns */
  47. #define EBADE 66 /* invalid exchange */
  48. #define EBADR 67 /* invalid request descriptor */
  49. #define EXFULL 68 /* exchange full */
  50. #define ENOANO 69 /* no anode */
  51. #define EBADRQC 70 /* invalid request code */
  52. #define EBADSLT 71 /* invalid slot */
  53. // in CRT #define EDEADLOCK 72 /* file locking deadlock error */
  54. #define EBFONT 73 /* bad font file fmt */
  55. /* stream problems */
  56. #define ENOSTR 74 /* Device not a stream */
  57. #define ENODATA 75 /* no data (for no delay io) */
  58. #define ETIME 76 /* timer expired */
  59. #define ENOSR 77 /* out of streams resources */
  60. #define ENONET 78 /* Machine is not on the network */
  61. #define ENOPKG 79 /* Package not installed */
  62. #define EREMOTE 80 /* The object is remote */
  63. #define ENOLINK 81 /* the link has been severed */
  64. #define EADV 82 /* advertise error */
  65. #define ESRMNT 83 /* srmount error */
  66. #define ECOMM 84 /* Communication error on send */
  67. #define EPROTO 85 /* Protocol error */
  68. #define EMULTIHOP 86 /* multihop attempted */
  69. #define ELBIN 87 /* Inode is remote (not really error)*/
  70. #define EDOTDOT 88 /* Cross mount point (not really error)*/
  71. #define EBADMSG 89 /* trying to read unreadable message */
  72. #define ENOTUNIQ 90 /* given log. name not unique */
  73. #define EREMCHG 91 /* Remote address changed */
  74. /* shared library problems */
  75. #define ELIBACC 92 /* Can't access a needed shared lib. */
  76. #define ELIBBAD 93 /* Accessing a corrupted shared lib. */
  77. #define ELIBSCN 94 /* .lib section in a.out corrupted. */
  78. #define ELIBMAX 95 /* Attempting to link in too many libs. */
  79. #define ELIBEXEC 96 /* Attempting to exec a shared library. */
  80. /*
  81. * Additional error codes for the socket library
  82. */
  83. #define EWOULDBLOCK EAGAIN /* Operation would block */
  84. #define ENOTSOCK 100 /* Socket operation on non-socket */
  85. #define EADDRNOTAVAIL 101 /* Can't assign requested address */
  86. #define EADDRINUSE 102 /* Address already in use */
  87. #define EAFNOSUPPORT 103
  88. /* Address family not supported by protocol family */
  89. #define ESOCKTNOSUPPORT 104 /* Socket type not supported */
  90. #define EPROTONOSUPPORT 105 /* Protocol not supported */
  91. #define ENOBUFS 106 /* No buffer space available */
  92. #define ETIMEDOUT 107 /* Connection timed out */
  93. #define EISCONN 108 /* Socket is already connected */
  94. #define ENOTCONN 109 /* Socket is not connected */
  95. #define ENOPROTOOPT 110 /* Bad protocol option */
  96. #define ECONNRESET 111 /* Connection reset by peer */
  97. #define ECONNABORT 112 /* Software caused connection abort */
  98. #define ENETDOWN 113 /* Network is down */
  99. #define ECONNREFUSED 114 /* Connection refused */
  100. #define EHOSTUNREACH 115 /* Host is unreachable */
  101. #define EPROTOTYPE 116 /* Protocol wrong type for socket */
  102. #define EOPNOTSUPP 117 /* Operation not supported on socket */
  103. #define ETIMEOUT ETIMEDOUT
  104. /*
  105. * these originate from the Internet Module
  106. */
  107. #define ESUBNET 118 /* IP subnet table full */
  108. #define ENETNOLNK 119 /* Subnet module not linked */
  109. #define EBADIOCTL 120 /* Unknown ioctl call */
  110. #define ERESOURCE 121 /* Failure in Streams buffer allocn */
  111. #define EPROTUNR 122 /* ICMP Protocol unreachable */
  112. #define EPORTUNR 123 /* ICMP Port unreachable */
  113. #define ENETUNR 124 /* ICMP Network unreachable */
  114. #define ENETUNREACH ENETUNR /* ICMP Network unreachable */
  115. /*
  116. * Ethernet Driver Errors
  117. */
  118. #define EPACKET 150 /* Invalid Ethernet Packet */
  119. #define ETYPEREG 151 /* Type registration error */
  120. /*
  121. * Socket library call
  122. */
  123. #define ENOTINIT 152 /* Sockets library not initialized */
  124. #endif //SOCK_ERR_INCLUDED