Kernel+LibC+Userland: Support mounting other kinds of filesystems

This commit is contained in:
Sergey Bugaev 2019-08-15 19:13:56 +03:00 committed by Andreas Kling
commit 425c356288
Notes: sideshowbarker 2024-07-19 12:39:25 +09:00
6 changed files with 58 additions and 46 deletions

View file

@ -551,9 +551,9 @@ int reboot()
__RETURN_WITH_ERRNO(rc, rc, -1);
}
int mount(const char* device, const char* mountpoint)
int mount(const char* device, const char* mountpoint, const char* fstype)
{
int rc = syscall(SC_mount, device, mountpoint);
int rc = syscall(SC_mount, device, mountpoint, fstype);
__RETURN_WITH_ERRNO(rc, rc, -1);
}