mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
Kernel+LibC+Userland: Support mounting other kinds of filesystems
This commit is contained in:
parent
66a0a12435
commit
425c356288
6 changed files with 58 additions and 46 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ int fchown(int fd, uid_t, gid_t);
|
|||
int ftruncate(int fd, off_t length);
|
||||
int halt();
|
||||
int reboot();
|
||||
int mount(const char* device, const char* mountpoint);
|
||||
int mount(const char* device, const char* mountpoint, const char* fstype);
|
||||
int umount(const char* mountpoint);
|
||||
|
||||
enum {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue