diff options
author | Jim Wilson <jimw@sifive.com> | 2017-12-26 12:27:52 -0800 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2017-12-26 12:27:52 -0800 |
commit | 28d5b98038dd18797375f4ff6a11fecd59809b22 (patch) | |
tree | f6ea701cdba714aa1f0be37ee9d881a7a9939c5b /libgloss/riscv/sys_unlink.c | |
parent | 347b08391132d61702f9004d7b74f742a49907f6 (diff) | |
download | newlib-28d5b98038dd18797375f4ff6a11fecd59809b22.zip newlib-28d5b98038dd18797375f4ff6a11fecd59809b22.tar.gz newlib-28d5b98038dd18797375f4ff6a11fecd59809b22.tar.bz2 |
RISC-V: Moved syscalls to separate files to fix aliasing problems.
Diffstat (limited to 'libgloss/riscv/sys_unlink.c')
-rw-r--r-- | libgloss/riscv/sys_unlink.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libgloss/riscv/sys_unlink.c b/libgloss/riscv/sys_unlink.c new file mode 100644 index 0000000..b55fe1e --- /dev/null +++ b/libgloss/riscv/sys_unlink.c @@ -0,0 +1,9 @@ +#include <machine/syscall.h> +#include "internal_syscall.h" + +/* Remove a file's directory entry. */ +int +_unlink(const char *name) +{ + return syscall_errno (SYS_unlink, name, 0, 0, 0, 0, 0); +} |