Update file.c
[ps4-sdk.git] / libPS4 / source / file.c
blob9a80000a69e800babb64c20f7dd0e5c6e7848c75
1 #include "syscall.h"
3 #include "file.h"
5 SYSCALL(read, 3);
6 SYSCALL(write, 4);
7 SYSCALL(open, 5);
8 SYSCALL(close, 5);
9 SYSCALL(unlink, 10);
10 SYSCALL(fchmod, 124);
11 SYSCALL(rename, 128);
12 SYSCALL(mkdir, 136);
13 SYSCALL(rmdir, 137);
14 SYSCALL(stat, 188);
15 SYSCALL(fstat, 189);
16 SYSCALL(getdents, 272);
18 int getSandboxDirectory(char *destination, int *length) {
19 return syscall(602, 0, destination, length);