ref: ec8d7cdf024949d73c5f887f23f060cd33c1df28 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; }