errno_codes.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <Kernel/API/POSIX/errno.h>
  8. // NOTE: You can't define with a macro, so these have to be duplicated.
  9. #define ESUCCESS ESUCCESS
  10. #define EPERM EPERM
  11. #define ENOENT ENOENT
  12. #define ESRCH ESRCH
  13. #define EINTR EINTR
  14. #define EIO EIO
  15. #define ENXIO ENXIO
  16. #define E2BIG E2BIG
  17. #define ENOEXEC ENOEXEC
  18. #define EBADF EBADF
  19. #define ECHILD ECHILD
  20. #define EAGAIN EAGAIN
  21. #define ENOMEM ENOMEM
  22. #define EACCES EACCES
  23. #define EFAULT EFAULT
  24. #define ENOTBLK ENOTBLK
  25. #define EBUSY EBUSY
  26. #define EEXIST EEXIST
  27. #define EXDEV EXDEV
  28. #define ENODEV ENODEV
  29. #define ENOTDIR ENOTDIR
  30. #define EISDIR EISDIR
  31. #define EINVAL EINVAL
  32. #define ENFILE ENFILE
  33. #define EMFILE EMFILE
  34. #define ENOTTY ENOTTY
  35. #define ETXTBSY ETXTBSY
  36. #define EFBIG EFBIG
  37. #define ENOSPC ENOSPC
  38. #define ESPIPE ESPIPE
  39. #define EROFS EROFS
  40. #define EMLINK EMLINK
  41. #define EPIPE EPIPE
  42. #define ERANGE ERANGE
  43. #define ENAMETOOLONG ENAMETOOLONG
  44. #define ELOOP ELOOP
  45. #define EOVERFLOW EOVERFLOW
  46. #define EOPNOTSUPP EOPNOTSUPP
  47. #define ENOSYS ENOSYS
  48. #define ENOTIMPL ENOTIMPL
  49. #define EAFNOSUPPORT EAFNOSUPPORT
  50. #define ENOTSOCK ENOTSOCK
  51. #define EADDRINUSE EADDRINUSE
  52. #define ENOTEMPTY ENOTEMPTY
  53. #define EDOM EDOM
  54. #define ECONNREFUSED ECONNREFUSED
  55. #define EHOSTDOWN EHOSTDOWN
  56. #define EADDRNOTAVAIL EADDRNOTAVAIL
  57. #define EISCONN EISCONN
  58. #define ECONNABORTED ECONNABORTED
  59. #define EALREADY EALREADY
  60. #define ECONNRESET ECONNRESET
  61. #define EDESTADDRREQ EDESTADDRREQ
  62. #define EHOSTUNREACH EHOSTUNREACH
  63. #define EILSEQ EILSEQ
  64. #define EMSGSIZE EMSGSIZE
  65. #define ENETDOWN ENETDOWN
  66. #define ENETUNREACH ENETUNREACH
  67. #define ENETRESET ENETRESET
  68. #define ENOBUFS ENOBUFS
  69. #define ENOLCK ENOLCK
  70. #define ENOMSG ENOMSG
  71. #define ENOPROTOOPT ENOPROTOOPT
  72. #define ENOTCONN ENOTCONN
  73. #define ESHUTDOWN ESHUTDOWN
  74. #define ETOOMANYREFS ETOOMANYREFS
  75. #define ESOCKTNOSUPPORT ESOCKTNOSUPPORT
  76. #define EPROTONOSUPPORT EPROTONOSUPPORT
  77. #define EDEADLK EDEADLK
  78. #define ETIMEDOUT ETIMEDOUT
  79. #define EPROTOTYPE EPROTOTYPE
  80. #define EINPROGRESS EINPROGRESS
  81. #define ENOTHREAD ENOTHREAD
  82. #define EPROTO EPROTO
  83. #define ENOTSUP ENOTSUP
  84. #define EPFNOSUPPORT EPFNOSUPPORT
  85. #define EDIRINTOSELF EDIRINTOSELF
  86. #define EDQUOT EDQUOT
  87. #define ENOTRECOVERABLE ENOTRECOVERABLE
  88. #define ECANCELED ECANCELED
  89. #define EPROMISEVIOLATION EPROMISEVIOLATION
  90. #define ESTALE ESTALE
  91. #define EMAXERRNO EMAXERRNO
  92. #define EWOULDBLOCK EAGAIN
  93. #define ELAST EMAXERRNO