Annotation of Net2/sys/errno.h, revision 1.1.1.2

1.1       root        1: /*
                      2:  * Copyright (c) 1982, 1986, 1989 Regents of the University of California.
                      3:  * All rights reserved.
                      4:  *
                      5:  * Redistribution and use in source and binary forms, with or without
                      6:  * modification, are permitted provided that the following conditions
                      7:  * are met:
                      8:  * 1. Redistributions of source code must retain the above copyright
                      9:  *    notice, this list of conditions and the following disclaimer.
                     10:  * 2. Redistributions in binary form must reproduce the above copyright
                     11:  *    notice, this list of conditions and the following disclaimer in the
                     12:  *    documentation and/or other materials provided with the distribution.
                     13:  * 3. All advertising materials mentioning features or use of this software
                     14:  *    must display the following acknowledgement:
                     15:  *     This product includes software developed by the University of
                     16:  *     California, Berkeley and its contributors.
                     17:  * 4. Neither the name of the University nor the names of its contributors
                     18:  *    may be used to endorse or promote products derived from this software
                     19:  *    without specific prior written permission.
                     20:  *
                     21:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     22:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     23:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     24:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     25:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     26:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     27:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     28:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     29:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     30:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     31:  * SUCH DAMAGE.
                     32:  *
1.1.1.2 ! root       33:  *     from: @(#)errno.h       7.13 (Berkeley) 2/19/91
        !            34:  *     errno.h,v 1.3 1993/05/20 16:22:09 cgd Exp
1.1       root       35:  */
                     36: 
1.1.1.2 ! root       37: #ifndef _SYS_ERRNO_H_
        !            38: #define _SYS_ERRNO_H_
        !            39: 
1.1       root       40: #ifndef KERNEL
                     41: extern int errno;                      /* global error number */
                     42: #endif
                     43: 
                     44: #define        EPERM           1               /* Operation not permitted */
                     45: #define        ENOENT          2               /* No such file or directory */
                     46: #define        ESRCH           3               /* No such process */
                     47: #define        EINTR           4               /* Interrupted system call */
                     48: #define        EIO             5               /* Input/output error */
                     49: #define        ENXIO           6               /* Device not configured */
                     50: #define        E2BIG           7               /* Argument list too long */
                     51: #define        ENOEXEC         8               /* Exec format error */
                     52: #define        EBADF           9               /* Bad file descriptor */
                     53: #define        ECHILD          10              /* No child processes */
                     54: #define        EDEADLK         11              /* Resource deadlock avoided */
                     55:                                        /* 11 was EAGAIN */
                     56: #define        ENOMEM          12              /* Cannot allocate memory */
                     57: #define        EACCES          13              /* Permission denied */
                     58: #define        EFAULT          14              /* Bad address */
                     59: #ifndef _POSIX_SOURCE
                     60: #define        ENOTBLK         15              /* Block device required */
                     61: #define        EBUSY           16              /* Device busy */
                     62: #endif
                     63: #define        EEXIST          17              /* File exists */
                     64: #define        EXDEV           18              /* Cross-device link */
                     65: #define        ENODEV          19              /* Operation not supported by device */
                     66: #define        ENOTDIR         20              /* Not a directory */
                     67: #define        EISDIR          21              /* Is a directory */
                     68: #define        EINVAL          22              /* Invalid argument */
                     69: #define        ENFILE          23              /* Too many open files in system */
                     70: #define        EMFILE          24              /* Too many open files */
                     71: #define        ENOTTY          25              /* Inappropriate ioctl for device */
                     72: #ifndef _POSIX_SOURCE
                     73: #define        ETXTBSY         26              /* Text file busy */
                     74: #endif
                     75: #define        EFBIG           27              /* File too large */
                     76: #define        ENOSPC          28              /* No space left on device */
                     77: #define        ESPIPE          29              /* Illegal seek */
                     78: #define        EROFS           30              /* Read-only file system */
                     79: #define        EMLINK          31              /* Too many links */
                     80: #define        EPIPE           32              /* Broken pipe */
                     81: 
                     82: /* math software */
                     83: #define        EDOM            33              /* Numerical argument out of domain */
                     84: #define        ERANGE          34              /* Result too large */
                     85: 
                     86: /* non-blocking and interrupt i/o */
                     87: #define        EAGAIN          35              /* Resource temporarily unavailable */
                     88: #ifndef _POSIX_SOURCE
                     89: #define        EWOULDBLOCK     EAGAIN          /* Operation would block */
                     90: #define        EINPROGRESS     36              /* Operation now in progress */
                     91: #define        EALREADY        37              /* Operation already in progress */
                     92: 
                     93: /* ipc/network software -- argument errors */
                     94: #define        ENOTSOCK        38              /* Socket operation on non-socket */
                     95: #define        EDESTADDRREQ    39              /* Destination address required */
                     96: #define        EMSGSIZE        40              /* Message too long */
                     97: #define        EPROTOTYPE      41              /* Protocol wrong type for socket */
                     98: #define        ENOPROTOOPT     42              /* Protocol not available */
                     99: #define        EPROTONOSUPPORT 43              /* Protocol not supported */
                    100: #define        ESOCKTNOSUPPORT 44              /* Socket type not supported */
                    101: #define        EOPNOTSUPP      45              /* Operation not supported on socket */
                    102: #define        EPFNOSUPPORT    46              /* Protocol family not supported */
                    103: #define        EAFNOSUPPORT    47              /* Address family not supported by protocol family */
                    104: #define        EADDRINUSE      48              /* Address already in use */
                    105: #define        EADDRNOTAVAIL   49              /* Can't assign requested address */
                    106: 
                    107: /* ipc/network software -- operational errors */
                    108: #define        ENETDOWN        50              /* Network is down */
                    109: #define        ENETUNREACH     51              /* Network is unreachable */
                    110: #define        ENETRESET       52              /* Network dropped connection on reset */
                    111: #define        ECONNABORTED    53              /* Software caused connection abort */
                    112: #define        ECONNRESET      54              /* Connection reset by peer */
                    113: #define        ENOBUFS         55              /* No buffer space available */
                    114: #define        EISCONN         56              /* Socket is already connected */
                    115: #define        ENOTCONN        57              /* Socket is not connected */
                    116: #define        ESHUTDOWN       58              /* Can't send after socket shutdown */
                    117: #define        ETOOMANYREFS    59              /* Too many references: can't splice */
                    118: #define        ETIMEDOUT       60              /* Connection timed out */
                    119: #define        ECONNREFUSED    61              /* Connection refused */
                    120: 
                    121: #define        ELOOP           62              /* Too many levels of symbolic links */
                    122: #endif /* _POSIX_SOURCE */
                    123: #define        ENAMETOOLONG    63              /* File name too long */
                    124: 
                    125: /* should be rearranged */
                    126: #ifndef _POSIX_SOURCE
                    127: #define        EHOSTDOWN       64              /* Host is down */
                    128: #define        EHOSTUNREACH    65              /* No route to host */
                    129: #endif /* _POSIX_SOURCE */
                    130: #define        ENOTEMPTY       66              /* Directory not empty */
                    131: 
                    132: /* quotas & mush */
                    133: #ifndef _POSIX_SOURCE
                    134: #define        EPROCLIM        67              /* Too many processes */
                    135: #define        EUSERS          68              /* Too many users */
                    136: #define        EDQUOT          69              /* Disc quota exceeded */
                    137: 
                    138: /* Network File System */
                    139: #define        ESTALE          70              /* Stale NFS file handle */
                    140: #define        EREMOTE         71              /* Too many levels of remote in path */
                    141: #define        EBADRPC         72              /* RPC struct is bad */
                    142: #define        ERPCMISMATCH    73              /* RPC version wrong */
                    143: #define        EPROGUNAVAIL    74              /* RPC prog. not avail */
                    144: #define        EPROGMISMATCH   75              /* Program version wrong */
                    145: #define        EPROCUNAVAIL    76              /* Bad procedure for program */
                    146: #endif /* _POSIX_SOURCE */
                    147: 
                    148: #define        ENOLCK          77              /* No locks available */
                    149: #define        ENOSYS          78              /* Function not implemented */
                    150: 
                    151: #define        EFTYPE          79              /* Inappropriate file type or format */
                    152: 
                    153: #ifdef KERNEL
                    154: /* pseudo-errors returned inside kernel to modify return to process */
                    155: #define        ERESTART        -1              /* restart syscall */
                    156: #define        EJUSTRETURN     -2              /* don't modify regs, just return */
                    157: #endif
1.1.1.2 ! root      158: 
        !           159: #endif /* !_SYS_ERRNO_H_ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.