summaryrefslogtreecommitdiff
path: root/components/libc/compilers/dlib/syscall_close.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-11-13 10:16:31 -0500
committerMeco Man <[email protected]>2021-11-13 10:16:31 -0500
commit9254d1a3affdab5c329d2b8ea5bbe5a6a53e1dc9 (patch)
tree2d8580424b699cd2104e062e3e1cad63049052cd /components/libc/compilers/dlib/syscall_close.c
parent215d1d4c6eebf5e82aa4731ec673d0ff5c9b98c1 (diff)
[iar][syscalls] 补充注释
Diffstat (limited to 'components/libc/compilers/dlib/syscall_close.c')
-rw-r--r--components/libc/compilers/dlib/syscall_close.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/libc/compilers/dlib/syscall_close.c b/components/libc/compilers/dlib/syscall_close.c
index 2d14510490..aef9673153 100644
--- a/components/libc/compilers/dlib/syscall_close.c
+++ b/components/libc/compilers/dlib/syscall_close.c
@@ -11,7 +11,13 @@
#include <LowLevelIOInterface.h>
#include <unistd.h>
+/*
+ * The "__close" function should close the file corresponding to
+ * "handle". It should return 0 on success and nonzero on failure.
+ */
+
#pragma module_name = "?__close"
+
int __close(int handle)
{
if (handle == _LLIO_STDOUT ||