🐞 fix(TSG-9807): 规范错误信息输出,并增加返回的错误码

This commit is contained in:
“pengxuanzheng”
2022-03-02 10:35:26 +00:00
parent e7f4277894
commit d4e8b149c8
3 changed files with 45 additions and 35 deletions

View File

@@ -10,6 +10,7 @@ struct hos_instance_s;
typedef struct hos_instance_s *hos_instance;
#define HOS_CLIENT_OK 0
#define HOS_IN_CACHE 0xFF
/* fd mode */
#define FILE_MODE 0x00
@@ -30,6 +31,7 @@ enum hoserrors
HOS_INSTANCE_NOT_INIT = -9,
HOS_INSTANCE_NOT_ENABLE = -10,
HOS_FD_OVER_POSITION = -11,
HOS_FD_CLOSE_BUT_SEND_FAILED = -12,
};
/* s3 的错误码 */