Back to index

lightning-sunbird  0.9+nobinonly
errno.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1982, 1986, 1989, 1993
00003  *     The Regents of the University of California.  All rights reserved.
00004  * (c) UNIX System Laboratories, Inc.
00005  * All or some portions of this file are derived from material licensed
00006  * to the University of California by American Telephone and Telegraph
00007  * Co. or Unix System Laboratories, Inc. and are reproduced herein with
00008  * the permission of UNIX System Laboratories, Inc.
00009  *
00010  * Redistribution and use in source and binary forms, with or without
00011  * modification, are permitted provided that the following conditions
00012  * are met:
00013  * 1. Redistributions of source code must retain the above copyright
00014  *    notice, this list of conditions and the following disclaimer.
00015  * 2. Redistributions in binary form must reproduce the above copyright
00016  *    notice, this list of conditions and the following disclaimer in the
00017  *    documentation and/or other materials provided with the distribution.
00018  * [3 Deleted as of 22Jul99, see
00019  *     ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
00020  *        for details]
00021  * 4. Neither the name of the University nor the names of its contributors
00022  *    may be used to endorse or promote products derived from this software
00023  *    without specific prior written permission.
00024  *
00025  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00026  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00027  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00028  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00029  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00030  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00031  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00032  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00033  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00034  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00035  * SUCH DAMAGE.
00036  *
00037  *     @(#)errno.h   8.5 (Berkeley) 1/21/94
00038  */
00039 
00040 /* Adapted for GUSI by Matthias Neeracher <neeri@iis.ee.ethz.ch> */
00041 
00042 #define       EPERM         1             /* Operation not permitted */
00043 #define       ENOENT        2             /* No such file or directory */
00044 #define       ESRCH         3             /* No such process */
00045 #define       EINTR         4             /* Interrupted system call */
00046 #define       EIO                  5             /* Input/output error */
00047 #define       ENXIO         6             /* Device not configured */
00048 #define       E2BIG         7             /* Argument list too long */
00049 #define       ENOEXEC              8             /* Exec format error */
00050 #define       EBADF         9             /* Bad file descriptor */
00051 #define       ECHILD        10            /* No child processes */
00052 #define       EDEADLK              11            /* Resource deadlock avoided */
00053                                    /* 11 was EAGAIN */
00054 #define       ENOMEM        12            /* Cannot allocate memory */
00055 #define       EACCES        13            /* Permission denied */
00056 #define       EFAULT        14            /* Bad address */
00057 #define ECANCELED    15            /* Operation cancelled */
00058 #define       EBUSY         16            /* Device busy */
00059 #define       EEXIST        17            /* File exists */
00060 #define       EXDEV         18            /* Cross-device link */
00061 #define       ENODEV        19            /* Operation not supported by device */
00062 #define       ENOTDIR              20            /* Not a directory */
00063 #define       EISDIR        21            /* Is a directory */
00064 #define       EINVAL        22            /* Invalid argument */
00065 #define       ENFILE        23            /* Too many open files in system */
00066 #define       EMFILE        24            /* Too many open files */
00067 #define       ENOTTY        25            /* Inappropriate ioctl for device */
00068 #define       EFBIG         27            /* File too large */
00069 #define       ENOSPC        28            /* No space left on device */
00070 #define       ESPIPE        29            /* Illegal seek */
00071 #define       EROFS         30            /* Read-only file system */
00072 #define       EMLINK        31            /* Too many links */
00073 #define       EPIPE         32            /* Broken pipe */
00074 
00075 /* math software */
00076 #define       EDOM          33            /* Numerical argument out of domain */
00077 #define       ERANGE        34            /* Result too large */
00078 
00079 /* non-blocking and interrupt i/o */
00080 #define       EAGAIN        35            /* Resource temporarily unavailable */
00081 #define       EWOULDBLOCK   EAGAIN        /* Operation would block */
00082 #define       EINPROGRESS   36            /* Operation now in progress */
00083 #define       EALREADY      37            /* Operation already in progress */
00084 
00085 /* ipc/network software -- argument errors */
00086 #define       ENOTSOCK      38            /* Socket operation on non-socket */
00087 #define       EDESTADDRREQ  39            /* Destination address required */
00088 #define       EMSGSIZE      40            /* Message too long */
00089 #define       EPROTOTYPE    41            /* Protocol wrong type for socket */
00090 #define       ENOPROTOOPT   42            /* Protocol not available */
00091 #define       EPROTONOSUPPORT      43            /* Protocol not supported */
00092 #define       ESOCKTNOSUPPORT      44            /* Socket type not supported */
00093 #define       EOPNOTSUPP    45            /* Operation not supported */
00094 #define       EPFNOSUPPORT  46            /* Protocol family not supported */
00095 #define       EAFNOSUPPORT  47            /* Address family not supported by protocol family */
00096 #define       EADDRINUSE    48            /* Address already in use */
00097 #define       EADDRNOTAVAIL 49            /* Can't assign requested address */
00098 
00099 /* ipc/network software -- operational errors */
00100 #define       ENETDOWN      50            /* Network is down */
00101 #define       ENETUNREACH   51            /* Network is unreachable */
00102 #define       ENETRESET     52            /* Network dropped connection on reset */
00103 #define       ECONNABORTED  53            /* Software caused connection abort */
00104 #define       ECONNRESET    54            /* Connection reset by peer */
00105 #define       ENOBUFS              55            /* No buffer space available */
00106 #define       EISCONN              56            /* Socket is already connected */
00107 #define       ENOTCONN      57            /* Socket is not connected */
00108 #define       ESHUTDOWN     58            /* Can't send after socket shutdown */
00109 #define       ETOOMANYREFS  59            /* Too many references: can't splice */
00110 #define       ETIMEDOUT     60            /* Operation timed out */
00111 #define       ECONNREFUSED  61            /* Connection refused */
00112 
00113 #define       ELOOP         62            /* Too many levels of symbolic links */
00114 #define       ENAMETOOLONG  63            /* File name too long */
00115 
00116 /* should be rearranged */
00117 #define       EHOSTDOWN     64            /* Host is down */
00118 #define       EHOSTUNREACH  65            /* No route to host */
00119 #define       ENOTEMPTY     66            /* Directory not empty */
00120 
00121 #define       ENOLCK        77            /* No locks available */
00122 #define       ENOSYS        78            /* Function not implemented */
00123 
00124 #ifndef _POSIX_SOURCE
00125 #define ELOOK        67            /* Internal mapping for kOTLookErr, don't return to client */ 
00126 #define       ELAST         78            /* Must be equal largest errno */
00127 #endif /* _POSIX_SOURCE */