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. All advertising materials mentioning features or use of this software
00019  *    must display the following acknowledgement:
00020  *      This product includes software developed by the University of
00021  *      California, Berkeley and its contributors.
00022  * 4. Neither the name of the University nor the names of its contributors
00023  *    may be used to endorse or promote products derived from this software
00024  *    without specific prior written permission.
00025  *
00026  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00027  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00028  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00029  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00030  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00031  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00032  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00033  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00034  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00035  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00036  * SUCH DAMAGE.
00037  *
00038  *      @(#)errno.h     8.5 (Berkeley) 1/21/94
00039  */
00040 #ifndef __SYSINTERF_ERRNO_H__
00041 #define __SYSINTERF_ERRNO_H__
00042 /*
00043  * note from the conceptors of LSE/OS: we tried to keep the Unix semantics
00044  * in order to keep compatibility with the original unix code, it explains
00045  * why we kept all these error numbers.
00046  */
00047 
00048 #define EZERO           0       
00050 #define EPERM           1       
00051 #define ENOENT          2       
00052 #define ESRCH           3       
00053 #define EINTR           4       
00054 #define EIO             5       
00055 #define ENXIO           6       
00056 #define E2BIG           7       
00057 #define ENOEXEC         8       
00058 #define EBADF           9       
00059 #define ECHILD          10      
00060 #define EDEADLK         11      
00062 #define ENOMEM          12      
00063 #define EACCES          13      
00064 #define EFAULT          14      
00065 #define ENOTBLK         15      
00066 #define EBUSY           16      
00067 #define EEXIST          17      
00068 #define EXDEV           18      
00069 #define ENODEV          19      
00070 #define ENOTDIR         20      
00071 #define EISDIR          21      
00072 #define EINVAL          22      
00073 #define ENFILE          23      
00074 #define EMFILE          24      
00075 #define ENOTTY          25      
00076 #define ETXTBSY         26      
00077 #define EFBIG           27      
00078 #define ENOSPC          28      
00079 #define ESPIPE          29      
00080 #define EROFS           30      
00081 #define EMLINK          31      
00082 #define EPIPE           32      
00083 #define EDOM            33      
00084 #define ERANGE          34      
00085 #define EAGAIN          35      
00086 #define EWOULDBLOCK     EAGAIN
00087 #define EINPROGRESS     36      
00088 #define EALREADY        37      
00090 /* ipc/network software -- argument errors */
00091 #define ENOTSOCK        38      
00092 #define EDESTADDRREQ    39      
00093 #define EMSGSIZE        40      
00094 #define EPROTOTYPE      41      
00095 #define ENOPROTOOPT     42      
00096 #define EPROTONOSUPPORT 43      
00097 #define ESOCKTNOSUPPORT 44      
00098 #define EOPNOTSUPP      45      
00099 #define EPFNOSUPPORT    46      
00100 #define EAFNOSUPPORT    47      
00101 #define EADDRINUSE      48      
00102 #define EADDRNOTAVAIL   49      
00104 /* ipc/network software -- operational errors */
00105 #define ENETDOWN        50      
00106 #define ENETUNREACH     51      
00107 #define ENETRESET       52      
00108 #define ECONNABORTED    53      
00109 #define ECONNRESET      54      
00110 #define ENOBUFS         55      
00111 #define EISCONN         56      
00112 #define ENOTCONN        57      
00113 #define ESHUTDOWN       58      
00114 #define ETOOMANYREFS    59      
00115 #define ETIMEDOUT       60      
00116 #define ECONNREFUSED    61      
00117 #define ELOOP           62      
00118 #define ENAMETOOLONG    63      
00120 /* should be rearranged */
00121 #define EHOSTDOWN       64      
00122 #define EHOSTUNREACH    65      
00123 #define ENOTEMPTY       66      
00125 /* quotas & mush */
00126 #define EPROCLIM        67      
00127 #define EUSERS          68      
00128 #define EDQUOT          69      
00130 /* Network File System */
00131 #define ESTALE          70      
00132 #define EREMOTE         71      
00133 #define EBADRPC         72      
00134 #define ERPCMISMATCH    73      
00135 #define EPROGUNAVAIL    74      
00136 #define EPROGMISMATCH   75      
00137 #define EPROCUNAVAIL    76      
00139 #define ENOLCK          77      
00140 #define ENOSYS          78      
00142 #define EFTYPE          79      
00143 #define EAUTH           80      
00144 #define ENEEDAUTH       81      
00146 /* SystemV IPC */
00147 #define EIDRM           82      
00148 #define ENOMSG          83      
00149 #define EOVERFLOW       84      
00151 #define EILSEQ          85      
00153 #define ELAST           85      
00155 #endif

Generated on Wed May 24 23:04:17 2006 for LSE/OS by  doxygen 1.4.6