|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. ! 3: * ! 4: * @APPLE_LICENSE_HEADER_START@ ! 5: * ! 6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights ! 7: * Reserved. This file contains Original Code and/or Modifications of ! 8: * Original Code as defined in and that are subject to the Apple Public ! 9: * Source License Version 1.1 (the "License"). You may not use this file ! 10: * except in compliance with the License. Please obtain a copy of the ! 11: * License at http://www.apple.com/publicsource and read it before using ! 12: * this file. ! 13: * ! 14: * The Original Code and all software distributed under the License are ! 15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER ! 16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ! 17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, ! 18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the ! 19: * License for the specific language governing rights and limitations ! 20: * under the License. ! 21: * ! 22: * @APPLE_LICENSE_HEADER_END@ ! 23: */ ! 24: ! 25: /* Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved */ ! 26: /* ! 27: * Copyright (c) 1982, 1986, 1989, 1993 ! 28: * The Regents of the University of California. All rights reserved. ! 29: * (c) UNIX System Laboratories, Inc. ! 30: * All or some portions of this file are derived from material licensed ! 31: * to the University of California by American Telephone and Telegraph ! 32: * Co. or Unix System Laboratories, Inc. and are reproduced herein with ! 33: * the permission of UNIX System Laboratories, Inc. ! 34: * ! 35: * Redistribution and use in source and binary forms, with or without ! 36: * modification, are permitted provided that the following conditions ! 37: * are met: ! 38: * 1. Redistributions of source code must retain the above copyright ! 39: * notice, this list of conditions and the following disclaimer. ! 40: * 2. Redistributions in binary form must reproduce the above copyright ! 41: * notice, this list of conditions and the following disclaimer in the ! 42: * documentation and/or other materials provided with the distribution. ! 43: * 3. All advertising materials mentioning features or use of this software ! 44: * must display the following acknowledgement: ! 45: * This product includes software developed by the University of ! 46: * California, Berkeley and its contributors. ! 47: * 4. Neither the name of the University nor the names of its contributors ! 48: * may be used to endorse or promote products derived from this software ! 49: * without specific prior written permission. ! 50: * ! 51: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ! 52: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ! 53: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ! 54: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE ! 55: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ! 56: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ! 57: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ! 58: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ! 59: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ! 60: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ! 61: * SUCH DAMAGE. ! 62: * ! 63: * @(#)errno.h 8.5 (Berkeley) 1/21/94 ! 64: */ ! 65: ! 66: #ifndef _SYS_ERRNO_H_ ! 67: #define _SYS_ERRNO_H_ ! 68: ! 69: #ifndef _KERNEL ! 70: extern int errno; /* global error number */ ! 71: #endif ! 72: ! 73: /* ! 74: * Error codes ! 75: */ ! 76: ! 77: #define EPERM 1 /* Operation not permitted */ ! 78: #define ENOENT 2 /* No such file or directory */ ! 79: #define ESRCH 3 /* No such process */ ! 80: #define EINTR 4 /* Interrupted system call */ ! 81: #define EIO 5 /* Input/output error */ ! 82: #define ENXIO 6 /* Device not configured */ ! 83: #define E2BIG 7 /* Argument list too long */ ! 84: #define ENOEXEC 8 /* Exec format error */ ! 85: #define EBADF 9 /* Bad file descriptor */ ! 86: #define ECHILD 10 /* No child processes */ ! 87: #define EDEADLK 11 /* Resource deadlock avoided */ ! 88: /* 11 was EAGAIN */ ! 89: #define ENOMEM 12 /* Cannot allocate memory */ ! 90: #define EACCES 13 /* Permission denied */ ! 91: #define EFAULT 14 /* Bad address */ ! 92: #ifndef _POSIX_SOURCE ! 93: #define ENOTBLK 15 /* Block device required */ ! 94: #endif ! 95: #define EBUSY 16 /* Device busy */ ! 96: #define EEXIST 17 /* File exists */ ! 97: #define EXDEV 18 /* Cross-device link */ ! 98: #define ENODEV 19 /* Operation not supported by device */ ! 99: #define ENOTDIR 20 /* Not a directory */ ! 100: #define EISDIR 21 /* Is a directory */ ! 101: #define EINVAL 22 /* Invalid argument */ ! 102: #define ENFILE 23 /* Too many open files in system */ ! 103: #define EMFILE 24 /* Too many open files */ ! 104: #define ENOTTY 25 /* Inappropriate ioctl for device */ ! 105: #ifndef _POSIX_SOURCE ! 106: #define ETXTBSY 26 /* Text file busy */ ! 107: #endif ! 108: #define EFBIG 27 /* File too large */ ! 109: #define ENOSPC 28 /* No space left on device */ ! 110: #define ESPIPE 29 /* Illegal seek */ ! 111: #define EROFS 30 /* Read-only file system */ ! 112: #define EMLINK 31 /* Too many links */ ! 113: #define EPIPE 32 /* Broken pipe */ ! 114: ! 115: /* math software */ ! 116: #define EDOM 33 /* Numerical argument out of domain */ ! 117: #define ERANGE 34 /* Result too large */ ! 118: ! 119: /* non-blocking and interrupt i/o */ ! 120: #define EAGAIN 35 /* Resource temporarily unavailable */ ! 121: #ifndef _POSIX_SOURCE ! 122: #define EWOULDBLOCK EAGAIN /* Operation would block */ ! 123: #define EINPROGRESS 36 /* Operation now in progress */ ! 124: #define EALREADY 37 /* Operation already in progress */ ! 125: ! 126: /* ipc/network software -- argument errors */ ! 127: #define ENOTSOCK 38 /* Socket operation on non-socket */ ! 128: #define EDESTADDRREQ 39 /* Destination address required */ ! 129: #define EMSGSIZE 40 /* Message too long */ ! 130: #define EPROTOTYPE 41 /* Protocol wrong type for socket */ ! 131: #define ENOPROTOOPT 42 /* Protocol not available */ ! 132: #define EPROTONOSUPPORT 43 /* Protocol not supported */ ! 133: #define ESOCKTNOSUPPORT 44 /* Socket type not supported */ ! 134: #define EOPNOTSUPP 45 /* Operation not supported */ ! 135: #define EPFNOSUPPORT 46 /* Protocol family not supported */ ! 136: #define EAFNOSUPPORT 47 /* Address family not supported by protocol family */ ! 137: #define EADDRINUSE 48 /* Address already in use */ ! 138: #define EADDRNOTAVAIL 49 /* Can't assign requested address */ ! 139: ! 140: /* ipc/network software -- operational errors */ ! 141: #define ENETDOWN 50 /* Network is down */ ! 142: #define ENETUNREACH 51 /* Network is unreachable */ ! 143: #define ENETRESET 52 /* Network dropped connection on reset */ ! 144: #define ECONNABORTED 53 /* Software caused connection abort */ ! 145: #define ECONNRESET 54 /* Connection reset by peer */ ! 146: #define ENOBUFS 55 /* No buffer space available */ ! 147: #define EISCONN 56 /* Socket is already connected */ ! 148: #define ENOTCONN 57 /* Socket is not connected */ ! 149: #define ESHUTDOWN 58 /* Can't send after socket shutdown */ ! 150: #define ETOOMANYREFS 59 /* Too many references: can't splice */ ! 151: #define ETIMEDOUT 60 /* Operation timed out */ ! 152: #define ECONNREFUSED 61 /* Connection refused */ ! 153: ! 154: #define ELOOP 62 /* Too many levels of symbolic links */ ! 155: #endif /* _POSIX_SOURCE */ ! 156: #define ENAMETOOLONG 63 /* File name too long */ ! 157: ! 158: /* should be rearranged */ ! 159: #ifndef _POSIX_SOURCE ! 160: #define EHOSTDOWN 64 /* Host is down */ ! 161: #define EHOSTUNREACH 65 /* No route to host */ ! 162: #endif /* _POSIX_SOURCE */ ! 163: #define ENOTEMPTY 66 /* Directory not empty */ ! 164: ! 165: /* quotas & mush */ ! 166: #ifndef _POSIX_SOURCE ! 167: #define EPROCLIM 67 /* Too many processes */ ! 168: #define EUSERS 68 /* Too many users */ ! 169: #define EDQUOT 69 /* Disc quota exceeded */ ! 170: ! 171: /* Network File System */ ! 172: #define ESTALE 70 /* Stale NFS file handle */ ! 173: #define EREMOTE 71 /* Too many levels of remote in path */ ! 174: #define EBADRPC 72 /* RPC struct is bad */ ! 175: #define ERPCMISMATCH 73 /* RPC version wrong */ ! 176: #define EPROGUNAVAIL 74 /* RPC prog. not avail */ ! 177: #define EPROGMISMATCH 75 /* Program version wrong */ ! 178: #define EPROCUNAVAIL 76 /* Bad procedure for program */ ! 179: #endif /* _POSIX_SOURCE */ ! 180: ! 181: #define ENOLCK 77 /* No locks available */ ! 182: #define ENOSYS 78 /* Function not implemented */ ! 183: ! 184: #ifndef _POSIX_SOURCE ! 185: #define EFTYPE 79 /* Inappropriate file type or format */ ! 186: #define EAUTH 80 /* Authentication error */ ! 187: #define ENEEDAUTH 81 /* Need authenticator */ ! 188: #define ELAST 81 /* Must be equal largest errno */ ! 189: #endif /* _POSIX_SOURCE */ ! 190: ! 191: /* Intelligent device errors */ ! 192: #define EPWROFF 82 /* Device power is off */ ! 193: #define EDEVERR 83 /* Device error, e.g. paper out */ ! 194: #define ENOINIT 84 /* Device not initialized */ ! 195: ! 196: /* Program loading errors */ ! 197: #define EBADEXEC 85 /* Bad executable */ ! 198: #define EBADARCH 86 /* Bad CPU type in executable */ ! 199: #define ESHLIBVERS 87 /* Shared library version mismatch */ ! 200: #define EBADMACHO 88 /* Malformed Macho file */ ! 201: ! 202: #ifdef _KERNEL ! 203: /* pseudo-errors returned inside kernel to modify return to process */ ! 204: #define ERESTART -1 /* restart syscall */ ! 205: #define EJUSTRETURN -2 /* don't modify regs, just return */ ! 206: #endif ! 207: #endif /* _SYS_ERRNO_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.