shithub: riscv

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