Last change
on this file since 690 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
263 bytes
|
Rev | Line | |
---|
[444] | 1 | /* creat() "system call" */ |
---|
| 2 | |
---|
| 3 | /* copied from libc/posix/creat.c */ |
---|
| 4 | |
---|
| 5 | /* This is needed by f2c and therefore the SPEC benchmarks. */ |
---|
| 6 | |
---|
| 7 | #include <fcntl.h> |
---|
| 8 | |
---|
| 9 | int |
---|
| 10 | creat (const char *path, |
---|
| 11 | mode_t mode) |
---|
| 12 | { |
---|
| 13 | return open (path, O_WRONLY | O_CREAT | O_TRUNC, mode); |
---|
| 14 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.