summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/ap/plan9/chdir.c
blob: 245f116d05861dcf50c7c8286e51b21e3907294d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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;
}