diff options
author | Jim Wilson <jimw@sifive.com> | 2017-12-26 23:27:52 +0300 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2017-12-26 23:27:52 +0300 |
commit | 28d5b98038dd18797375f4ff6a11fecd59809b22 (patch) | |
tree | f6ea701cdba714aa1f0be37ee9d881a7a9939c5b /libgloss/riscv/sys_link.c | |
parent | 347b08391132d61702f9004d7b74f742a49907f6 (diff) |
RISC-V: Moved syscalls to separate files to fix aliasing problems.
Diffstat (limited to 'libgloss/riscv/sys_link.c')
-rw-r--r-- | libgloss/riscv/sys_link.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libgloss/riscv/sys_link.c b/libgloss/riscv/sys_link.c new file mode 100644 index 000000000..eaeb22b25 --- /dev/null +++ b/libgloss/riscv/sys_link.c @@ -0,0 +1,8 @@ +#include <machine/syscall.h> +#include "internal_syscall.h" + +/* Establish a new name for an existing file. */ +int _link(const char *old_name, const char *new_name) +{ + return syscall_errno (SYS_link, old_name, new_name, 0, 0, 0, 0); +} |