source:
trunk/libs/newlib/src/newlib/libc/posix/creat.c
@
444
Last change on this file since 444 was 444, checked in by , 6 years ago | |
---|---|
File size: 225 bytes |
Line | |
---|---|
1 | /* creat() "system call" */ |
2 | |
3 | /* This is needed by f2c and therefore the SPEC benchmarks. */ |
4 | |
5 | #include <fcntl.h> |
6 | |
7 | int |
8 | creat (const char *path, |
9 | mode_t mode) |
10 | { |
11 | return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); |
12 | } |
Note: See TracBrowser
for help on using the repository browser.