mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
Kernel+Userland: Add the rename() syscall along with a basic /bin/mv.
This commit is contained in:
@@ -418,8 +418,8 @@ int fclose(FILE* stream)
|
||||
|
||||
int rename(const char* oldpath, const char* newpath)
|
||||
{
|
||||
dbgprintf("FIXME(LibC): rename(%s, %s)\n", oldpath, newpath);
|
||||
ASSERT_NOT_REACHED();
|
||||
int rc = syscall(SC_rename, oldpath, newpath);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
char* tmpnam(char*)
|
||||
|
||||
Reference in New Issue
Block a user