bsd-user: Implement rename and renameat
authorWarner Losh <imp@bsdimp.com>
Sun, 12 Jun 2022 14:16:46 +0000 (08:16 -0600)
committerWarner Losh <imp@bsdimp.com>
Mon, 13 Jun 2022 21:50:50 +0000 (15:50 -0600)
commitab5fd2d969855be6a0355e55d21b51c676f7b1b6
treeab9c2b264bf7ba8e818823b52188fc36c69b0e3d
parent390f547ea80d6758099a867669e6429d511d9c88
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>
bsd-user/bsd-file.h
bsd-user/freebsd/os-syscall.c