ref: 85b8d253d496c115766a37f51ea72cbec78090a8 dir: /sys/src/ape/lib/ap/plan9/chdir.c/
#include "lib.h" #include <unistd.h> #include "sys9.h" int chdir(const char *f) { int n; n = _CHDIR(f); if(n < 0) _syserrno(); return n; }