#include #include #include "../syscall/syscall.h" char* getwd(char *buf, int len) { if(linuxgetcwd(buf, len) < 0) // if error is ERANGE, copy our own. XXX return nil; return buf; }