summaryrefslogtreecommitdiff
path: root/components/libc/compilers/dlib/syscall_close.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-12-26 09:41:24 -0500
committerBernard Xiong <[email protected]>2021-12-30 01:27:25 +0800
commited09f38012131850cd67c1392554653b56a37341 (patch)
tree63336abe8aac0d277e48c7286e3f303b88b35357 /components/libc/compilers/dlib/syscall_close.c
parent5925abce3ea69ad1e8db468c4015a6e76e217bb9 (diff)
[libc] remove RT_USING_LIBC
Diffstat (limited to 'components/libc/compilers/dlib/syscall_close.c')
-rw-r--r--components/libc/compilers/dlib/syscall_close.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/libc/compilers/dlib/syscall_close.c b/components/libc/compilers/dlib/syscall_close.c
index 30ee6f2388..9ac60076f4 100644
--- a/components/libc/compilers/dlib/syscall_close.c
+++ b/components/libc/compilers/dlib/syscall_close.c
@@ -10,6 +10,10 @@
#include <rtthread.h>
#include <LowLevelIOInterface.h>
#include <unistd.h>
+#include <compiler_private.h>
+#define DBG_TAG "dlib.syscall.close"
+#define DBG_LVL DBG_INFO
+#include <rtdbg.h>
/*
* The "__close" function should close the file corresponding to
@@ -27,6 +31,7 @@ int __close(int handle)
#ifdef DFS_USING_POSIX
return close(handle);
#else
+ LOG_W(warning_without_fs);
return _LLIO_ERROR;
#endif /* DFS_USING_POSIX */
}