global cleanup to use the new syscall interface
[musl] / src / unistd / getcwd.c
1 #include <unistd.h>
2 #include <errno.h>
3 #include "syscall.h"
4
5 char *getcwd(char *buf, size_t size)
6 {
7         return syscall(SYS_getcwd, buf, size) < 0 ? NULL : buf;
8 }