Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / posix / creat.c
blobfab807375b4c9b776b1e89f098a4ccf7e0b21df2
1 /* creat() "system call" */
3 /* This is needed by f2c and therefore the SPEC benchmarks. */
5 #include <fcntl.h>
7 int
8 creat (const char *path,
9 mode_t mode)
11 return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode);