OSDN Git Service

92dbf329c655896fa52965998c548d07694339a5
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / common / creat.c
1 /* vi: set sw=4 ts=4: */
2 /*
3  * creat() for uClibc
4  *
5  * Copyright (C) 2009 <kraj@uclibc.org>
6  *
7  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8  */
9
10 #include <fcntl.h>
11
12 int creat(const char *file, mode_t mode)
13 {
14         return open(file, O_WRONLY | O_CREAT | O_TRUNC, mode);
15 }