[iar][syscalls] 补充注释

This commit is contained in:
Meco Man
2021-11-13 10:16:31 -05:00
parent 215d1d4c6e
commit 9254d1a3af
6 changed files with 61 additions and 3 deletions

View File

@@ -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 */
}