Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
57823c6836d75247ca5bf2b1284abf07d12f8838
/
.
/
getcwd.c
blob: 329762397ede99a1231d82fff09d889743625427 [
file
] [
log
] [
blame
]
#include
"defs.h"
SYS_FUNC
(
getcwd
)
{
if
(
exiting
(
tcp
))
{
if
(
syserror
(
tcp
))
printaddr
(
tcp
->
u_arg
[
0
]);
else
printpathn
(
tcp
,
tcp
->
u_arg
[
0
],
tcp
->
u_rval
-
1
);
tprintf
(
", %lu"
,
tcp
->
u_arg
[
1
]);
}
return
0
;
}