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_remove.c | |
| parent | 215d1d4c6eebf5e82aa4731ec673d0ff5c9b98c1 (diff) | |
[iar][syscalls] 补充注释
Diffstat (limited to 'components/libc/compilers/dlib/syscall_remove.c')
| -rw-r--r-- | components/libc/compilers/dlib/syscall_remove.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/components/libc/compilers/dlib/syscall_remove.c b/components/libc/compilers/dlib/syscall_remove.c index dcb9bf60ec..cf6541132a 100644 --- a/components/libc/compilers/dlib/syscall_remove.c +++ b/components/libc/compilers/dlib/syscall_remove.c @@ -11,12 +11,18 @@ #include <LowLevelIOInterface.h> #include <unistd.h> +/* + * The "remove" function should remove the file named "filename". It + * should return 0 on success and nonzero on failure. + */ + #pragma module_name = "?remove" -int remove(const char *val) + +int remove(const char *filename) { #ifdef RT_USING_POSIX - return unlink(val); + return unlink(filename); #else - return -1; + return _LLIO_ERROR; #endif /* RT_USING_POSIX */ } |
