cynix

x86 UNIX-like OS
git clone git://git.2f30.org/cynix
Log | Files | Refs | README | LICENSE

errno.c (3043B)


      1 /*
      2  *  core/errno.c
      3  *
      4  *  Copyright (C) 2009 stateless
      5  */
      6 
      7 #include <errno.h>
      8 
      9 int errno;
     10 
     11 const char *sys_errlist [] = {
     12 	"argument list too long",                           /* E2BIG */
     13 	"permission denied",                                /* EACCES */
     14 	"resource temporarily unavailable",                 /* EAGAIN */
     15 	"bad file descriptor",                              /* EBADF */
     16 	"bad message",                                      /* EBADMSG */
     17 	"device or resource busy",                          /* EBUSY */
     18 	"operation canceled",                               /* ECANCELED */
     19 	"no child processes",                               /* ECHILD */
     20 	"resource deadlock avoided",                        /* EDEADLK */
     21 	"mathematics argument out of domain of function",   /* EDOM */
     22 	"file exists",                                      /* EEXIST */
     23 	"bad address",                                      /* EFAULT */
     24 	"file too large",                                   /* EFBIG */
     25 	"illegal byte sequence ",                           /* EILSEQ */
     26 	"operation in progress",                            /* EINPROGRESS */
     27 	"interrupted function call",                        /* EINTR */
     28 	"invalid argument",                                 /* EINVAL */
     29 	"input/output error",                               /* EIO */
     30 	"is a directory",                                   /* EISDIR */
     31 	"too many open files",                              /* EMFILE */
     32 	"too many links",                                   /* EMLINK */
     33 	"message too long",                                 /* EMSGSIZE */
     34 	"filename too long",                                /* ENAMETOOLONG */
     35 	"too many open files in system",                    /* ENFILE */
     36 	"no such device",                                   /* ENODEV */
     37 	"no such file or directory",                        /* ENOENT */
     38 	"exec format error",                                /* ENOEXEC */
     39 	"no locks available",                               /* ENOLCK */
     40 	"not enough space",                                 /* ENOMEM */
     41 	"no space left on device",                          /* ENOSPC */
     42 	"function not implemented",                         /* ENOSYS */
     43 	"not a directory",                                  /* ENOTDIR */
     44 	"directory not empty",                              /* ENOTEMPTY */
     45 	"operation not supported",                          /* ENOTSUP */
     46 	"inappropriate I/O control",                        /* ENOTTY */
     47 	"no such device or address",                        /* ENXIO */
     48 	"operation not permitted",                          /* EPERM */
     49 	"broken pipe",                                      /* EPIPE */
     50 	"result too large",                                 /* ERANGE */
     51 	"read-only file system",                            /* EROFS */
     52 	"invalid seek",                                     /* ESPIPE */
     53 	"no such process",                                  /* ESRCH */
     54 	"connection timed out",                             /* ETIMEDOUT */
     55 	"improper link"                                     /* EXDEV */
     56 };
     57