home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_07 / LATTIC_3.ZIP / SRC / SYSERR.C < prev    next >
C/C++ Source or Header  |  1990-01-19  |  2KB  |  50 lines

  1. /*
  2.  *
  3.  *                Copyright 1988 by Lattice, Inc.
  4.  *
  5.  * This module defines the error messages corresponding to the codes that
  6.  * can appear in errno.  
  7.  *
  8.  */
  9.  
  10. #include <errno.h>
  11.  
  12. int sys_nerr = 34;        /* Highest valid error number */
  13.  
  14. char *sys_errlist[] = { 
  15.                         "Unknown error code",
  16. /* EPERM 1 */            "User is not owner",
  17. /* ENOENT 2 */            "No such file or directory",
  18. /* ESRCH 3 */            "No such process",
  19. /* EINTR 4 */            "Interrupted system call",
  20. /* EIO 5 */             "I/O error",
  21. /* ENXIO 6 */            "No such device or address",
  22. /* E2BIG 7 */            "Arg list is too long",
  23. /* ENOEXEC 8 */         "Exec format error",
  24. /* EBADF 9 */            "Bad file number",
  25. /* ECHILD 10 */         "No child process",
  26. /* EAGAIN 11 */         "No more processes allowed",
  27. /* ENOMEM 12 */         "No memory available",
  28. /* EACCES 13 */         "Access denied",
  29. /* EFAULT 14 */         "Bad address",
  30. /* ENOTBLK 15 */        "Bulk device required",
  31. /* EBUSY 16 */            "Resource is busy",
  32. /* EEXIST 17 */         "File already exists",
  33. /* EXDEV 18 */            "Cross-device link",
  34. /* ENODEV 19 */         "No such device",
  35. /* ENOTDIR 20 */        "Not a directory",
  36. /* EISDIR 21 */         "Is a directory",
  37. /* EINVAL 22 */         "Invalid argument",
  38. /* ENFILE 23 */         "No more files (units) allowed",
  39. /* EMFILE 24 */         "No more files (units) allowed for this process",
  40. /* ENOTTY 25 */         "Not a terminal",
  41. /* ETXTBSY 26 */        "Text file is busy",
  42. /* EFBIG 27 */            "File is too large",
  43. /* ENOSPC 28 */         "No space left",
  44. /* ESPIPE 29 */         "Seek issued to pipe",
  45. /* EROFS 30 */            "Read-only file system",
  46. /* EMLINK 31 */         "Too many links",
  47. /* EPIPE 32 */            "Broken pipe",
  48. /* EDOM 33 */            "Math function argument error",
  49. /* ERANGE 34 */         "Math function result is out of range" };
  50.