[SPARC]: Kill BSD errno translation table and header files.

Completely unused.

Signed-off-by: David S. Miller <davem@davemloft.net>

authored by David S. Miller and committed by David S. Miller c79ca3f8 ff99b923

+6 -326
+6 -138
arch/sparc/kernel/errtbls.c
··· 1 - /* $Id: errtbls.c,v 1.2 1995/11/25 00:57:55 davem Exp $ 2 - * errtbls.c: Error number conversion tables between various syscall 3 - * OS semantics. 1 + /* errtbls.c: Error number conversion tables. 4 2 * 5 - * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) 3 + * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net) 6 4 * 7 5 * Based upon preliminary work which is: 8 6 * 9 7 * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu) 10 8 */ 11 9 12 - #include <asm/bsderrno.h> /* NetBSD (bsd4.4) errnos */ 13 10 #include <asm/solerrno.h> /* Solaris errnos */ 14 11 15 - /* Here are tables which convert between Linux/SunOS error number 16 - * values to the equivalent in other OSs. Note that since the Linux 17 - * ones have been set up to match exactly those of SunOS, no 18 - * translation table is needed for that OS. 12 + /* Here is the table which converts between Linux error number values 13 + * to the equivalent under Solaris. Note that since the Linux ones 14 + * have been set up to match exactly those of SunOS, no translation 15 + * table is needed for that OS. 19 16 */ 20 17 21 18 int solaris_errno[] = { ··· 142 145 SOL_ELIBMAX, 143 146 SOL_ELIBSCN, 144 147 }; 145 - 146 - int netbsd_errno[] = { 147 - 0, 148 - BSD_EPERM, 149 - BSD_ENOENT, 150 - BSD_ESRCH, 151 - BSD_EINTR, 152 - BSD_EIO, 153 - BSD_ENXIO, 154 - BSD_E2BIG, 155 - BSD_ENOEXEC, 156 - BSD_EBADF, 157 - BSD_ECHILD, 158 - BSD_EAGAIN, 159 - BSD_ENOMEM, 160 - BSD_EACCES, 161 - BSD_EFAULT, 162 - BSD_NOTBLK, 163 - BSD_EBUSY, 164 - BSD_EEXIST, 165 - BSD_EXDEV, 166 - BSD_ENODEV, 167 - BSD_ENOTDIR, 168 - BSD_EISDIR, 169 - BSD_EINVAL, 170 - BSD_ENFILE, 171 - BSD_EMFILE, 172 - BSD_ENOTTY, 173 - BSD_ETXTBSY, 174 - BSD_EFBIG, 175 - BSD_ENOSPC, 176 - BSD_ESPIPE, 177 - BSD_EROFS, 178 - BSD_EMLINK, 179 - BSD_EPIPE, 180 - BSD_EDOM, 181 - BSD_ERANGE, 182 - BSD_EWOULDBLOCK, 183 - BSD_EINPROGRESS, 184 - BSD_EALREADY, 185 - BSD_ENOTSOCK, 186 - BSD_EDESTADDRREQ, 187 - BSD_EMSGSIZE, 188 - BSD_EPROTOTYPE, 189 - BSD_ENOPROTOOPT, 190 - BSD_EPROTONOSUPPORT, 191 - BSD_ESOCKTNOSUPPORT, 192 - BSD_EOPNOTSUPP, 193 - BSD_EPFNOSUPPORT, 194 - BSD_EAFNOSUPPORT, 195 - BSD_EADDRINUSE, 196 - BSD_EADDRNOTAVAIL, 197 - BSD_ENETDOWN, 198 - BSD_ENETUNREACH, 199 - BSD_ENETRESET, 200 - BSD_ECONNABORTED, 201 - BSD_ECONNRESET, 202 - BSD_ENOBUFS, 203 - BSD_EISCONN, 204 - BSD_ENOTONN, 205 - BSD_ESHUTDOWN, 206 - BSD_ETOOMANYREFS, 207 - BSD_ETIMEDOUT, 208 - BSD_ECONNREFUSED, 209 - BSD_ELOOP, 210 - BSD_ENAMETOOLONG, 211 - BSD_EHOSTDOWN, 212 - BSD_EHOSTUNREACH, 213 - BSD_ENOTEMPTY, 214 - BSD_EPROCLIM, 215 - BSD_EUSERS, 216 - BSD_EDQUOT, 217 - BSD_ESTALE, 218 - BSD_EREMOTE, 219 - BSD_ENOSTR, 220 - BSD_ETIME, 221 - BSD_ENOSR, 222 - BSD_ENOMSG, 223 - BSD_EBADMSG, 224 - BSD_IDRM, 225 - BSD_EDEADLK, 226 - BSD_ENOLCK, 227 - BSD_ENONET, 228 - BSD_ERREMOTE, 229 - BSD_ENOLINK, 230 - BSD_EADV, 231 - BSD_ESRMNT, 232 - BSD_ECOMM, 233 - BSD_EPROTO, 234 - BSD_EMULTIHOP, 235 - BSD_EINVAL, /* EDOTDOT XXX??? */ 236 - BSD_REMCHG, 237 - BSD_NOSYS, 238 - BSD_STRPIPE, 239 - BSD_EOVERFLOW, 240 - BSD_EBADFD, 241 - BSD_ECHRNG, 242 - BSD_EL2NSYNC, 243 - BSD_EL3HLT, 244 - BSD_EL3RST, 245 - BSD_NRNG, 246 - BSD_EUNATCH, 247 - BSD_ENOCSI, 248 - BSD_EL2HLT, 249 - BSD_EBADE, 250 - BSD_EBADR, 251 - BSD_EXFULL, 252 - BSD_ENOANO, 253 - BSD_EBADRQC, 254 - BSD_EBADSLT, 255 - BSD_EDEADLOCK, 256 - BSD_EBFONT, 257 - BSD_ELIBEXEC, 258 - BSD_ENODATA, 259 - BSD_ELIBBAD, 260 - BSD_ENOPKG, 261 - BSD_ELIBACC, 262 - BSD_ENOTUNIQ, 263 - BSD_ERESTART, 264 - BSD_EUCLEAN, 265 - BSD_ENOTNAM, 266 - BSD_ENAVAIL, 267 - BSD_EISNAM, 268 - BSD_EREMOTEIO, 269 - BSD_EILSEQ, 270 - BSD_ELIBMAX, 271 - BSD_ELIBSCN, 272 - }; 273 -
-94
include/asm-sparc/bsderrno.h
··· 1 - /* $Id: bsderrno.h,v 1.3 1996/04/25 06:12:47 davem Exp $ 2 - * bsderrno.h: Error numbers for NetBSD binary compatibility 3 - * 4 - * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) 5 - */ 6 - 7 - #ifndef _SPARC_BSDERRNO_H 8 - #define _SPARC_BSDERRNO_H 9 - 10 - #define BSD_EPERM 1 /* Operation not permitted */ 11 - #define BSD_ENOENT 2 /* No such file or directory */ 12 - #define BSD_ESRCH 3 /* No such process */ 13 - #define BSD_EINTR 4 /* Interrupted system call */ 14 - #define BSD_EIO 5 /* Input/output error */ 15 - #define BSD_ENXIO 6 /* Device not configured */ 16 - #define BSD_E2BIG 7 /* Argument list too long */ 17 - #define BSD_ENOEXEC 8 /* Exec format error */ 18 - #define BSD_EBADF 9 /* Bad file descriptor */ 19 - #define BSD_ECHILD 10 /* No child processes */ 20 - #define BSD_EDEADLK 11 /* Resource deadlock avoided */ 21 - #define BSD_ENOMEM 12 /* Cannot allocate memory */ 22 - #define BSD_EACCES 13 /* Permission denied */ 23 - #define BSD_EFAULT 14 /* Bad address */ 24 - #define BSD_ENOTBLK 15 /* Block device required */ 25 - #define BSD_EBUSY 16 /* Device busy */ 26 - #define BSD_EEXIST 17 /* File exists */ 27 - #define BSD_EXDEV 18 /* Cross-device link */ 28 - #define BSD_ENODEV 19 /* Operation not supported by device */ 29 - #define BSD_ENOTDIR 20 /* Not a directory */ 30 - #define BSD_EISDIR 21 /* Is a directory */ 31 - #define BSD_EINVAL 22 /* Invalid argument */ 32 - #define BSD_ENFILE 23 /* Too many open files in system */ 33 - #define BSD_EMFILE 24 /* Too many open files */ 34 - #define BSD_ENOTTY 25 /* Inappropriate ioctl for device */ 35 - #define BSD_ETXTBSY 26 /* Text file busy */ 36 - #define BSD_EFBIG 27 /* File too large */ 37 - #define BSD_ENOSPC 28 /* No space left on device */ 38 - #define BSD_ESPIPE 29 /* Illegal seek */ 39 - #define BSD_EROFS 30 /* Read-only file system */ 40 - #define BSD_EMLINK 31 /* Too many links */ 41 - #define BSD_EPIPE 32 /* Broken pipe */ 42 - #define BSD_EDOM 33 /* Numerical argument out of domain */ 43 - #define BSD_ERANGE 34 /* Result too large */ 44 - #define BSD_EAGAIN 35 /* Resource temporarily unavailable */ 45 - #define BSD_EWOULDBLOCK EAGAIN /* Operation would block */ 46 - #define BSD_EINPROGRESS 36 /* Operation now in progress */ 47 - #define BSD_EALREADY 37 /* Operation already in progress */ 48 - #define BSD_ENOTSOCK 38 /* Socket operation on non-socket */ 49 - #define BSD_EDESTADDRREQ 39 /* Destination address required */ 50 - #define BSD_EMSGSIZE 40 /* Message too long */ 51 - #define BSD_EPROTOTYPE 41 /* Protocol wrong type for socket */ 52 - #define BSD_ENOPROTOOPT 42 /* Protocol not available */ 53 - #define BSD_EPROTONOSUPPORT 43 /* Protocol not supported */ 54 - #define BSD_ESOCKTNOSUPPORT 44 /* Socket type not supported */ 55 - #define BSD_EOPNOTSUPP 45 /* Operation not supported */ 56 - #define BSD_EPFNOSUPPORT 46 /* Protocol family not supported */ 57 - #define BSD_EAFNOSUPPORT 47 /* Address family not supported by protocol family */ 58 - #define BSD_EADDRINUSE 48 /* Address already in use */ 59 - #define BSD_EADDRNOTAVAIL 49 /* Can't assign requested address */ 60 - #define BSD_ENETDOWN 50 /* Network is down */ 61 - #define BSD_ENETUNREACH 51 /* Network is unreachable */ 62 - #define BSD_ENETRESET 52 /* Network dropped connection on reset */ 63 - #define BSD_ECONNABORTED 53 /* Software caused connection abort */ 64 - #define BSD_ECONNRESET 54 /* Connection reset by peer */ 65 - #define BSD_ENOBUFS 55 /* No buffer space available */ 66 - #define BSD_EISCONN 56 /* Socket is already connected */ 67 - #define BSD_ENOTCONN 57 /* Socket is not connected */ 68 - #define BSD_ESHUTDOWN 58 /* Can't send after socket shutdown */ 69 - #define BSD_ETOOMANYREFS 59 /* Too many references: can't splice */ 70 - #define BSD_ETIMEDOUT 60 /* Operation timed out */ 71 - #define BSD_ECONNREFUSED 61 /* Connection refused */ 72 - #define BSD_ELOOP 62 /* Too many levels of symbolic links */ 73 - #define BSD_ENAMETOOLONG 63 /* File name too long */ 74 - #define BSD_EHOSTDOWN 64 /* Host is down */ 75 - #define BSD_EHOSTUNREACH 65 /* No route to host */ 76 - #define BSD_ENOTEMPTY 66 /* Directory not empty */ 77 - #define BSD_EPROCLIM 67 /* Too many processes */ 78 - #define BSD_EUSERS 68 /* Too many users */ 79 - #define BSD_EDQUOT 69 /* Disc quota exceeded */ 80 - #define BSD_ESTALE 70 /* Stale NFS file handle */ 81 - #define BSD_EREMOTE 71 /* Too many levels of remote in path */ 82 - #define BSD_EBADRPC 72 /* RPC struct is bad */ 83 - #define BSD_ERPCMISMATCH 73 /* RPC version wrong */ 84 - #define BSD_EPROGUNAVAIL 74 /* RPC prog. not avail */ 85 - #define BSD_EPROGMISMATCH 75 /* Program version wrong */ 86 - #define BSD_EPROCUNAVAIL 76 /* Bad procedure for program */ 87 - #define BSD_ENOLCK 77 /* No locks available */ 88 - #define BSD_ENOSYS 78 /* Function not implemented */ 89 - #define BSD_EFTYPE 79 /* Inappropriate file type or format */ 90 - #define BSD_EAUTH 80 /* Authentication error */ 91 - #define BSD_ENEEDAUTH 81 /* Need authenticator */ 92 - #define BSD_ELAST 81 /* Must be equal largest errno */ 93 - 94 - #endif /* !(_SPARC_BSDERRNO_H) */
-94
include/asm-sparc64/bsderrno.h
··· 1 - /* $Id: bsderrno.h,v 1.1 1996/12/26 13:25:21 davem Exp $ 2 - * bsderrno.h: Error numbers for NetBSD binary compatibility 3 - * 4 - * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu) 5 - */ 6 - 7 - #ifndef _SPARC64_BSDERRNO_H 8 - #define _SPARC64_BSDERRNO_H 9 - 10 - #define BSD_EPERM 1 /* Operation not permitted */ 11 - #define BSD_ENOENT 2 /* No such file or directory */ 12 - #define BSD_ESRCH 3 /* No such process */ 13 - #define BSD_EINTR 4 /* Interrupted system call */ 14 - #define BSD_EIO 5 /* Input/output error */ 15 - #define BSD_ENXIO 6 /* Device not configured */ 16 - #define BSD_E2BIG 7 /* Argument list too long */ 17 - #define BSD_ENOEXEC 8 /* Exec format error */ 18 - #define BSD_EBADF 9 /* Bad file descriptor */ 19 - #define BSD_ECHILD 10 /* No child processes */ 20 - #define BSD_EDEADLK 11 /* Resource deadlock avoided */ 21 - #define BSD_ENOMEM 12 /* Cannot allocate memory */ 22 - #define BSD_EACCES 13 /* Permission denied */ 23 - #define BSD_EFAULT 14 /* Bad address */ 24 - #define BSD_ENOTBLK 15 /* Block device required */ 25 - #define BSD_EBUSY 16 /* Device busy */ 26 - #define BSD_EEXIST 17 /* File exists */ 27 - #define BSD_EXDEV 18 /* Cross-device link */ 28 - #define BSD_ENODEV 19 /* Operation not supported by device */ 29 - #define BSD_ENOTDIR 20 /* Not a directory */ 30 - #define BSD_EISDIR 21 /* Is a directory */ 31 - #define BSD_EINVAL 22 /* Invalid argument */ 32 - #define BSD_ENFILE 23 /* Too many open files in system */ 33 - #define BSD_EMFILE 24 /* Too many open files */ 34 - #define BSD_ENOTTY 25 /* Inappropriate ioctl for device */ 35 - #define BSD_ETXTBSY 26 /* Text file busy */ 36 - #define BSD_EFBIG 27 /* File too large */ 37 - #define BSD_ENOSPC 28 /* No space left on device */ 38 - #define BSD_ESPIPE 29 /* Illegal seek */ 39 - #define BSD_EROFS 30 /* Read-only file system */ 40 - #define BSD_EMLINK 31 /* Too many links */ 41 - #define BSD_EPIPE 32 /* Broken pipe */ 42 - #define BSD_EDOM 33 /* Numerical argument out of domain */ 43 - #define BSD_ERANGE 34 /* Result too large */ 44 - #define BSD_EAGAIN 35 /* Resource temporarily unavailable */ 45 - #define BSD_EWOULDBLOCK EAGAIN /* Operation would block */ 46 - #define BSD_EINPROGRESS 36 /* Operation now in progress */ 47 - #define BSD_EALREADY 37 /* Operation already in progress */ 48 - #define BSD_ENOTSOCK 38 /* Socket operation on non-socket */ 49 - #define BSD_EDESTADDRREQ 39 /* Destination address required */ 50 - #define BSD_EMSGSIZE 40 /* Message too long */ 51 - #define BSD_EPROTOTYPE 41 /* Protocol wrong type for socket */ 52 - #define BSD_ENOPROTOOPT 42 /* Protocol not available */ 53 - #define BSD_EPROTONOSUPPORT 43 /* Protocol not supported */ 54 - #define BSD_ESOCKTNOSUPPORT 44 /* Socket type not supported */ 55 - #define BSD_EOPNOTSUPP 45 /* Operation not supported */ 56 - #define BSD_EPFNOSUPPORT 46 /* Protocol family not supported */ 57 - #define BSD_EAFNOSUPPORT 47 /* Address family not supported by protocol family */ 58 - #define BSD_EADDRINUSE 48 /* Address already in use */ 59 - #define BSD_EADDRNOTAVAIL 49 /* Can't assign requested address */ 60 - #define BSD_ENETDOWN 50 /* Network is down */ 61 - #define BSD_ENETUNREACH 51 /* Network is unreachable */ 62 - #define BSD_ENETRESET 52 /* Network dropped connection on reset */ 63 - #define BSD_ECONNABORTED 53 /* Software caused connection abort */ 64 - #define BSD_ECONNRESET 54 /* Connection reset by peer */ 65 - #define BSD_ENOBUFS 55 /* No buffer space available */ 66 - #define BSD_EISCONN 56 /* Socket is already connected */ 67 - #define BSD_ENOTCONN 57 /* Socket is not connected */ 68 - #define BSD_ESHUTDOWN 58 /* Can't send after socket shutdown */ 69 - #define BSD_ETOOMANYREFS 59 /* Too many references: can't splice */ 70 - #define BSD_ETIMEDOUT 60 /* Operation timed out */ 71 - #define BSD_ECONNREFUSED 61 /* Connection refused */ 72 - #define BSD_ELOOP 62 /* Too many levels of symbolic links */ 73 - #define BSD_ENAMETOOLONG 63 /* File name too long */ 74 - #define BSD_EHOSTDOWN 64 /* Host is down */ 75 - #define BSD_EHOSTUNREACH 65 /* No route to host */ 76 - #define BSD_ENOTEMPTY 66 /* Directory not empty */ 77 - #define BSD_EPROCLIM 67 /* Too many processes */ 78 - #define BSD_EUSERS 68 /* Too many users */ 79 - #define BSD_EDQUOT 69 /* Disc quota exceeded */ 80 - #define BSD_ESTALE 70 /* Stale NFS file handle */ 81 - #define BSD_EREMOTE 71 /* Too many levels of remote in path */ 82 - #define BSD_EBADRPC 72 /* RPC struct is bad */ 83 - #define BSD_ERPCMISMATCH 73 /* RPC version wrong */ 84 - #define BSD_EPROGUNAVAIL 74 /* RPC prog. not avail */ 85 - #define BSD_EPROGMISMATCH 75 /* Program version wrong */ 86 - #define BSD_EPROCUNAVAIL 76 /* Bad procedure for program */ 87 - #define BSD_ENOLCK 77 /* No locks available */ 88 - #define BSD_ENOSYS 78 /* Function not implemented */ 89 - #define BSD_EFTYPE 79 /* Inappropriate file type or format */ 90 - #define BSD_EAUTH 80 /* Authentication error */ 91 - #define BSD_ENEEDAUTH 81 /* Need authenticator */ 92 - #define BSD_ELAST 81 /* Must be equal largest errno */ 93 - 94 - #endif /* !(_SPARC64_BSDERRNO_H) */