linux_errno.h revision 1.1
11.1Sbjh21/* $NetBSD: linux_errno.h,v 1.1 2002/01/14 23:14:36 bjh21 Exp $ */ 21.1Sbjh21 31.1Sbjh21/*- 41.1Sbjh21 * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. 51.1Sbjh21 * All rights reserved. 61.1Sbjh21 * 71.1Sbjh21 * This code is derived from software contributed to The NetBSD Foundation 81.1Sbjh21 * by Frank van der Linden and Eric Haszlakiewicz. 91.1Sbjh21 * 101.1Sbjh21 * Redistribution and use in source and binary forms, with or without 111.1Sbjh21 * modification, are permitted provided that the following conditions 121.1Sbjh21 * are met: 131.1Sbjh21 * 1. Redistributions of source code must retain the above copyright 141.1Sbjh21 * notice, this list of conditions and the following disclaimer. 151.1Sbjh21 * 2. Redistributions in binary form must reproduce the above copyright 161.1Sbjh21 * notice, this list of conditions and the following disclaimer in the 171.1Sbjh21 * documentation and/or other materials provided with the distribution. 181.1Sbjh21 * 3. All advertising materials mentioning features or use of this software 191.1Sbjh21 * must display the following acknowledgement: 201.1Sbjh21 * This product includes software developed by the NetBSD 211.1Sbjh21 * Foundation, Inc. and its contributors. 221.1Sbjh21 * 4. Neither the name of The NetBSD Foundation nor the names of its 231.1Sbjh21 * contributors may be used to endorse or promote products derived 241.1Sbjh21 * from this software without specific prior written permission. 251.1Sbjh21 * 261.1Sbjh21 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 271.1Sbjh21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 281.1Sbjh21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 291.1Sbjh21 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 301.1Sbjh21 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 311.1Sbjh21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 321.1Sbjh21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 331.1Sbjh21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 341.1Sbjh21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 351.1Sbjh21 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 361.1Sbjh21 * POSSIBILITY OF SUCH DAMAGE. 371.1Sbjh21 */ 381.1Sbjh21 391.1Sbjh21#ifndef _ARM_LINUX_ERRNO_H 401.1Sbjh21#define _ARM_LINUX_ERRNO_H 411.1Sbjh21 421.1Sbjh21/* 431.1Sbjh21 * Linux/arm returns negative errors to userland 441.1Sbjh21 * The libc makes the errno positive. 451.1Sbjh21 */ 461.1Sbjh21#define LINUX_SCERR_SIGN - 471.1Sbjh21 481.1Sbjh21/* Use common/linux_errno.h for #1-35 */ 491.1Sbjh21 501.1Sbjh21 511.1Sbjh21#define LINUX_ENAMETOOLONG 36 521.1Sbjh21#define LINUX_ENOLCK 37 531.1Sbjh21#define LINUX_ENOSYS 38 541.1Sbjh21#define LINUX_ENOTEMPTY 39 551.1Sbjh21#define LINUX_ELOOP 40 561.1Sbjh21#define LINUX_ENOMSG 42 571.1Sbjh21#define LINUX_EIDRM 43 581.1Sbjh21#define LINUX_ECHRNG 44 591.1Sbjh21#define LINUX_EL2NSYNC 45 601.1Sbjh21#define LINUX_EL3HLT 46 611.1Sbjh21#define LINUX_EL3RST 47 621.1Sbjh21#define LINUX_ELNRNG 48 631.1Sbjh21#define LINUX_EUNATCH 49 641.1Sbjh21#define LINUX_ENOCSI 50 651.1Sbjh21#define LINUX_EL2HLT 51 661.1Sbjh21#define LINUX_EBADE 52 671.1Sbjh21#define LINUX_EBADR 53 681.1Sbjh21#define LINUX_EXFULL 54 691.1Sbjh21#define LINUX_ENOANO 55 701.1Sbjh21#define LINUX_EBADRQC 56 711.1Sbjh21#define LINUX_EBADSLT 57 721.1Sbjh21#define LINUX_EDEADLOCK 58 731.1Sbjh21#define LINUX_EBFONT 59 741.1Sbjh21#define LINUX_ENOSTR 60 751.1Sbjh21#define LINUX_ENODATA 61 761.1Sbjh21#define LINUX_ETIME 62 771.1Sbjh21#define LINUX_ENOSR 63 781.1Sbjh21#define LINUX_ENONET 64 791.1Sbjh21#define LINUX_ENOPKG 65 801.1Sbjh21#define LINUX_EREMOTE 66 811.1Sbjh21#define LINUX_ENOLINK 67 821.1Sbjh21#define LINUX_EADV 68 831.1Sbjh21#define LINUX_ESRMNT 69 841.1Sbjh21#define LINUX_ECOMM 70 851.1Sbjh21#define LINUX_EPROTO 71 861.1Sbjh21#define LINUX_EMULTIHOP 72 871.1Sbjh21#define LINUX_EDOTDOT 73 881.1Sbjh21#define LINUX_EBADMSG 74 891.1Sbjh21#define LINUX_EOVERFLOW 75 901.1Sbjh21#define LINUX_ENOTUNIQ 76 911.1Sbjh21#define LINUX_EBADFD 77 921.1Sbjh21#define LINUX_EREMCHG 78 931.1Sbjh21#define LINUX_ELIBACC 79 941.1Sbjh21#define LINUX_ELIBBAD 80 951.1Sbjh21#define LINUX_ELIBSCN 81 961.1Sbjh21#define LINUX_ELIBMAX 82 971.1Sbjh21#define LINUX_ELIBEXEC 83 981.1Sbjh21#define LINUX_EILSEQ 84 991.1Sbjh21#define LINUX_ERESTART 85 1001.1Sbjh21#define LINUX_ESTRPIPE 86 1011.1Sbjh21#define LINUX_EUSERS 87 1021.1Sbjh21#define LINUX_ENOTSOCK 88 1031.1Sbjh21#define LINUX_EDESTADDRREQ 89 1041.1Sbjh21#define LINUX_EMSGSIZE 90 1051.1Sbjh21#define LINUX_EPROTOTYPE 91 1061.1Sbjh21#define LINUX_ENOPROTOOPT 92 1071.1Sbjh21#define LINUX_EPROTONOSUPPORT 93 1081.1Sbjh21#define LINUX_ESOCKTNOSUPPORT 94 1091.1Sbjh21#define LINUX_EOPNOTSUPP 95 1101.1Sbjh21#define LINUX_EPFNOSUPPORT 96 1111.1Sbjh21#define LINUX_EAFNOSUPPORT 97 1121.1Sbjh21#define LINUX_EADDRINUSE 98 1131.1Sbjh21#define LINUX_EADDRNOTAVAIL 99 1141.1Sbjh21#define LINUX_ENETDOWN 100 1151.1Sbjh21#define LINUX_ENETUNREACH 101 1161.1Sbjh21#define LINUX_ENETRESET 102 1171.1Sbjh21#define LINUX_ECONNABORTED 103 1181.1Sbjh21#define LINUX_ECONNRESET 104 1191.1Sbjh21#define LINUX_ENOBUFS 105 1201.1Sbjh21#define LINUX_EISCONN 106 1211.1Sbjh21#define LINUX_ENOTCONN 107 1221.1Sbjh21#define LINUX_ESHUTDOWN 108 1231.1Sbjh21#define LINUX_ETOOMANYREFS 109 1241.1Sbjh21#define LINUX_ETIMEDOUT 110 1251.1Sbjh21#define LINUX_ECONNREFUSED 111 1261.1Sbjh21#define LINUX_EHOSTDOWN 112 1271.1Sbjh21#define LINUX_EHOSTUNREACH 113 1281.1Sbjh21#define LINUX_EALREADY 114 1291.1Sbjh21#define LINUX_EINPROGRESS 115 1301.1Sbjh21#define LINUX_ESTALE 116 1311.1Sbjh21#define LINUX_EUCLEAN 117 1321.1Sbjh21#define LINUX_ENOTNAM 118 1331.1Sbjh21#define LINUX_ENAVAIL 119 1341.1Sbjh21#define LINUX_EISNAM 120 1351.1Sbjh21#define LINUX_EREMOTEIO 121 1361.1Sbjh21#define LINUX_EDQUOT 122 137