mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00
bsd-user: Implement rename and renameat
Plus the helper LOCK_PATH2 and UNLOCK_PATH2 macros. Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Jung-uk Kim <jkim@FreeBSD.org> Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
390f547ea8
commit
ab5fd2d969
2 changed files with 53 additions and 0 deletions
|
@ -309,6 +309,14 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
|
|||
ret = do_bsd_fchdir(arg1);
|
||||
break;
|
||||
|
||||
case TARGET_FREEBSD_NR_rename: /* rename(2) */
|
||||
ret = do_bsd_rename(arg1, arg2);
|
||||
break;
|
||||
|
||||
case TARGET_FREEBSD_NR_renameat: /* renameat(2) */
|
||||
ret = do_bsd_renameat(arg1, arg2, arg3, arg4);
|
||||
break;
|
||||
|
||||
default:
|
||||
qemu_log_mask(LOG_UNIMP, "Unsupported syscall: %d\n", num);
|
||||
ret = -TARGET_ENOSYS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue