Sign in
android
/
platform
/
external
/
strace
/
f77c4e6
/
.
/
linux
/
m68k
/
get_syscall_args.c
blob: bc69a1957c12a484a75f4566a8438613daaee2b3 [
file
] [
log
] [
blame
]
/* Return -1 on error or 1 on success (never 0!). */
static
int
get_syscall_args
(
struct
tcb
*
tcp
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
tcp
->
s_ent
->
nargs
;
++
i
)
if
(
upeek
(
tcp
->
pid
,
(
i
<
5
?
i
:
i
+
2
)*
4
,
&
tcp
->
u_arg
[
i
])
<
0
)
return
-
1
;
return
1
;
}