home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / djgpp / include / errno.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-20  |  1.5 KB  |  50 lines

  1. /*
  2. ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  3. **
  4. ** This file is distributed under the terms listed in the document
  5. ** "copying.dj", available from DJ Delorie at the address above.
  6. ** A copy of "copying.dj" should accompany this file; if not, a copy
  7. ** should be available from where this file was obtained.  This file
  8. ** may not be distributed without a verbatim copy of "copying.dj".
  9. **
  10. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  11. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. */
  13.  
  14. #ifndef errno_h
  15. #pragma once
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. #define ENOENT     2        /* No such file or directory    */
  22. #define ENOTDIR  3              /* No path                      */
  23. #define EMFILE     4        /* Too many open files        */
  24. #define EACCES     5        /* Permission denied        */
  25. #define EBADF     6        /* Bad file number        */
  26. #define EARENA   7        /* Arena trashed        */
  27. #define ENOMEM     8        /* Not enough core        */
  28. #define ESEGV    9        /* invalid memory address    */
  29. #define EBADENV 10        /* invalid environment        */
  30. #define ENODEV    15        /* No such device        */
  31. #define EINVAL    19        /* Invalid argument        */
  32. #define E2BIG    20        /* Arg list too long        */
  33. #define ENOEXEC 21        /* Exec format error        */
  34. #define EXDEV    22        /* Cross-device link        */
  35. #define EDOM    33        /* Math argument        */
  36. #define ERANGE    34        /* Result too large        */
  37. #define EEXIST    35        /* File already exists        */
  38.  
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42.  
  43. #ifndef errno_h
  44. #define errno_h 1
  45. #endif
  46.  
  47. #include <std.h>
  48.  
  49. #endif
  50.