errno_codes.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 EPERM EPERM
  10. #define ENOENT ENOENT
  11. #define ESRCH ESRCH
  12. #define EINTR EINTR
  13. #define EIO EIO
  14. #define ENXIO ENXIO
  15. #define E2BIG E2BIG
  16. #define ENOEXEC ENOEXEC
  17. #define EBADF EBADF
  18. #define ECHILD ECHILD
  19. #define EAGAIN EAGAIN
  20. #define ENOMEM ENOMEM
  21. #define EACCES EACCES
  22. #define EFAULT EFAULT
  23. #define ENOTBLK ENOTBLK
  24. #define EBUSY EBUSY
  25. #define EEXIST EEXIST
  26. #define EXDEV EXDEV
  27. #define ENODEV ENODEV
  28. #define ENOTDIR ENOTDIR
  29. #define EISDIR EISDIR
  30. #define EINVAL EINVAL
  31. #define ENFILE ENFILE
  32. #define EMFILE EMFILE
  33. #define ENOTTY ENOTTY
  34. #define ETXTBSY ETXTBSY
  35. #define EFBIG EFBIG
  36. #define ENOSPC ENOSPC
  37. #define ESPIPE ESPIPE
  38. #define EROFS EROFS
  39. #define EMLINK EMLINK
  40. #define EPIPE EPIPE
  41. #define ERANGE ERANGE
  42. #define ENAMETOOLONG ENAMETOOLONG
  43. #define ELOOP ELOOP
  44. #define EOVERFLOW EOVERFLOW
  45. #define EOPNOTSUPP EOPNOTSUPP
  46. #define ENOSYS ENOSYS
  47. #define ENOTIMPL ENOTIMPL
  48. #define EAFNOSUPPORT EAFNOSUPPORT
  49. #define ENOTSOCK ENOTSOCK
  50. #define EADDRINUSE EADDRINUSE
  51. #define ENOTEMPTY ENOTEMPTY
  52. #define EDOM EDOM
  53. #define ECONNREFUSED ECONNREFUSED
  54. #define EHOSTDOWN EHOSTDOWN
  55. #define EADDRNOTAVAIL EADDRNOTAVAIL
  56. #define EISCONN EISCONN
  57. #define ECONNABORTED ECONNABORTED
  58. #define EALREADY EALREADY
  59. #define ECONNRESET ECONNRESET
  60. #define EDESTADDRREQ EDESTADDRREQ
  61. #define EHOSTUNREACH EHOSTUNREACH
  62. #define EILSEQ EILSEQ
  63. #define EMSGSIZE EMSGSIZE
  64. #define ENETDOWN ENETDOWN
  65. #define ENETUNREACH ENETUNREACH
  66. #define ENETRESET ENETRESET
  67. #define ENOBUFS ENOBUFS
  68. #define ENOLCK ENOLCK
  69. #define ENOMSG ENOMSG
  70. #define ENOPROTOOPT ENOPROTOOPT
  71. #define ENOTCONN ENOTCONN
  72. #define ESHUTDOWN ESHUTDOWN
  73. #define ETOOMANYREFS ETOOMANYREFS
  74. #define EPROTONOSUPPORT EPROTONOSUPPORT
  75. #define ESOCKTNOSUPPORT ESOCKTNOSUPPORT
  76. #define EDEADLK EDEADLK
  77. #define ETIMEDOUT ETIMEDOUT
  78. #define EPROTOTYPE EPROTOTYPE
  79. #define EINPROGRESS EINPROGRESS
  80. #define ENOTHREAD ENOTHREAD
  81. #define EPROTO EPROTO
  82. #define ENOTSUP ENOTSUP
  83. #define EPFNOSUPPORT EPFNOSUPPORT
  84. #define EDQUOT EDQUOT
  85. #define EDIRINTOSELF EDIRINTOSELF
  86. #define ENOTRECOVERABLE ENOTRECOVERABLE
  87. #define ECANCELED ECANCELED
  88. #define EMAXERRNO EMAXERRNO
  89. #define EWOULDBLOCK EAGAIN
  90. #define ELAST EMAXERRNO