diff options
| author | bernard <[email protected]> | 2015-01-31 21:59:58 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2015-01-31 21:59:58 +0800 |
| commit | 2c885336592b747fbad13c23c656934ec2913f72 (patch) | |
| tree | bd8beddc6882737b5f0034d8a68f78be2ad00684 /components/libc/dlib/syscall_remove.c | |
| parent | 622e6d8238489b04219af34e0377b050a17a4d4c (diff) | |
[LIBC] fix compiling issue for dlib (IAR).
Diffstat (limited to 'components/libc/dlib/syscall_remove.c')
| -rw-r--r-- | components/libc/dlib/syscall_remove.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/components/libc/dlib/syscall_remove.c b/components/libc/dlib/syscall_remove.c new file mode 100644 index 0000000000..b7dd9477b7 --- /dev/null +++ b/components/libc/dlib/syscall_remove.c @@ -0,0 +1,38 @@ +/* + * File : syscall_remove.c + * This file is part of RT-Thread RTOS + * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Change Logs: + * Date Author Notes + * 2015-01-28 Bernard first version + */ +#include <rtthread.h> +#ifdef RT_USING_DFS +#include <dfs_file.h> +#endif +#include <yfuns.h> + +#pragma module_name = "?remove" +int remove(const char *val) +{ +#ifdef RT_USING_DFS + dfs_file_unlink(val); +#endif + + return 0; +} |
