os161-1.99
 All Data Structures
errno.h
00001 /*
00002  * Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008
00003  *      The President and Fellows of Harvard College.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  * 1. Redistributions of source code must retain the above copyright
00009  *    notice, this list of conditions and the following disclaimer.
00010  * 2. Redistributions in binary form must reproduce the above copyright
00011  *    notice, this list of conditions and the following disclaimer in the
00012  *    documentation and/or other materials provided with the distribution.
00013  * 3. Neither the name of the University nor the names of its contributors
00014  *    may be used to endorse or promote products derived from this software
00015  *    without specific prior written permission.
00016  *
00017  * THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND
00018  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00019  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00020  * ARE DISCLAIMED.  IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE
00021  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00022  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00023  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00024  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00025  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00026  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00027  * SUCH DAMAGE.
00028  */
00029 
00030 #ifndef _KERN_ERRNO_H_
00031 #define _KERN_ERRNO_H_
00032 
00033 /*
00034  * If you change this, be sure to make appropriate corresponding changes
00035  * to kern/errmsg.h as well. You might also want to change the man page
00036  * for errno to document the new error.
00037  *
00038  * This has been changed relative to OS/161 1.x to make the grouping
00039  * more logical.
00040  *
00041  * Also note that this file has to work from assembler, so it should
00042  * contain only symbolic constants.
00043  */
00044 
00045 #define ENOSYS          1      /* No such system call */
00046 #define EUNIMP          2      /* Unimplemented feature */
00047 #define ENOMEM          3      /* Out of memory */
00048 #define EAGAIN          4      /* Operation would block */
00049 #define EINTR           5      /* Interrupted system call */
00050 #define EFAULT          6      /* Bad memory reference */
00051 #define ENAMETOOLONG    7      /* String too long */
00052 #define EINVAL          8      /* Invalid argument */
00053 #define EPERM           9      /* Operation not permitted */
00054 #define EACCES          10     /* Permission denied */
00055 #define EMPROC          11     /* Too many processes */
00056 #define ENPROC          12     /* Too many processes in system */
00057 #define ENOEXEC         13     /* File is not executable */
00058 #define E2BIG           14     /* Argument list too long */
00059 #define ESRCH           15     /* No such process */
00060 #define ECHILD          16     /* No child processes */
00061 #define ENOTDIR         17     /* Not a directory */
00062 #define EISDIR          18     /* Is a directory */
00063 #define ENOENT          19     /* No such file or directory */
00064 #define ELOOP           20     /* Too many levels of symbolic links */
00065 #define ENOTEMPTY       21     /* Directory not empty */
00066 #define EEXIST          22     /* File or object exists */
00067 #define EMLINK          23     /* Too many hard links */
00068 #define EXDEV           24     /* Cross-device link */
00069 #define ENODEV          25     /* No such device */
00070 #define ENXIO           26     /* Device not available */
00071 #define EBUSY           27     /* Device or resource busy */
00072 #define EMFILE          28     /* Too many open files */
00073 #define ENFILE          29     /* Too many open files in system */
00074 #define EBADF           30     /* Bad file number */
00075 #define EIOCTL          31     /* Invalid or inappropriate ioctl */
00076 #define EIO             32     /* Input/output error */
00077 #define ESPIPE          33     /* Illegal seek */
00078 #define EPIPE           34     /* Broken pipe */
00079 #define EROFS           35     /* Read-only file system */
00080 #define ENOSPC          36     /* No space left on device */
00081 #define EDQUOT          37     /* Disc quota exceeded */
00082 #define EFBIG           38     /* File too large */
00083 #define EFTYPE          39     /* Invalid file type or format */
00084 #define EDOM            40     /* Argument out of range */
00085 #define ERANGE          41     /* Result out of range */
00086 #define EILSEQ          42     /* Invalid multibyte character sequence */
00087 #define ENOTSOCK        43     /* Not a socket */
00088 #define EISSOCK         44     /* Is a socket */
00089 #define EISCONN         45     /* Socket is already connected */
00090 #define ENOTCONN        46     /* Socket is not connected */
00091 #define ESHUTDOWN       47     /* Socket has been shut down */
00092 #define EPFNOSUPPORT    48     /* Protocol family not supported */
00093 #define ESOCKTNOSUPPORT 49     /* Socket type not supported */
00094 #define EPROTONOSUPPORT 50     /* Protocol not supported */
00095 #define EPROTOTYPE      51     /* Protocol wrong type for socket */
00096 #define EAFNOSUPPORT   52 /* Address family not supported by protocol family */
00097 #define ENOPROTOOPT     53     /* Protocol option not available */
00098 #define EADDRINUSE      54     /* Address already in use */
00099 #define EADDRNOTAVAIL   55     /* Cannot assign requested address */
00100 #define ENETDOWN        56     /* Network is down */
00101 #define ENETUNREACH     57     /* Network is unreachable */
00102 #define EHOSTDOWN       58     /* Host is down */
00103 #define EHOSTUNREACH    59     /* Host is unreachable */
00104 #define ECONNREFUSED    60     /* Connection refused */
00105 #define ETIMEDOUT       61     /* Connection timed out */
00106 #define ECONNRESET      62     /* Connection reset by peer */
00107 #define EMSGSIZE        63     /* Message too large */
00108 #define ENOTSUP         64     /* Threads operation not supported */
00109 
00110 
00111 #endif /* _KERN_ERRNO_H_ */
 All Data Structures