aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/create.c
blob: abef0c3515d2456d073ff03f3eaacde7f161532e (plain)
1
2
3
4
5
6
7
8
#include <u.h>
#include <libc.h>

int
create(char *path, int mode, ulong perm)
{
	return open(path, mode|O_CREAT|O_TRUNC, perm);
}