Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
6779e71accc195a3030d8a16d4eb76d9bc623769
/
.
/
getcwd.c
blob: 66af8345c9c21a669d917e1022a26de373fdfdbd [
file
] [
log
] [
blame
]
#include
"defs.h"
SYS_FUNC
(
getcwd
)
{
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
;
}