15 LV2_SYSCALL sysLv2FsOpen(
const char *path,s32 oflags,s32 *fd,u32 mode,
const void *arg,u64 argsize)
17 lv2syscall6(801,(u64)path,oflags,(u64)fd,mode,(u64)arg,argsize);
18 return_to_user_prog(s32);
21 LV2_SYSCALL sysLv2FsClose(s32 fd)
24 return_to_user_prog(s32);
27 LV2_SYSCALL sysLv2FsRead(s32 fd,
void *ptr,u64 len,u64 *read)
29 lv2syscall4(802,fd,(u64)ptr,len,(u64)read);
30 return_to_user_prog(s32);
33 LV2_SYSCALL sysLv2FsWrite(s32 fd,
const void *ptr,u64 len,u64 *written)
35 lv2syscall4(803,fd,(u64)ptr,len,(u64)written);
36 return_to_user_prog(s32);
39 LV2_SYSCALL sysLv2FsStat(
const char *path,sysFSStat *stat)
41 lv2syscall2(808,(u64)path,(u64)stat);
42 return_to_user_prog(s32);
45 LV2_SYSCALL sysLv2FsFStat(s32 fd,sysFSStat *stat)
47 lv2syscall2(809,fd,(u64)stat);
48 return_to_user_prog(s32);
51 LV2_SYSCALL sysLv2FsChmod(
const char *path,s32 mode)
53 lv2syscall2(834,(u64)path,mode);
54 return_to_user_prog(s32);
57 LV2_SYSCALL sysLv2FsOpenDir(
const char *path,s32 *fd)
59 lv2syscall2(805,(u64)path,(u64)fd);
60 return_to_user_prog(s32);
63 LV2_SYSCALL sysLv2FsReadDir(s32 fd,
sysFSDirent *entry,u64 *read)
65 lv2syscall3(806,fd,(u64)entry,(u64)read);
66 return_to_user_prog(s32);
69 LV2_SYSCALL sysLv2FsCloseDir(s32 fd)
72 return_to_user_prog(s32);
75 LV2_SYSCALL sysLv2FsMkdir(
const char *path,s32 mode)
77 lv2syscall2(811,(u64)path,mode);
78 return_to_user_prog(s32);
81 LV2_SYSCALL sysLv2FsRename(
const char *path,
const char *newpath)
83 lv2syscall2(812,(u64)path,(u64)newpath);
84 return_to_user_prog(s32);
87 LV2_SYSCALL sysLv2FsRmdir(
const char *path)
89 lv2syscall1(813,(u64)path);
90 return_to_user_prog(s32);
93 LV2_SYSCALL sysLv2FsLSeek64(s32 fd,u64 offset,s32 dir,u64 *pos)
95 lv2syscall4(818,fd,offset,dir,(u64)pos);
96 return_to_user_prog(s32);
99 LV2_SYSCALL sysLv2FsUnlink(
const char *path)
101 lv2syscall1(814,(u64)path);
102 return_to_user_prog(s32);
105 LV2_SYSCALL sysLv2FsFsync(s32 fd)
108 return_to_user_prog(s32);
111 LV2_SYSCALL sysLv2FsTruncate(
const char *path,u64 size)
113 lv2syscall2(831,(u64)path,size);
114 return_to_user_prog(s32);
117 LV2_SYSCALL sysLv2FsFtruncate(s32 fd,u64 size)
119 lv2syscall2(832,fd,size);
120 return_to_user_prog(s32);
123 LV2_SYSCALL sysLv2FsUtime(
const char *path,
const sysFSUtimbuf *times)
125 lv2syscall2(815,(u64)path,(u64)times);
126 return_to_user_prog(s32);
129 LV2_SYSCALL sysLv2FsLink(
const char *oldpath,
const char *newpath)
131 lv2syscall2(810,(u64)oldpath,(u64)newpath);
132 return_to_user_prog(s32);