0b44a031
1 2 3 4 5 6 7 8
#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; }