Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
strace
/
4b4ec120875a8884f7d1b4a86c1639df1bb9cdbe
/
.
/
getcwd.c
blob: 1b97448514a565613af7a2bdd427170b753e0f23 [
file
] [
log
] [
blame
]
#include
"defs.h"
int
sys_getcwd
(
struct
tcb
*
tcp
)
{
if
(
exiting
(
tcp
))
{
if
(
syserror
(
tcp
))
tprintf
(
"%#lx"
,
tcp
->
u_arg
[
0
]);
else
printpathn
(
tcp
,
tcp
->
u_arg
[
0
],
tcp
->
u_rval
-
1
);
tprintf
(
", %lu"
,
tcp
->
u_arg
[
1
]);
}
return
0
;
}