summaryrefslogtreecommitdiff
path: root/lib/libc/fcntl/creat.c
blob: 436b343c2edcc8ee78c9ed262e83cc936b37d730 (plain)
1
2
3
4
5
6
7
8
9
10


#include <fcntl.h>     // for creat
#include <sys/types.h> // for mode_t
#include <syscall.h>   // for __syscall_2, syscall

int creat(const char *path, mode_t mode)
{
	return syscall(creat, path, mode);
}