home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / SASC6571.LZX / source / syserr.c < prev    next >
Encoding:
Text File  |  1996-12-24  |  2.0 KB  |  51 lines

  1. /***
  2. *
  3. *                    Copyright © 1992  SAS Institute, Inc.
  4. *
  5. * This module defines the error messages corresponding to the codes that
  6. * can appear in errno.  
  7. *
  8. ***/
  9.  
  10.  
  11. int __sys_nerr = 34;      /* Highest valid error number */
  12.  
  13.  
  14. char *__sys_errlist[] = { 
  15.     /*   0   */             "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. };
  51.