Source code of Windows XP (NT5)
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.

72 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1991-1996 Microsoft Corporation
  3. Module Name:
  4. errno.h
  5. Abstract:
  6. This module contains the implementation defined values for the POSIX error
  7. number as described in section 2.5 of IEEE P1003.1/Draft 13 as well as
  8. additional error codes for streams and sockets.
  9. --*/
  10. #ifndef _SYS_ERRNO_
  11. #define _SYS_ERRNO_
  12. /*
  13. * POSIX error codes
  14. */
  15. #define EZERO 0 /* No error */
  16. #define EPERM 1 /* Operation no permitted */
  17. #define ENOENT 2 /* No such file or directory */
  18. #define ESRCH 3 /* No such process */
  19. #define EINTR 4 /* Interrupted function call */
  20. #define EIO 5 /* Input/output error */
  21. #define ENXIO 6 /* No such device or address */
  22. #define E2BIG 7 /* Arg list too long */
  23. #define ENOEXEC 8 /* Exec format error */
  24. #define EBADF 9 /* Bad file descriptor */
  25. #define ECHILD 10 /* No child processes */
  26. #define EAGAIN 11 /* Resource temporarily unavailable */
  27. #define ENOMEM 12 /* Not enough space */
  28. #define EACCES 13 /* Permission denied */
  29. #define EFAULT 14 /* Bad address */
  30. #define ENOTBLK 15 /* Unknown error */
  31. #define EBUSY 16 /* Resource device */
  32. #define EEXIST 17 /* File exists */
  33. #define EXDEV 18 /* Improper link */
  34. #define ENODEV 19 /* No such device */
  35. #define ENOTDIR 20 /* Not a directory */
  36. #define EISDIR 21 /* Is a directory */
  37. #define EINVAL 22 /* Invalid argument */
  38. #define ENFILE 23 /* Too many open files in system */
  39. #define EMFILE 24 /* Too many open files */
  40. #define ENOTTY 25 /* Inappropriate I/O control operation */
  41. #define ETXTBUSY 26 /* Unknown error */
  42. #define EFBIG 27 /* File too large */
  43. #define ENOSPC 28 /* No space left on device */
  44. #define ESPIPE 29 /* Invalid seek */
  45. #define EROFS 30 /* Read-only file system */
  46. #define EMLINK 31 /* Too many links */
  47. #define EPIPE 32 /* Broken pipe */
  48. #define EDOM 33 /* Domain error */
  49. #define ERANGE 34 /* Result too large */
  50. #define EUCLEAN 35 /* Unknown error */
  51. #define EDEADLOCK 36 /* Resource deadlock avoided */
  52. #define EDEADLK 36 /* Resource deadlock avoided */
  53. #ifndef _POSIX_SOURCE
  54. #define UNKNOWN 37 /* Unknown error */
  55. #endif /* _POSIX_SOURCE */
  56. #define ENAMETOOLONG 38 /* Filename too long */
  57. #define ENOLCK 39 /* No locks available */
  58. #define ENOSYS 40 /* Function not implemented */
  59. #define ENOTEMPTY 41 /* Direcotory not empty */
  60. #define EILSEQ 42 /* Invalid multi-byte character */
  61. #endif /* _SYS_ERRNO_ */