source:
rtems/cpukit/libcsupport/src/creat.c
@
92119ed
Last change on this file since 92119ed was 0ba07a0, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/10/09 at 07:12:50 | |
---|---|
|
|
File size: 307 bytes |
Line | |
---|---|
1 | /* |
2 | * $Id$ |
3 | */ |
4 | |
5 | /* creat() "system call" */ |
6 | |
7 | #if HAVE_CONFIG_H |
8 | #include "config.h" |
9 | #endif |
10 | |
11 | #ifndef HAVE_CREAT |
12 | /* This is needed by f2c and therefore the SPEC benchmarks. */ |
13 | |
14 | #include <fcntl.h> |
15 | |
16 | int |
17 | creat (const char *path, mode_t mode) |
18 | { |
19 | return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); |
20 | } |
21 | #endif |
Note: See TracBrowser
for help on using the repository browser.