diff options
| author | Meco Man <[email protected]> | 2021-11-13 10:16:31 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-11-13 10:16:31 -0500 |
| commit | 9254d1a3affdab5c329d2b8ea5bbe5a6a53e1dc9 (patch) | |
| tree | 2d8580424b699cd2104e062e3e1cad63049052cd /components/libc/compilers/dlib/syscall_write.c | |
| parent | 215d1d4c6eebf5e82aa4731ec673d0ff5c9b98c1 (diff) | |
[iar][syscalls] 补充注释
Diffstat (limited to 'components/libc/compilers/dlib/syscall_write.c')
| -rw-r--r-- | components/libc/compilers/dlib/syscall_write.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/components/libc/compilers/dlib/syscall_write.c b/components/libc/compilers/dlib/syscall_write.c index 0f280e1702..c0729afd69 100644 --- a/components/libc/compilers/dlib/syscall_write.c +++ b/components/libc/compilers/dlib/syscall_write.c @@ -19,6 +19,20 @@ #define DBG_LVL DBG_INFO #include <rtdbg.h> +/* + * The "__write" function should output "size" number of bytes from + * "buffer" in some application-specific way. It should return the + * number of characters written, or _LLIO_ERROR on failure. + * + * If "buffer" is zero then __write should perform flushing of + * internal buffers, if any. In this case "handle" can be -1 to + * indicate that all handles should be flushed. + * + * The template implementation below assumes that the application + * provides the function "MyLowLevelPutchar". It should return the + * character written, or -1 on failure. + */ + #pragma module_name = "?__write" size_t __write(int handle, const unsigned char *buf, size_t len) |
