fix getopt handling of ':' modifier for multibyte option characters
[oweals/musl.git] / src / fcntl / creat.c
1 #include <fcntl.h>
2 #include "libc.h"
3
4 int creat(const char *filename, mode_t mode)
5 {
6         return open(filename, O_CREAT|O_WRONLY|O_TRUNC, mode);
7 }
8
9 LFS64(creat);