From ab578ff5dbdc19b9647e3535e7d41306e46fab5d Mon Sep 17 00:00:00 2001 From: Fu Juntang <StrongTiger_001@163.com> Date: 星期一, 30 八月 2021 19:32:58 +0800 Subject: [PATCH] Fix the return stat check. --- src/bus_error.h | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/bus_error.h b/src/bus_error.h index 709f973..84f2e89 100644 --- a/src/bus_error.h +++ b/src/bus_error.h @@ -4,11 +4,19 @@ -#define EBUS_BASE 10000 -#define EBUS_TIMEOUT 10001 -#define EBUS_CLOSED 10002 -#define EBUS_KEY_INUSED 10003 -#define EBUS_NET 10004 +#define EBUS_BASE 500 +#define EBUS_TIMEOUT 501 +#define EBUS_CLOSED 502 +#define EBUS_KEY_INUSED 503 +#define EBUS_NET 504 +#define EBUS_SENDTO_SELF 505 +#define EBUS_RECVFROM_WRONG_END 506 +#define EBUS_STOPED 507 +#define EBUS_EXCEED_LIMIT 508 +#define EBUS_RES_UNSUPPORT 509 +#define EBUS_RES_BUSY 510 +#define EBUS_RES_NO 511 +#define EBUS_INVALID_PARA 512 extern int bus_errno; -- Gitblit v1.8.0