repo.or.cz
/
ps4-sdk.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update libc.h
[ps4-sdk.git]
/
libPS4
/
source
/
file.c
blob
8564126f5bf24a819e41621f583e16943fd5896f
1
#include
"syscall.h"
2
3
#include
"file.h"
4
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
);
18
19
int
getSandboxDirectory
(
char
*
destination
,
int
*
length
) {
20
return
syscall
(
602
,
0
,
destination
,
length
);
21
}