shithub: riscv

ref: 8188b4f4f0e07b6669e6ae3c6c1099af917eaab4
dir: /sys/src/ape/lib/ap/plan9/rmdir.c/

View raw version
#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;
}