#include #include #include #include DEFN_SYSCALL2(getcwd, SYS_GETCWD, char *, size_t); char *getcwd(char *buf, size_t size) { if (!buf) buf = malloc(size); return (char *)syscall_getcwd(buf, size); }