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