shithub: riscv

ref: 8c9e4efa17455ba801442a78ff4a4f5711727e83
dir: /sys/src/ape/lib/ap/plan9/chdir.c/

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