ref: 1d07c2a1614a3121a5b9d86f95394caccd61ee56
dir: /sys/src/ape/lib/ap/plan9/rmdir.c/
#include "lib.h" #include <errno.h> #include <unistd.h> #include "sys9.h" int rmdir(const char *path) { int n; n = 0; if(_REMOVE(path) < 0) { _syserrno(); n = -1; } return n; }