Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
be82e122bf37fdcd1766d1ed220f0300b30ab6a3
/
.
/
src
/
unistd
/
getcwd.c
blob: 4910f42c2a5c3e0eae3ff6b0685ecb14e72d7e24 [
file
] [
log
] [
blame
]
#include
<unistd.h>
#include
<errno.h>
#include
"syscall.h"
char
*
getcwd
(
char
*
buf
,
size_t
size
)
{
return
syscall2
(
__NR_getcwd
,
(
long
)
buf
,
size
)
<
0
?
NULL
:
buf
;
}