bsderrno.h 5.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /* $Id: bsderrno.h,v 1.3 1996/04/25 06:12:47 davem Exp $
  2. * bsderrno.h: Error numbers for NetBSD binary compatibility
  3. *
  4. * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
  5. */
  6. #ifndef _SPARC_BSDERRNO_H
  7. #define _SPARC_BSDERRNO_H
  8. #define BSD_EPERM 1 /* Operation not permitted */
  9. #define BSD_ENOENT 2 /* No such file or directory */
  10. #define BSD_ESRCH 3 /* No such process */
  11. #define BSD_EINTR 4 /* Interrupted system call */
  12. #define BSD_EIO 5 /* Input/output error */
  13. #define BSD_ENXIO 6 /* Device not configured */
  14. #define BSD_E2BIG 7 /* Argument list too long */
  15. #define BSD_ENOEXEC 8 /* Exec format error */
  16. #define BSD_EBADF 9 /* Bad file descriptor */
  17. #define BSD_ECHILD 10 /* No child processes */
  18. #define BSD_EDEADLK 11 /* Resource deadlock avoided */
  19. #define BSD_ENOMEM 12 /* Cannot allocate memory */
  20. #define BSD_EACCES 13 /* Permission denied */
  21. #define BSD_EFAULT 14 /* Bad address */
  22. #define BSD_ENOTBLK 15 /* Block device required */
  23. #define BSD_EBUSY 16 /* Device busy */
  24. #define BSD_EEXIST 17 /* File exists */
  25. #define BSD_EXDEV 18 /* Cross-device link */
  26. #define BSD_ENODEV 19 /* Operation not supported by device */
  27. #define BSD_ENOTDIR 20 /* Not a directory */
  28. #define BSD_EISDIR 21 /* Is a directory */
  29. #define BSD_EINVAL 22 /* Invalid argument */
  30. #define BSD_ENFILE 23 /* Too many open files in system */
  31. #define BSD_EMFILE 24 /* Too many open files */
  32. #define BSD_ENOTTY 25 /* Inappropriate ioctl for device */
  33. #define BSD_ETXTBSY 26 /* Text file busy */
  34. #define BSD_EFBIG 27 /* File too large */
  35. #define BSD_ENOSPC 28 /* No space left on device */
  36. #define BSD_ESPIPE 29 /* Illegal seek */
  37. #define BSD_EROFS 30 /* Read-only file system */
  38. #define BSD_EMLINK 31 /* Too many links */
  39. #define BSD_EPIPE 32 /* Broken pipe */
  40. #define BSD_EDOM 33 /* Numerical argument out of domain */
  41. #define BSD_ERANGE 34 /* Result too large */
  42. #define BSD_EAGAIN 35 /* Resource temporarily unavailable */
  43. #define BSD_EWOULDBLOCK EAGAIN /* Operation would block */
  44. #define BSD_EINPROGRESS 36 /* Operation now in progress */
  45. #define BSD_EALREADY 37 /* Operation already in progress */
  46. #define BSD_ENOTSOCK 38 /* Socket operation on non-socket */
  47. #define BSD_EDESTADDRREQ 39 /* Destination address required */
  48. #define BSD_EMSGSIZE 40 /* Message too long */
  49. #define BSD_EPROTOTYPE 41 /* Protocol wrong type for socket */
  50. #define BSD_ENOPROTOOPT 42 /* Protocol not available */
  51. #define BSD_EPROTONOSUPPORT 43 /* Protocol not supported */
  52. #define BSD_ESOCKTNOSUPPORT 44 /* Socket type not supported */
  53. #define BSD_EOPNOTSUPP 45 /* Operation not supported */
  54. #define BSD_EPFNOSUPPORT 46 /* Protocol family not supported */
  55. #define BSD_EAFNOSUPPORT 47 /* Address family not supported by protocol family */
  56. #define BSD_EADDRINUSE 48 /* Address already in use */
  57. #define BSD_EADDRNOTAVAIL 49 /* Can't assign requested address */
  58. #define BSD_ENETDOWN 50 /* Network is down */
  59. #define BSD_ENETUNREACH 51 /* Network is unreachable */
  60. #define BSD_ENETRESET 52 /* Network dropped connection on reset */
  61. #define BSD_ECONNABORTED 53 /* Software caused connection abort */
  62. #define BSD_ECONNRESET 54 /* Connection reset by peer */
  63. #define BSD_ENOBUFS 55 /* No buffer space available */
  64. #define BSD_EISCONN 56 /* Socket is already connected */
  65. #define BSD_ENOTCONN 57 /* Socket is not connected */
  66. #define BSD_ESHUTDOWN 58 /* Can't send after socket shutdown */
  67. #define BSD_ETOOMANYREFS 59 /* Too many references: can't splice */
  68. #define BSD_ETIMEDOUT 60 /* Operation timed out */
  69. #define BSD_ECONNREFUSED 61 /* Connection refused */
  70. #define BSD_ELOOP 62 /* Too many levels of symbolic links */
  71. #define BSD_ENAMETOOLONG 63 /* File name too long */
  72. #define BSD_EHOSTDOWN 64 /* Host is down */
  73. #define BSD_EHOSTUNREACH 65 /* No route to host */
  74. #define BSD_ENOTEMPTY 66 /* Directory not empty */
  75. #define BSD_EPROCLIM 67 /* Too many processes */
  76. #define BSD_EUSERS 68 /* Too many users */
  77. #define BSD_EDQUOT 69 /* Disc quota exceeded */
  78. #define BSD_ESTALE 70 /* Stale NFS file handle */
  79. #define BSD_EREMOTE 71 /* Too many levels of remote in path */
  80. #define BSD_EBADRPC 72 /* RPC struct is bad */
  81. #define BSD_ERPCMISMATCH 73 /* RPC version wrong */
  82. #define BSD_EPROGUNAVAIL 74 /* RPC prog. not avail */
  83. #define BSD_EPROGMISMATCH 75 /* Program version wrong */
  84. #define BSD_EPROCUNAVAIL 76 /* Bad procedure for program */
  85. #define BSD_ENOLCK 77 /* No locks available */
  86. #define BSD_ENOSYS 78 /* Function not implemented */
  87. #define BSD_EFTYPE 79 /* Inappropriate file type or format */
  88. #define BSD_EAUTH 80 /* Authentication error */
  89. #define BSD_ENEEDAUTH 81 /* Need authenticator */
  90. #define BSD_ELAST 81 /* Must be equal largest errno */
  91. #endif /* !(_SPARC_BSDERRNO_H) */