aboutsummaryrefslogtreecommitdiff
path: root/src/fcntl/creat.c
blob: be05faae96cc6c841adc1a2a944d3c8cca9deb1f (plain)
1
2
3
4
5
6
7
8
9
#include <fcntl.h>
#include "libc.h"

int creat(const char *filename, mode_t mode)
{
	return open(filename, O_CREAT|O_WRONLY|O_TRUNC, mode);
}

LFS64(creat);