openHiTLS API openHiTLS 0.1.0-Alpha1
bsl_errno.h
浏览该文件的文档.
1/*---------------------------------------------------------------------------------------------
2 * This file is part of the openHiTLS project.
3 * Copyright © 2023 Huawei Technologies Co.,Ltd. All rights reserved.
4 * Licensed under the openHiTLS Software license agreement 1.0. See LICENSE in the project root
5 * for license information.
6 *---------------------------------------------------------------------------------------------
7 */
8
15#ifndef BSL_ERRNO_H
16#define BSL_ERRNO_H
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
26#define BSL_SUCCESS 0
27
34 /* Common return value start from 0x03000001. */
35 BSL_NULL_INPUT = 0x03000001,
41 /* The return value of the SAL submodule starts from 0x03010001. */
42 BSL_SAL_ERR_UNKNOWN = 0x03010001,
60 /* The return value of the LOG submodule starts from 0x03020001. */
61 BSL_LOG_ERR_BAD_PARAM = 0x03020001,
63 /* The return value of the TLV submodule starts from 0x03030001. */
64 BSL_TLV_ERR_BAD_PARAM = 0x03030001,
67 /* The return value of the ERR submodule starts from 0x03040001. */
74 /* The return value of the UIO submodule starts from 0x03060001. */
75 BSL_UIO_FAIL = 0x03050001,
82 /* The return value of the LIST submodule starts from 0x03070001. */
86};
87
88#ifdef __cplusplus
89}
90#endif
91
92#endif // BSL_ERRNO_H
BSL_ERROR
Definition bsl_errno.h:33
@ BSL_SAL_ERR_FILE_GET_ATTR
Definition bsl_errno.h:51
@ BSL_SAL_ERR_NET_SETSOCKOPT
Definition bsl_errno.h:53
@ BSL_LIST_INVALID_LIST_CURRENT
Definition bsl_errno.h:83
@ BSL_LOG_ERR_BAD_PARAM
Definition bsl_errno.h:61
@ BSL_UIO_IO_EOF
Definition bsl_errno.h:79
@ BSL_SAL_ERR_BAD_PARAM
Definition bsl_errno.h:43
@ BSL_ERR_ERR_NO_STACK
Definition bsl_errno.h:70
@ BSL_SAL_ERR_UNKNOWN
Definition bsl_errno.h:42
@ BSL_SAL_ERR_NET_BIND
Definition bsl_errno.h:56
@ BSL_SAL_ERR_FILE_SET_ATTR
Definition bsl_errno.h:50
@ BSL_SAL_ERR_FILE_LENGTH
Definition bsl_errno.h:47
@ BSL_NULL_INPUT
Definition bsl_errno.h:35
@ BSL_ERR_ERR_NO_MARK
Definition bsl_errno.h:72
@ BSL_SAL_ERR_FILE_SEEK
Definition bsl_errno.h:49
@ BSL_SAL_ERR_NET_CONNECT
Definition bsl_errno.h:57
@ BSL_TLV_ERR_NO_WANT_TYPE
Definition bsl_errno.h:65
@ BSL_ERR_ERR_ACQUIRE_WRITE_LOCK_FAIL
Definition bsl_errno.h:69
@ BSL_ERR_ERR_ACQUIRE_READ_LOCK_FAIL
Definition bsl_errno.h:68
@ BSL_UIO_UNINITIALIZED
Definition bsl_errno.h:80
@ BSL_SAL_ERR_NET_SOCKCLOSE
Definition bsl_errno.h:52
@ BSL_SAL_ERR_FILE_WRITE
Definition bsl_errno.h:46
@ BSL_UIO_IO_EXCEPTION
Definition bsl_errno.h:76
@ BSL_LIST_DATA_NOT_AVAILABLE
Definition bsl_errno.h:84
@ BSL_UIO_IO_BUSY
Definition bsl_errno.h:77
@ BSL_ERR_ERR_NO_ERROR
Definition bsl_errno.h:71
@ BSL_SAL_ERR_NET_IOCTL
Definition bsl_errno.h:58
@ BSL_LIST_FULL
Definition bsl_errno.h:85
@ BSL_MALLOC_FAIL
Definition bsl_errno.h:37
@ BSL_UIO_REF_MAX
Definition bsl_errno.h:78
@ BSL_UIO_FAIL
Definition bsl_errno.h:75
@ BSL_SAL_ERR_FILE_OPEN
Definition bsl_errno.h:44
@ BSL_SAL_ERR_NET_LISTEN
Definition bsl_errno.h:55
@ BSL_SAL_ERR_FILE_READ
Definition bsl_errno.h:45
@ BSL_TLV_ERR_BAD_PARAM
Definition bsl_errno.h:64
@ BSL_MEMCPY_FAIL
Definition bsl_errno.h:38
@ BSL_SAL_ERR_NET_GETSOCKOPT
Definition bsl_errno.h:54
@ BSL_SAL_ERR_FILE_TELL
Definition bsl_errno.h:48
@ BSL_INTERNAL_EXCEPTION
Definition bsl_errno.h:36
@ BSL_INVALID_ARG
Definition bsl_errno.h:39