mirror of https://github.com/ARMmbed/mbed-os.git
287 lines
11 KiB
C
287 lines
11 KiB
C
/*
|
|
* Copyright (c) 2017, Arm Limited and affiliates.
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef RETARGET_H
|
|
#define RETARGET_H
|
|
|
|
#include <sys/types.h>
|
|
|
|
#undef EPERM
|
|
#define EPERM 1 /* Operation not permitted */
|
|
#undef ENOENT
|
|
#define ENOENT 2 /* No such file or directory */
|
|
#undef ESRCH
|
|
#define ESRCH 3 /* No such process */
|
|
#undef EINTR
|
|
#define EINTR 4 /* Interrupted system call */
|
|
#undef EIO
|
|
#define EIO 5 /* I/O error */
|
|
#undef ENXIO
|
|
#define ENXIO 6 /* No such device or address */
|
|
#undef E2BIG
|
|
#define E2BIG 7 /* Argument list too long */
|
|
#undef ENOEXEC
|
|
#define ENOEXEC 8 /* Exec format error */
|
|
#undef EBADF
|
|
#define EBADF 9 /* Bad file number */
|
|
#undef ECHILD
|
|
#define ECHILD 10 /* No child processes */
|
|
#undef EAGAIN
|
|
#define EAGAIN 11 /* Try again */
|
|
#undef ENOMEM
|
|
#define ENOMEM 12 /* Out of memory */
|
|
#undef EACCES
|
|
#define EACCES 13 /* Permission denied */
|
|
#undef EFAULT
|
|
#define EFAULT 14 /* Bad address */
|
|
#undef ENOTBLK
|
|
#define ENOTBLK 15 /* Block device required */
|
|
#undef EBUSY
|
|
#define EBUSY 16 /* Device or resource busy */
|
|
#undef EEXIST
|
|
#define EEXIST 17 /* File exists */
|
|
#undef EXDEV
|
|
#define EXDEV 18 /* Cross-device link */
|
|
#undef ENODEV
|
|
#define ENODEV 19 /* No such device */
|
|
#undef ENOTDIR
|
|
#define ENOTDIR 20 /* Not a directory */
|
|
#undef EISDIR
|
|
#define EISDIR 21 /* Is a directory */
|
|
#undef EINVAL
|
|
#define EINVAL 22 /* Invalid argument */
|
|
#undef ENFILE
|
|
#define ENFILE 23 /* File table overflow */
|
|
#undef EMFILE
|
|
#define EMFILE 24 /* Too many open files */
|
|
#undef ENOTTY
|
|
#define ENOTTY 25 /* Not a typewriter */
|
|
#undef ETXTBSY
|
|
#define ETXTBSY 26 /* Text file busy */
|
|
#undef EFBIG
|
|
#define EFBIG 27 /* File too large */
|
|
#undef ENOSPC
|
|
#define ENOSPC 28 /* No space left on device */
|
|
#undef ESPIPE
|
|
#define ESPIPE 29 /* Illegal seek */
|
|
#undef EROFS
|
|
#define EROFS 30 /* Read-only file system */
|
|
#undef EMLINK
|
|
#define EMLINK 31 /* Too many links */
|
|
#undef EPIPE
|
|
#define EPIPE 32 /* Broken pipe */
|
|
#undef EDOM
|
|
#define EDOM 33 /* Math argument out of domain of func */
|
|
#undef ERANGE
|
|
#define ERANGE 34 /* Math result not representable */
|
|
#undef EDEADLK
|
|
#define EDEADLK 35 /* Resource deadlock would occur */
|
|
#undef ENAMETOOLONG
|
|
#define ENAMETOOLONG 36 /* File name too long */
|
|
#undef ENOLCK
|
|
#define ENOLCK 37 /* No record locks available */
|
|
#undef ENOSYS
|
|
#define ENOSYS 38 /* Function not implemented */
|
|
#undef ENOTEMPTY
|
|
#define ENOTEMPTY 39 /* Directory not empty */
|
|
#undef ELOOP
|
|
#define ELOOP 40 /* Too many symbolic links encountered */
|
|
#undef EWOULDBLOCK
|
|
#define EWOULDBLOCK EAGAIN /* Operation would block */
|
|
#undef ENOMSG
|
|
#define ENOMSG 42 /* No message of desired type */
|
|
#undef EIDRM
|
|
#define EIDRM 43 /* Identifier removed */
|
|
#undef ECHRNG
|
|
#define ECHRNG 44 /* Channel number out of range */
|
|
#undef EL2NSYNC
|
|
#define EL2NSYNC 45 /* Level 2 not synchronized */
|
|
#undef EL3HLT
|
|
#define EL3HLT 46 /* Level 3 halted */
|
|
#undef EL3RST
|
|
#define EL3RST 47 /* Level 3 reset */
|
|
#undef ELNRNG
|
|
#define ELNRNG 48 /* Link number out of range */
|
|
#undef EUNATCH
|
|
#define EUNATCH 49 /* Protocol driver not attached */
|
|
#undef ENOCSI
|
|
#define ENOCSI 50 /* No CSI structure available */
|
|
#undef EL2HLT
|
|
#define EL2HLT 51 /* Level 2 halted */
|
|
#undef EBADE
|
|
#define EBADE 52 /* Invalid exchange */
|
|
#undef EBADR
|
|
#define EBADR 53 /* Invalid request descriptor */
|
|
#undef EXFULL
|
|
#define EXFULL 54 /* Exchange full */
|
|
#undef ENOANO
|
|
#define ENOANO 55 /* No anode */
|
|
#undef EBADRQC
|
|
#define EBADRQC 56 /* Invalid request code */
|
|
#undef EBADSLT
|
|
#define EBADSLT 57 /* Invalid slot */
|
|
#undef EDEADLOCK
|
|
#define EDEADLOCK EDEADLK /* Resource deadlock would occur */
|
|
#undef EBFONT
|
|
#define EBFONT 59 /* Bad font file format */
|
|
#undef ENOSTR
|
|
#define ENOSTR 60 /* Device not a stream */
|
|
#undef ENODATA
|
|
#define ENODATA 61 /* No data available */
|
|
#undef ETIME
|
|
#define ETIME 62 /* Timer expired */
|
|
#undef ENOSR
|
|
#define ENOSR 63 /* Out of streams resources */
|
|
#undef ENONET
|
|
#define ENONET 64 /* Machine is not on the network */
|
|
#undef ENOPKG
|
|
#define ENOPKG 65 /* Package not installed */
|
|
#undef EREMOTE
|
|
#define EREMOTE 66 /* Object is remote */
|
|
#undef ENOLINK
|
|
#define ENOLINK 67 /* Link has been severed */
|
|
#undef EADV
|
|
#define EADV 68 /* Advertise error */
|
|
#undef ESRMNT
|
|
#define ESRMNT 69 /* Srmount error */
|
|
#undef ECOMM
|
|
#define ECOMM 70 /* Communication error on send */
|
|
#undef EPROTO
|
|
#define EPROTO 71 /* Protocol error */
|
|
#undef EMULTIHOP
|
|
#define EMULTIHOP 72 /* Multihop attempted */
|
|
#undef EDOTDOT
|
|
#define EDOTDOT 73 /* RFS specific error */
|
|
#undef EBADMSG
|
|
#define EBADMSG 74 /* Not a data message */
|
|
#undef EOVERFLOW
|
|
#define EOVERFLOW 75 /* Value too large for defined data type */
|
|
#undef ENOTUNIQ
|
|
#define ENOTUNIQ 76 /* Name not unique on network */
|
|
#undef EBADFD
|
|
#define EBADFD 77 /* File descriptor in bad state */
|
|
#undef EREMCHG
|
|
#define EREMCHG 78 /* Remote address changed */
|
|
#undef ELIBACC
|
|
#define ELIBACC 79 /* Can not access a needed shared library */
|
|
#undef ELIBBAD
|
|
#define ELIBBAD 80 /* Accessing a corrupted shared library */
|
|
#undef ELIBSCN
|
|
#define ELIBSCN 81 /* .lib section in a.out corrupted */
|
|
#undef ELIBMAX
|
|
#define ELIBMAX 82 /* Attempting to link in too many shared libraries */
|
|
#undef ELIBEXEC
|
|
#define ELIBEXEC 83 /* Cannot exec a shared library directly */
|
|
#undef EILSEQ
|
|
#define EILSEQ 84 /* Illegal byte sequence */
|
|
#undef ERESTART
|
|
#define ERESTART 85 /* Interrupted system call should be restarted */
|
|
#undef ESTRPIPE
|
|
#define ESTRPIPE 86 /* Streams pipe error */
|
|
#undef EUSERS
|
|
#define EUSERS 87 /* Too many users */
|
|
#undef ENOTSOCK
|
|
#define ENOTSOCK 88 /* Socket operation on non-socket */
|
|
#undef EDESTADDRREQ
|
|
#define EDESTADDRREQ 89 /* Destination address required */
|
|
#undef EMSGSIZE
|
|
#define EMSGSIZE 90 /* Message too long */
|
|
#undef EPROTOTYPE
|
|
#define EPROTOTYPE 91 /* Protocol wrong type for socket */
|
|
#undef ENOPROTOOPT
|
|
#define ENOPROTOOPT 92 /* Protocol not available */
|
|
#undef EPROTONOSUPPORT
|
|
#define EPROTONOSUPPORT 93 /* Protocol not supported */
|
|
#undef ESOCKTNOSUPPORT
|
|
#define ESOCKTNOSUPPORT 94 /* Socket type not supported */
|
|
#undef EOPNOTSUPP
|
|
#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */
|
|
#undef EPFNOSUPPORT
|
|
#define EPFNOSUPPORT 96 /* Protocol family not supported */
|
|
#undef EAFNOSUPPORT
|
|
#define EAFNOSUPPORT 97 /* Address family not supported by protocol */
|
|
#undef EADDRINUSE
|
|
#define EADDRINUSE 98 /* Address already in use */
|
|
#undef EADDRNOTAVAIL
|
|
#define EADDRNOTAVAIL 99 /* Cannot assign requested address */
|
|
#undef ENETDOWN
|
|
#define ENETDOWN 100 /* Network is down */
|
|
#undef ENETUNREACH
|
|
#define ENETUNREACH 101 /* Network is unreachable */
|
|
#undef ENETRESET
|
|
#define ENETRESET 102 /* Network dropped connection because of reset */
|
|
#undef ECONNABORTED
|
|
#define ECONNABORTED 103 /* Software caused connection abort */
|
|
#undef ECONNRESET
|
|
#define ECONNRESET 104 /* Connection reset by peer */
|
|
#undef ENOBUFS
|
|
#define ENOBUFS 105 /* No buffer space available */
|
|
#undef EISCONN
|
|
#define EISCONN 106 /* Transport endpoint is already connected */
|
|
#undef ENOTCONN
|
|
#define ENOTCONN 107 /* Transport endpoint is not connected */
|
|
#undef ESHUTDOWN
|
|
#define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */
|
|
#undef ETOOMANYREFS
|
|
#define ETOOMANYREFS 109 /* Too many references: cannot splice */
|
|
#undef ETIMEDOUT
|
|
#define ETIMEDOUT 110 /* Connection timed out */
|
|
#undef ECONNREFUSED
|
|
#define ECONNREFUSED 111 /* Connection refused */
|
|
#undef EHOSTDOWN
|
|
#define EHOSTDOWN 112 /* Host is down */
|
|
#undef EHOSTUNREACH
|
|
#define EHOSTUNREACH 113 /* No route to host */
|
|
#undef EALREADY
|
|
#define EALREADY 114 /* Operation already in progress */
|
|
#undef EINPROGRESS
|
|
#define EINPROGRESS 115 /* Operation now in progress */
|
|
#undef ESTALE
|
|
#define ESTALE 116 /* Stale NFS file handle */
|
|
#undef EUCLEAN
|
|
#define EUCLEAN 117 /* Structure needs cleaning */
|
|
#undef ENOTNAM
|
|
#define ENOTNAM 118 /* Not a XENIX named type file */
|
|
#undef ENAVAIL
|
|
#define ENAVAIL 119 /* No XENIX semaphores available */
|
|
#undef EISNAM
|
|
#define EISNAM 120 /* Is a named type file */
|
|
#undef EREMOTEIO
|
|
#define EREMOTEIO 121 /* Remote I/O error */
|
|
#undef EDQUOT
|
|
#define EDQUOT 122 /* Quota exceeded */
|
|
#undef ENOMEDIUM
|
|
#define ENOMEDIUM 123 /* No medium found */
|
|
#undef EMEDIUMTYPE
|
|
#define EMEDIUMTYPE 124 /* Wrong medium type */
|
|
#undef ECANCELED
|
|
#define ECANCELED 125 /* Operation Canceled */
|
|
#undef ENOKEY
|
|
#define ENOKEY 126 /* Required key not available */
|
|
#undef EKEYEXPIRED
|
|
#define EKEYEXPIRED 127 /* Key has expired */
|
|
#undef EKEYREVOKED
|
|
#define EKEYREVOKED 128 /* Key has been revoked */
|
|
#undef EKEYREJECTED
|
|
#define EKEYREJECTED 129 /* Key was rejected by service */
|
|
#undef EOWNERDEAD
|
|
#define EOWNERDEAD 130 /* Owner died */
|
|
#undef ENOTRECOVERABLE
|
|
#define ENOTRECOVERABLE 131 /* State not recoverable */
|
|
|
|
#endif //RETARGET_H
|