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_read.c | |
| parent | 215d1d4c6eebf5e82aa4731ec673d0ff5c9b98c1 (diff) | |
[iar][syscalls] 补充注释
Diffstat (limited to 'components/libc/compilers/dlib/syscall_read.c')
| -rw-r--r-- | components/libc/compilers/dlib/syscall_read.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/components/libc/compilers/dlib/syscall_read.c b/components/libc/compilers/dlib/syscall_read.c index 0df9766df2..e88f88ead4 100644 --- a/components/libc/compilers/dlib/syscall_read.c +++ b/components/libc/compilers/dlib/syscall_read.c @@ -19,7 +19,19 @@ #define DBG_LVL DBG_INFO #include <rtdbg.h> +/* + * The "__read" function reads a number of bytes, at most "size" into + * the memory area pointed to by "buffer". It returns the number of + * bytes read, 0 at the end of the file, or _LLIO_ERROR if failure + * occurs. + * + * The template implementation below assumes that the application + * provides the function "MyLowLevelGetchar". It should return a + * character value, or -1 on failure. + */ + #pragma module_name = "?__read" + size_t __read(int handle, unsigned char *buf, size_t len) { #ifdef RT_USING_POSIX |
