summaryrefslogtreecommitdiff
path: root/src/fcntl/creat.c
blob: 8f8aab64631cf4c74f1768cf06a4035c7541e97f (plain) (blame)
1
2
3
4
5
6
7
8
#include <fcntl.h>

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

weak_alias(creat, creat64);