1 /********************************************************************** 2 * Copyright (C) 2014-2015 Cadence Design Systems, Inc.- http://www.cadence.com 3 * SPDX-License-Identifier: Apache-2.0 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 *********************************************************************** 17 * cdn_errno.h 18 * Cadence error codes 19 ***********************************************************************/ 20 21 #ifndef __INCLUDE_CDN_ERRNO_H__ 22 #define __INCLUDE_CDN_ERRNO_H__ 23 24 #ifndef ERRNO_H_NOT_PRESENT 25 #include <errno.h> 26 #endif //ERRNO_H_NOT_PRESENT 27 28 #ifndef EOK 29 #define EOK 0 /* no error */ 30 #endif //EOK 31 32 #ifndef EPERM 33 #define EPERM 1 /* Operation not permitted */ 34 #endif //EPERM 35 36 #ifndef ENOENT 37 #define ENOENT 2 /* No such file or directory */ 38 #endif //ENOENT 39 40 #ifndef EIO 41 #define EIO 5 /* I/O error */ 42 #endif //EIO 43 44 #ifndef ENOEXEC 45 #define ENOEXEC 8 /* Exec format error */ 46 #endif //ENOEXEC 47 48 #ifndef EAGAIN 49 #define EAGAIN 11 /* Try again */ 50 #endif //EAGAIN 51 52 #ifndef ENOMEM 53 #define ENOMEM 12 /* Out of memory */ 54 #endif //ENOMEM 55 56 #ifndef EFAULT 57 #define EFAULT 14 /* Bad address */ 58 #endif //EFAULT 59 60 #ifndef EBUSY 61 #define EBUSY 16 /* Device or resource busy */ 62 #endif //EBUSY 63 64 #ifndef EINVAL 65 #define EINVAL 22 /* Invalid argument */ 66 #endif //EINVAL 67 68 #ifndef ENOSPC 69 #define ENOSPC 28 /* No space left on device */ 70 #endif //ENOSPC 71 72 #ifndef EBADSLT 73 #define EBADSLT 57 /* Invalid slot */ 74 #endif //EBADSLT 75 76 #ifndef EPROTO 77 #define EPROTO 71 /* Protocol error */ 78 #endif //EPROTO 79 80 #ifndef EOVERFLOW 81 #define EOVERFLOW 75 /* Value too large for defined data type */ 82 #endif //EOVERFLOW 83 84 #ifndef EOPNOTSUPP 85 #define EOPNOTSUPP 95 /* Operation not supported */ 86 #endif //EOPNOTSUPP 87 88 #ifndef EINPROGRESS 89 #define EINPROGRESS 115 /* Operation now in progress */ 90 #endif //EINPROGRESS 91 92 #ifndef EDQUOT 93 #define EDQUOT 122 /* Quota exceeded */ 94 #endif //EDQUOT 95 96 #ifndef ENOTSUP 97 #define ENOTSUP EOPNOTSUPP 98 #endif //ENOTSUP 99 100 #ifndef ECANCELED 101 #define ECANCELED 126 /* Cancelled */ 102 #endif //ECANCELED 103 104 #endif //__INCLUDE_CDN_ERRNO_H__ 105