Skip to content

Add lv2 syscalls: fs_chown, fs_mount, fs_unmount #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions ppu/include/sys/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,24 @@ LV2_SYSCALL sysLv2FsLink(const char *oldpath,const char *newpath)
lv2syscall2(810,(u64)oldpath,(u64)newpath);
return_to_user_prog(s32);
}

LV2_SYSCALL sysLv2FsMount(const char *deviceName, const char *deviceFileSystem, const char *devicePath, int writeProt)
{
lv2syscall8(837, (u64) deviceName, (u64) deviceFileSystem, (u64) devicePath, 0, (u64) writeProt, 0, 0, 0);
return_to_user_prog(int);
}

LV2_SYSCALL sysLv2FsUnmount(const char *devicePath)
{
lv2syscall3(838, (u64) devicePath, 0, 0);
return_to_user_prog(int);
}

LV2_SYSCALL sysLv2FsChown(const char *path, s32 uid, s32 gid)
{
lv2syscall3(835, (u64) path, (u64) uid, (u64) gid);
return_to_user_prog(int);
}

#ifdef __cplusplus
}
Expand Down