source: trunk/libs/newlib/src/newlib/libc/posix/creat.c @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

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
7int
8creat (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.