From 3c2d781de7fa6f173d49de5577e74a41319c8a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E9=92=A6=E8=A1=97?= <15390014138@163.com> Date: Wed, 23 Sep 2020 11:16:39 +0800 Subject: [PATCH] =?UTF-8?q?update=20include/hos=5Ferrno.h.=202=E4=B8=AA?= =?UTF-8?q?=E5=A4=B4=E6=96=87=E4=BB=B6=E5=86=85=E5=AE=B9=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/hos_errno.h | 64 +-------------------------------------------- 1 file changed, 1 insertion(+), 63 deletions(-) diff --git a/include/hos_errno.h b/include/hos_errno.h index 14708e3..c2da7f8 100755 --- a/include/hos_errno.h +++ b/include/hos_errno.h @@ -1,63 +1 @@ -/* - * Copyright (c) 2020 Huawei Device Co., Ltd. - * 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 OHOS_ERRNO_H -#define OHOS_ERRNO_H -#ifdef __cplusplus -#if __cplusplus -extern "C" { -#endif /* __cpluscplus */ -#endif /* __cpluscplus */ -/* --------------------------------------------------------------------------------------------* - * Defintion of error code. The error codes are applicable to both the application and kernel - *-------------------------------------------------------------------------------------------- */ -enum OHOSLiteErrorCode { - EC_SUCCESS = 0, /* OK or No error */ - EC_FAILURE = -1, /* Execution failed */ - EC_BADPTR = -2, /* Bad pointer value */ - EC_NOMEMORY = -3, /* No enough memory */ - EC_ADDRESS = -4, /* Memory or bus address error */ - EC_IOERROR = -5, /* I/O error */ - EC_BUSBUSY = -6, /* xxx bus busy */ - EC_NORESPONCE = -7, /* Function is no responce */ - EC_NODEVICE = -8, /* No such device */ - EC_INVALID = -9, /* Invalid argument */ - EC_BUSY = -10, /* Device or resource busy */ - EC_NOSERVICE = -11, /* No service */ - EC_PERMISSION = -12, /* Permission denied */ - EC_NOFILE = -13, /* No this file */ - EC_NOSPACE = -14, /* No space left on device */ - EC_NODIR = -15, /* Not a directory */ - EC_ROFILE = -16, /* Read-only file system */ - EC_NAMETOOLONG = -17, /* File name too long */ - EC_OPBLOCK = -18, /* Operation would block */ - EC_TIMEOUT = -19, /* Timer expired */ - EC_COMMU = -20, /* Communication error on send */ - EC_PROTOCOL = -21, /* Protocol error */ - EC_CANCELED = -22, /* Operation Canceled */ - EC_NOKEY = -23, /* Required key not available */ - EC_NOHANDLER = -24, /* No handler to execute */ - EC_FLOWCTRL = -25, /* Flow control */ - EC_NOINIT = -26, /* device hasn't been initializeed */ - EC_NORESOURCE = -27, /* resource error */ - EC_LLERRTOP = -127, /* Low level function error code max value */ - EC_HLERRBASE = -128 /* High level function error code baseline */ -}; - -#ifdef __cplusplus -#if __cplusplus -} -#endif /* __cpluscplus */ -#endif /* __cpluscplus */ -#endif // OHOS_ERRNO_H +#include "ohos_errno.h" -- Gitee