9os

Experimental kernel using plan9 ideas for embedded device
git clone git://git.simple-cc.org/9os
Log | Files | Refs | README | LICENSE

errno.h (1898B)


      1 extern int errno;
      2 extern char *const _sys_errlist[];
      3 extern const int _sys_nerr;
      4 
      5 #define	E2BIG	1	/*  Argument list too long */
      6 #define	EACCES	2	/*  Permission denied */
      7 #define	EAGAIN	3	/*  Try again */
      8 #define	EBADF	4	/*  Bad file number */
      9 #define	EBUSY	5	/*  Device or resource busy */
     10 #define	ECHILD	6	/*  No child processes */
     11 #define	EDEADLK	7	/*  Resource deadlock would occur */
     12 #define	EEXIST	8	/*  File exists */
     13 #define	EFAULT	9	/*  Bad address */
     14 #define	EFBIG	10	/*  File too large */
     15 #define	EINTR	11	/*  Interrupted system call */
     16 #define	EINVAL	12	/*  Invalid argument */
     17 #define	EIO	13	/*  I/O error */
     18 #define	EISDIR	14	/*  Is a directory */
     19 #define	EMFILE	15	/*  Too many open files */
     20 #define	EMLINK	16	/*  Too many links */
     21 #define	ENAMETOOLONG	17	/*  File name too long */
     22 #define	ENFILE	18	/*  File table overflow */
     23 #define	ENODEV	19	/*  No such device */
     24 #define	ENOENT	20	/*  No such file or directory */
     25 #define	ENOEXEC	21	/*  Exec format error */
     26 #define	ENOLCK	22	/*  No record locks available */
     27 #define	ENOMEM	23	/*  Out of memory */
     28 #define	ENOSPC	24	/*  No space left on device */
     29 #define	ENOSYS	25	/*  Invalid system call number */
     30 #define	ENOTDIR	26	/*  Not a directory */
     31 #define	ENOTEMPTY	27	/*  Directory not empty */
     32 #define	ENOTTY	28	/*  Not a typewriter */
     33 #define	ENXIO	29	/*  No such device or address */
     34 #define	EPERM	30	/*  Operation not permitted */
     35 #define	EPIPE	31	/*  Broken pipe */
     36 #define	EROFS	32	/*  Read-only file system */
     37 #define	ESPIPE	33	/*  Illegal seek */
     38 #define	ESRCH	34	/*  No such process */
     39 #define	EXDEV	35	/*  Cross-device link */
     40 #define	ECANCELED	36	/*  Operation Canceled */
     41 #define	EINPROGRESS	37	/*  Operation now in progress */
     42 #define	ETXTBSY	38	/*  Text file busy */
     43 #define	EDOM	39	/*  Math argument out of domain of func */
     44 #define	ERANGE	40	/*  Math result not representable */
     45 #define EUNKNOWN 41	/*  Unknown error */